From abee4543ca2a2c26ef01f1e76dc037820f4a72d8 Mon Sep 17 00:00:00 2001 From: Anika Churilova Date: Tue, 30 Jan 2024 18:18:13 +0100 Subject: [PATCH] http headers: use and adjust vnd.inveniordm.v1+json http accept header * closes https://github.com/zenodo/rdm-project/issues/598 --- invenio_pages/resources/config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/invenio_pages/resources/config.py b/invenio_pages/resources/config.py index 8c7f1d3..ae99f47 100644 --- a/invenio_pages/resources/config.py +++ b/invenio_pages/resources/config.py @@ -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, + }