The Library Services enable you to create and maintain versions of managed documents in MarkLogic Server. Access to managed documents is controlled using a check-out/check-in model. For more details refer to MarkLogic official documentation here.
You are here because you already know that, as of today, the DLS XQuery APIs are not exposed via REST in MarkLogic. You may use this project as a reference implementation to expose the DLS XQuery functions via REST.
git clone https://github.com/sanjuthomas/marklogic-dls-rest-extension.git
cd marklogic-dls-rest-extension
gradle mlDeploy
Sample Requests for both read and update functions are available here. You may use a standard REST client like Postman to test.
You can find all the DLS functions exposed via the REST extension here. In the current version, the optional parameter to the DLS functions are not read from the request.
Please contact me at ml@sanju.org if you find any issues or looking for clarification.