interpret content-type header #296

Merged
cmo merged 4 commits from content-type into master 2026-11-10 10:21:09 +00:00

2026-11-10

Christian Monch
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
2026-11-10 11:05:13 +01:00
Christian Monch
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
Format code according to standard

Remove unused import and unncessary global-statement
from `dump_things_service/manifest.py`
2026-11-10 10:56:55 +01:00
Christian Monch
chore: update changelog
Add a description of the content-type header
interpretation to the changelog.
2026-11-10 10:11:45 +01:00
Christian Monch
feat: use content-type header, override with format
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.
2026-11-10 10:10:43 +01:00