Code Monkey home page Code Monkey logo

marklogic-dls-rest-extension's Introduction

What is MarkLogic Document Library Service?

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.

What is MarkLogic DLS REST Extension?

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.

Installation and Testing

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.

What is not yet implemented?

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.

Contact

Please contact me at [email protected] if you find any issues or looking for clarification.

marklogic-dls-rest-extension's People

Contributors

sanjuthomas avatar

Watchers

 avatar  avatar

marklogic-dls-rest-extension's Issues

Issue with dls:document-checkout-update-checkin

I am facing issue while updating the managed document in a directory, it gives me below error

{
    "errorResponse": {
        "statusCode": 500,
        "status": "Internal Server Error",
        "messageCode": "INTERNAL ERROR",
        "message": "XDMP-CONFLICTINGUPDATES: xdmp:invoke-function(function() as item()*, <options xmlns=\"xdmp:eval\"><isolation>different-transaction</isolation>...</options>) -- Conflicting updates xdmp:document-set-property(\"/dp/abc_json_versions/2-abc.json\", /*:version) and xdmp:document-set-property(\"/dp/abc_json_versions/2-abc.json\", /*:version) . See the MarkLogic server error log for further detail."
    }
}

though it works when i am updating document which is not under a directory.
Could you please help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.