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
Owner

Do not auto-create endpoints. This keeps the swagger-interface to a constant size, no matter how many collections are added.

In addition allow for collection names that include /.

Do not auto-create endpoints. This keeps the swagger-interface to a constant size, no matter how many collections are added. In addition allow for collection names that include `/`.
cmo added 18 commits 2026-10-07 12:51:22 +00:00
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.
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
5aa9d91d82
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
ce707669bb
The implementation of the "base"-user endpoints, i.e.,
all enpoints that were implemented in `main.py` are
moved to `base_endpoint.py`.
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.
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`.
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
38a9fa6c13
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
39ff768946
Endpoint declarations are changed to support `/` in
collection names. Together with the removal of
autogenerated methods, this allows collection names
that contain `/`-characters.
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
34f3268673
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
336d585725
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
4080370116
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
8b06594a0f
cmo merged commit f00ed7d28d into master 2026-10-07 15:20:30 +00:00
Sign in to join this conversation.
No description provided.