Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    RESTful API: JSON-Response differs from XML-Response

    • Article Type: Q&A
    • Product: Aleph
    • Product Version: 20

    Question

    The response from RESTful API differs when you request response in format JSON instead of XML.

    Example :
    * Requesting http://<server>:<jboss-port>/rest-dlf/record/abc010000123456/items/?view=full with Request-Header " Accept: text/xml;" " will give back correct z30-barcode 000123456789 (including leading zeroes).
    * Requesting http://<server>:<jboss-port>/rest-dlf/record/abc010000123456/items/?view=full with Request-Header "Accept: application/json" will give back wrong z30-barcode 123456789 (without leading zeroes).

    Is JSON a supported format in RESTful API?

    Answer

    RESTful API supports XML only.
    Other formats (like JSON) are not supported.


    • Article last edited: 10/8/2013