interpret content-type header #296

Merged
cmo merged 4 commits from content-type into master 2026-11-10 10:21:09 +00:00
Owner
No description provided.
Use the content-type header to determine the type of
the posted data in `POST /{collection}/record/{class_name}`
and in `POST /{collection}/validate/record/{class_name}`.

The content-types `application/json` and `text/turtle`
are supported.

The `format`-parameter is still supported and can be used
to override the type specified in content-type header, i.e.,
if the `format`-parameter is provided, it specifies the
type of the posted data.

Valid values for the `format`-parameter are `ttl` and `json`.

Reduce logging verbosity: do not log validate calls any longer.
Add a description of the content-type header
interpretation to the changelog.
chore: format code, remove unnecessary statements
Some checks failed
Codespell / Check for spelling errors (push) Successful in 22s
Ruff / Code linting (push) Failing after 26s
Test execution / Test-all (push) Successful in 57s
Codespell / Check for spelling errors (pull_request) Successful in 22s
Ruff / Code linting (pull_request) Failing after 28s
Type annotation (PR) / check (pull_request) Failing after 1m1s
d68ff94c1e
Format code according to standard

Remove unused import and unncessary global-statement
from `dump_things_service/manifest.py`
chore: update changelog
Some checks failed
Codespell / Check for spelling errors (pull_request) Successful in 34s
Ruff / Code linting (push) Failing after 41s
Codespell / Check for spelling errors (push) Successful in 41s
Ruff / Code linting (pull_request) Failing after 41s
Type annotation (PR) / check (pull_request) Failing after 1m6s
Test execution / Test-all (push) Successful in 1m10s
df350f11d5
cmo merged commit c5a1a26a50 into master 2026-11-10 10:21:09 +00:00
cmo deleted branch content-type 2026-11-10 10:21:18 +00:00
Sign in to join this conversation.
No description provided.