openapi.json does not allow for TTL submission of records #225

Closed
opened 2026-06-24 11:36:50 +00:00 by mih · 2 comments
Owner

Something like this is needed

curl -X 'POST' \
  'http://localhost:8000/collection1/record/RealThing?format=ttl' \
  -H 'X-DumpThings-Token: mytoken' \
  -H 'Content-Type: text/turtle' \
  --data-binary @- < dummy.ttl

but the only allowed content-type is application/json

I wonder if the "format" parameter is actually needed, if it is also necessary to set content-type. In the present setup both are fully redundant

Something like this is needed ``` curl -X 'POST' \ 'http://localhost:8000/collection1/record/RealThing?format=ttl' \ -H 'X-DumpThings-Token: mytoken' \ -H 'Content-Type: text/turtle' \ --data-binary @- < dummy.ttl ``` but the only allowed content-type is `application/json` I wonder if the "format" parameter is actually needed, if it is also necessary to set `content-type`. In the present setup both are fully redundant
Author
Owner

And the latter aspect has already been reported in #190!

And the latter aspect has already been reported in #190!
Owner

In release 6.8.0 the format-parameter became optional. If it is not given the content-type-header is used to determine the type of the input.

In release 6.8.0 the `format`-parameter became optional. If it is not given the `content-type`-header is used to determine the type of the input.
cmo closed this issue 2026-11-11 10:41:53 +00:00
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
orinoco/dump-things-service#225
No description provided.