Skip to content

Commit

Permalink
fix media type in dts response
Browse files Browse the repository at this point in the history
  • Loading branch information
ingoboerner committed Apr 5, 2024
1 parent 2f19766 commit aaa719a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/dts.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ declare variable $ddts:context :=
declare
%rest:GET
%rest:path("/v1/dts")
%rest:produces("application/json")
%output:media-type("application/json")
%rest:produces("application/ld+json")
%output:media-type("application/ld+json")
%output:method("json")
function ddts:entry-point() {
map {
Expand Down Expand Up @@ -127,8 +127,8 @@ declare
%rest:query-param("id", "{$id}")
%rest:query-param("page", "{$page}")
%rest:query-param("nav", "{$nav}")
%rest:produces("application/json")
%output:media-type("application/json")
%rest:produces("application/ld+json")
%output:media-type("application/ld+json")
%output:method("json")
function ddts:collections($id, $page, $nav)
as map() {
Expand Down Expand Up @@ -937,7 +937,7 @@ declare function local:link-header-of-fragment($tei as element(tei:TEI), $ref as
%rest:query-param("ref", "{$ref}")
%rest:query-param("level", "{$level}")
%rest:produces("application/ld+json")
%output:media-type("application/json")
%output:media-type("application/ld+json")
%output:method("json")
function ddts:navigation($id, $ref, $level) {
(: parameter $id is mandatory :)
Expand Down

0 comments on commit aaa719a

Please sign in to comment.