You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Omeka S API outputs a more specific kind of JSON: JSON-LD. So the content-type of these responses from the Omeka S API should reflect this and use the Content-Type application/ld+json; charset=utf-8 (see also https://www.w3.org/TR/json-ld11/).
I stumbled on this issue while using the (standards adhering) tool https://sketch.zazuko.com/ - I pasted the output of the Omeka S API into this tool and it showed the (correct) error:
Error:
Failed to load remote context https://www.goudatijdmachine.nl/omeka/api-context:
Unsupported JSON-LD media type application/json
The text was updated successfully, but these errors were encountered:
The API will return an application/ld+json content type in an upcoming release. In fact, consumers will be able to request other formats, such as RDF XML, N3, Turtle, and N-Triples, each with their corresponding content type.
Currently the Content-Type of the of the API response is
application/json; charset=utf-8
(like https://www.goudatijdmachine.nl/omeka/api/items/37476 and also the context https://www.goudatijdmachine.nl/omeka/api-context).The Omeka S API outputs a more specific kind of JSON: JSON-LD. So the content-type of these responses from the Omeka S API should reflect this and use the Content-Type
application/ld+json; charset=utf-8
(see also https://www.w3.org/TR/json-ld11/).I stumbled on this issue while using the (standards adhering) tool https://sketch.zazuko.com/ - I pasted the output of the Omeka S API into this tool and it showed the (correct) error:
The text was updated successfully, but these errors were encountered: