Unnecessary query parameter in POST /<collection>/record/<class> endpoint #190

Closed
opened 2026-01-27 22:41:49 +00:00 by candleindark · 2 comments
candleindark commented 2026-01-27 22:41:49 +00:00 (Migrated from github.com)

The query parameter of format for the POST /<collection>/record/<class> seems unnecessary since a request to this endpoint can provide a content-type header to indicate the content of the body of the request.

The query parameter of `format` for the [`POST /<collection>/record/<class>`](https://github.com/christian-monch/dump-things-server?tab=readme-ov-file#endpoints) seems unnecessary since a request to this endpoint can provide a `content-type` header to indicate the content of the body of the request.
christian-monch commented 2026-01-29 08:00:54 +00:00 (Migrated from github.com)

Good point, thanks. I will change it in the future (no timeline yet).

Good point, thanks. I will change it in the future (no timeline yet).
Owner

With release 6.8.0 the format-parameter is no longer required to define the input format. If it is no present the input format is determined by the content-type-header.

If the format-parameter is provided, it overrides the type defined in content-type-header.

With release 6.8.0 the `format`-parameter is no longer required to define the input format. If it is no present the input format is determined by the `content-type`-header. If the `format`-parameter is provided, it overrides the type defined in `content-type`-header.
cmo closed this issue 2026-11-11 10:39:13 +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#190
No description provided.