-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Christian GrĂ¼n wrote:
It works on my machine. Did you specify an Accept header in your request? I would expect it to be mandatory in eXist db as well..
curl -H"Accept:application/json" "http://localhost:8984/all-documents.json"
Gotcha, existdb does not seem to care about the Accept header since it responds through such a request through the browser.
As an alternative, you can also remove the %rest:produces("application/json") annotation.
curl -H"Accept:application/json" "http://localhost:8984/all-documents.json"
This now returns the XML version of func() - however now JSON serialized response although %output:method("json") is specified!?
Andreas