I tried to use marklogic webUI console on port 8000 and Xquery. I tried the code bellow to retrieve a document by URI and display all fields:
xdmp:document-get("/XXX/YYYY.json")
NOTE :this code is executed on the API port 9033 (custom API)
Unfortunately, I have the following error :
File open error: open '/XXX/YYYY.json': No such file or directory
If I use the custom API port 9033 (the same as in the console), I can retrieve my document without any error :
https://<mydomain>:9033/v1/documents?uri=/XXX/YYYY.json&category=metadata
Any idea ?
Thanks, Romain.