Skip to content

Commit

Permalink
http headers: use and adjust vnd.inveniordm.v1+json http accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and slint committed Aug 6, 2024
1 parent 584ce65 commit 0d3a64f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions invenio_pages/resources/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ class PageResourceConfig(RecordResourceConfig):
request_view_args = {
"id": ma.fields.Number(),
}

response_handlers = {
"application/vnd.inveniordm.v1+json": RecordResourceConfig.response_handlers[
"application/json"
],
**RecordResourceConfig.response_handlers,
}

0 comments on commit 0d3a64f

Please sign in to comment.