Add generic endpoints and support for collection names with / #281

Merged
cmo merged 21 commits from no-auto-created-endpoints into master 2026-10-07 15:20:30 +00:00

2026-10-07

Christian Monch
chore: update changelog
Some checks failed
Codespell / Check for spelling errors (push) Failing after 42s
Codespell / Check for spelling errors (pull_request) Failing after 43s
Ruff / Code linting (pull_request) Successful in 53s
Ruff / Code linting (push) Successful in 57s
Type annotation (PR) / check (pull_request) Failing after 1m21s
Test execution / Test-all (push) Successful in 1m27s
2026-10-07 15:34:13 +02:00
Christian Monch
tests: update backward compatibility test
Some checks failed
Codespell / Check for spelling errors (pull_request) Failing after 40s
Codespell / Check for spelling errors (push) Failing after 45s
Ruff / Code linting (pull_request) Successful in 51s
Ruff / Code linting (push) Successful in 55s
Type annotation (PR) / check (pull_request) Failing after 1m19s
Test execution / Test-all (push) Successful in 1m30s
2026-10-07 15:24:23 +02:00
Christian Monch
chore: format according to hatch fmt
Some checks failed
Codespell / Check for spelling errors (push) Failing after 40s
Codespell / Check for spelling errors (pull_request) Failing after 42s
Ruff / Code linting (pull_request) Successful in 51s
Ruff / Code linting (push) Successful in 52s
Type annotation (PR) / check (pull_request) Failing after 1m20s
Test execution / Test-all (push) Successful in 1m26s
2026-10-07 14:51:57 +02:00
Christian Monch
tests: add tests for collection names with /
Some checks failed
Codespell / Check for spelling errors (push) Failing after 28s
Ruff / Code linting (push) Failing after 35s
Test execution / Test-all (push) Successful in 1m12s
Codespell / Check for spelling errors (pull_request) Failing after 27s
Ruff / Code linting (pull_request) Failing after 35s
Type annotation (PR) / check (pull_request) Failing after 1m7s
2026-10-07 14:46:55 +02:00
Christian Monch
feat: allow collection names with /
Endpoint declarations are changed to support `/` in
collection names. Together with the removal of
autogenerated methods, this allows collection names
that contain `/`-characters.
2026-10-07 14:22:44 +02:00
Christian Monch
chore: format with hatch fmt
Some checks failed
Codespell / Check for spelling errors (push) Failing after 27s
Ruff / Code linting (push) Successful in 38s
Test execution / Test-all (push) Successful in 1m13s
2026-10-07 02:09:30 +02:00

2026-10-06

Christian Monch
refactor: replace auto-generated validate endpoints
Some checks failed
Codespell / Check for spelling errors (push) Failing after 28s
Ruff / Code linting (push) Failing after 33s
Test execution / Test-all (push) Successful in 1m14s
2026-10-06 17:19:59 +02:00
Christian Monch
refactor: move existing endpoints to endpoints.v0
Endpoints are now organized in packages in
`dump_things_service.<version>`. The currently
existing endpoints are added as version `v0`.
That means they are moved to `endpoints.v0`.
2026-10-06 12:26:35 +02:00
Christian Monch
fix: fix logger configuration
This commit isolates the dump_things_service logger
from the uvicorn-logger, by adding a private handler.
This ensuring that the configured log-level for
dump_things_service is actually active.
2026-10-06 12:26:25 +02:00
Christian Monch
refactor: move enpoint out of main.py
The implementation of the "base"-user endpoints, i.e.,
all enpoints that were implemented in `main.py` are
moved to `base_endpoint.py`.
2026-10-06 12:26:25 +02:00
Christian Monch
chore: update changelog
Some checks failed
Codespell / Check for spelling errors (push) Failing after 27s
Ruff / Code linting (push) Failing after 37s
Test execution / Test-all (push) Successful in 1m12s
2026-10-06 12:18:03 +02:00
Christian Monch
tests: add backward compatibility test for configurations
Some checks failed
Codespell / Check for spelling errors (push) Failing after 28s
Ruff / Code linting (push) Failing after 36s
Test execution / Test-all (push) Successful in 1m13s
2026-10-06 12:01:38 +02:00
Christian Monch
fix: ensure backward compatible policy declarations
This commit reintroduces the policy configuration keys to
the collection configuration record. This ensures that
existing 6.5 configurations can be read.

If an external policy configuration source is defined for
a collection (via `policy_info_location`), it will be used.
In this case, if the configuration defines a policy inline
(via `policy_annotation_tag`, `default_policy`, and
`policy_mapping`), the latter will be ignored and a
warning will be issued.

If the configuration does not define an external policy
source, but defines a policy inline (via
`policy_annotation_tag`, `default_policy`, and
`policy_mapping`), the inlined policy definition will
be used.
2026-10-06 11:03:12 +02:00