Digital Object API


    GET /objects/:pid/profile

    URL Syntax/objects/:pid/profile ? [template] [headers]
    DescriptionGet digital object profile
    HTTP MethodGET
    :pidDigital object pernament unique ID
    ReturnDigital object profile

    GET request data:

    • template=true - run Smarty template fetch on data stream label, title, description
    • headers=true - send HTTP headers
    • format=[ xml | json ] - response format (default=xml)

    HTTP Response status codes:

    • 200 (OK)
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object not found

    Sample request:

    GET /cms/srv/api/objects/55c77ea00c60b/datastreams[?format=xml | json]

    Sample response (XML):

    <objectProfile> <objLabel>Asus Notebook UX301LA</objLabel> <objCreator>CMS</objCreator> <objCreatorName>CMS</objCreatorName> <objEditor>CMS</objEditor> <objEditorName>CMS</objEditorName> <objTitle>Asus Notebook UX301LA - 13.3" - Intel Core i7 - Windows 8 Pro 64-bit - 8 GB RAM - 128 GB SSD</objTitle> <objDescription>Display diagonal: 13.3"; CPU: Intel Core i7; OS: Windows 8 Pro 64-bit; Internal memory: 8 GB RAM; Total storage capacity: 128 GB SSD</objDescription> <objKeywords>asus, notebook, Product code UX301LA</objKeywords> <objLanguage>lt</objLanguage> <objID>358</objID> <objPID>55c77ea00c60b</objPID> <objSEQ>55c77ea00c84f</objSEQ> <objFolderID>291</objFolderID> <objFolderSEQ>5593ae085f363</objFolderSEQ> <objFolderPath>/eshop/lit/Kompiuteriai ir jų komponentai/Nešiojami kompiuteriai</objFolderPath> <objModelID>6</objModelID> <objModelPID>model-ecom.item</objModelPID> <objModelSEQ>544cb8b2e7926</objModelSEQ> <objModelTitle>model-ecom.item</objModelTitle> <objCode>ecom.item</objCode> <objURL>http://test.kusoftas.lt/eshop/lit/kompiuteriai-ir-ju-komponentai/nesiojami-kompiuteriai/asus-notebook-ux301la</objURL> <objURLOriginal>/eshop/lit/kompiuteriai-ir-ju-komponentai/nesiojami-kompiuteriai/asus-notebook-ux301la</objURLOriginal> <objCreateDate>2015-12-30 00:28:42</objCreateDate> <objLastModDate>2015-12-30 00:28:42</objLastModDate> <objTimestamp>1451428122</objTimestamp> <objTopClass> <objTopClassItem>lit</objTopClassItem> </objTopClass> <objOpenAccess>1</objOpenAccess> <objManage>1</objManage> </objectProfile>

    Sample response (JSON):

    { "objectProfile":{ "objLabel":"Asus Notebook UX301LA", "objCreator":"CMS", "objCreatorName":"CMS", "objEditor":"CMS", "objEditorName":"CMS", "objTitle":"Asus Notebook UX301LA - 13.3\" - Intel Core i7 - Windows 8 Pro 64-bit - 8 GB RAM - 128 GB SSD", "objDescription":"Display diagonal: 13.3\"; CPU: Intel Core i7; OS: Windows 8 Pro 64-bit; Internal memory: 8 GB RAM; Total storage capacity: 128 GB SSD", "objKeywords":"asus, notebook, Product code UX301LA", "objLanguage":"lt", "objID":"358", "objPID":"55c77ea00c60b", "objSEQ":"55c77ea00c84f", "objFolderID":"291", "objFolderSEQ":"5593ae085f363", "objFolderPath":"\/eshop\/lit\/Kompiuteriai ir j\u0173 komponentai\/Ne\u0161iojami kompiuteriai", "objModelID":"6", "objModelPID":"model-ecom.item", "objModelSEQ":"544cb8b2e7926", "objModelTitle":"model-ecom.item", "objCode":"ecom.item", "objURL":"http:\/\/test.kusoftas.lt\/eshop\/lit\/kompiuteriai-ir-ju-komponentai\/nesiojami-kompiuteriai\/asus-notebook-ux301la", "objURLOriginal":"\/eshop\/lit\/kompiuteriai-ir-ju-komponentai\/nesiojami-kompiuteriai\/asus-notebook-ux301la", "objCreateDate":"2015-12-30 00:28:42", "objLastModDate":"2015-12-30 00:28:42", "objTimestamp":1451428122, "objTopClass":["lit"], "objOpenAccess":"1", "objManage":"1" } }

    GET /objects/:pid

    URL Syntax/objects/:pid ? [template] [headers] [format]
    DescriptionGet digital object profile and datastreams
    HTTP MethodGET
    :pidDigital object pernament unique ID
    ReturnDigital object profile and datastreams list

    GET request data:

    • template=true - run Smarty template fetch on data stream label, title, description
    • headers=true - send HTTP headers
    • format=[ xml | json ] - response format (default=xml)

    HTTP Response status codes:

    • 200 (OK)
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object not found

    Sample request:

    GET /cms/srv/api/objects/55c77ea00c60b/datastreams[?format=xml | json]

    Sample response (XML):

    <object> <objectProfile> <objLabel>Asus Notebook UX301LA</objLabel> <objCreator>CMS</objCreator> <objCreatorName>CMS</objCreatorName> <objEditor>CMS</objEditor> <objEditorName>CMS</objEditorName> <objTitle>Asus Notebook UX301LA - 13.3" - Intel Core i7 - Windows 8 Pro 64-bit - 8 GB RAM - 128 GB SSD</objTitle> <objDescription>Display diagonal: 13.3"; CPU: Intel Core i7; OS: Windows 8 Pro 64-bit; Internal memory: 8 GB RAM; Total storage capacity: 128 GB SSD</objDescription> <objKeywords>asus, notebook, Product code UX301LA</objKeywords> <objLanguage>lt</objLanguage> <objID>358</objID> <objPID>55c77ea00c60b</objPID> <objSEQ>55c77ea00c84f</objSEQ> <objFolderID>291</objFolderID> <objFolderSEQ>5593ae085f363</objFolderSEQ> <objFolderPath>/eshop/lit/Kompiuteriai ir jų komponentai/Nešiojami kompiuteriai</objFolderPath> <objModelID>6</objModelID> <objModelPID>model-ecom.item</objModelPID> <objModelSEQ>544cb8b2e7926</objModelSEQ> <objModelTitle>model-ecom.item</objModelTitle> <objCode>ecom.item</objCode> <objURL>http://test.kusoftas.lt/eshop/lit/kompiuteriai-ir-ju-komponentai/nesiojami-kompiuteriai/asus-notebook-ux301la</objURL> <objURLOriginal>/eshop/lit/kompiuteriai-ir-ju-komponentai/nesiojami-kompiuteriai/asus-notebook-ux301la</objURLOriginal> <objCreateDate>2015-12-30 00:28:42</objCreateDate> <objLastModDate>2015-12-30 00:28:42</objLastModDate> <objTimestamp>1451428122</objTimestamp> <objTopClass> <objTopClassItem>lit</objTopClassItem> </objTopClass> <objOpenAccess>1</objOpenAccess> <objManage>1</objManage> </objectProfile> <objectDatastreams> <datastream type="storage" size="2462" openAccess="1" manage="1"> <dsid>55c77f7442208</dsid> <label>Specification</label> <code>ecom.meta</code> <mimeType>text/xml</mimeType> <size>2462</size> <lastModDate>2015-08-19 13:08:29</lastModDate> <timestamp>1439978909</timestamp> </datastream> ... <datastream type="storage" size="23969" openAccess="1" manage="1"> <dsid>570bcbc17f5df</dsid> <label>File</label> <code>ecom.file</code> <mimeType>image/png</mimeType> <size>23969</size> <lastModDate>2016-04-11 19:07:45</lastModDate> <timestamp>1460390865</timestamp> </datastream> </objectDatastreams> </object>

    Sample response (JSON):

    { "objectProfile":{ "objLabel":"Asus Notebook UX301LA", "objCreator":"CMS", "objCreatorName":"CMS", "objEditor":"CMS", "objEditorName":"CMS", "objTitle":"Asus Notebook UX301LA - 13.3\" - Intel Core i7 - Windows 8 Pro 64-bit - 8 GB RAM - 128 GB SSD", "objDescription":"Display diagonal: 13.3\"; CPU: Intel Core i7; OS: Windows 8 Pro 64-bit; Internal memory: 8 GB RAM; Total storage capacity: 128 GB SSD", "objKeywords":"asus, notebook, Product code UX301LA", "objLanguage":"lt", "objID":"358", "objPID":"55c77ea00c60b", "objSEQ":"55c77ea00c84f", "objFolderID":"291", "objFolderSEQ":"5593ae085f363", "objFolderPath":"\/eshop\/lit\/Kompiuteriai ir j\u0173 komponentai\/Ne\u0161iojami kompiuteriai", "objModelID":"6", "objModelPID":"model-ecom.item", "objModelSEQ":"544cb8b2e7926", "objModelTitle":"model-ecom.item", "objCode":"ecom.item", "objURL":"http:\/\/test.kusoftas.lt\/eshop\/lit\/kompiuteriai-ir-ju-komponentai\/nesiojami-kompiuteriai\/asus-notebook-ux301la", "objURLOriginal":"\/eshop\/lit\/kompiuteriai-ir-ju-komponentai\/nesiojami-kompiuteriai\/asus-notebook-ux301la", "objCreateDate":"2015-12-30 00:28:42", "objLastModDate":"2015-12-30 00:28:42", "objTimestamp":1451428122, "objTopClass":["lit"], "objOpenAccess":"1", "objManage":"1" }, "objectDatastreams":[ { "type":"storage", "id":"55c77f7442208", "label":"Specification", "code":"ecom.meta", "mimeType":"text\/xml", "size":"2462", "lastModDate":"2015-08-19 13:08:29", "timestamp":1439978909, "openAccess":"1", "manage":"1" }, ... { "type":"storage", "id":"570b5c78d87a3", "label":"File", "code":"ecom.file", "mimeType":"image\/png", "size":"20310", "lastModDate":"2016-04-11 11:13:00", "timestamp":1460362380, "openAccess":"0", "manage":"1", "acl":{ "inherit":"0", "items":[ {"type":"user","id":"vk","r":"0","e":"0","m":"0"}, {"type":"role","id":"demo","w":"0","e":"0","m":"0"}, {"type":"role","id":"admin","r":"0","e":"0","m":"0"} ] }, "aclInherit":{"root":"0","items":[]} } ] }

    POST /objects

    URL Syntax/objects/:pid
    DescriptionAdd digital object profile and datastreams
    HTTP MethodPOST
    ReturnN/A

    POST /objects/:pid

    URL Syntax/objects/:pid
    DescriptionUpdate digital object profile and datastreams
    HTTP MethodPOST
    :pidDigital object pernament unique ID
    ReturnN/A

    HTTP Response status codes:

    • 200 (OK)
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object not found

    Request data

    • objectFolder - optional if object update:
      • folderUPID - up folder ID, allowed only for adding
      • folderUPSEQ - up folder SEQ, allowed only for adding
      • folderID - folder ID, allowed only for update
      • folderSEQ - folder SEQ, allowed only for update
      • folderLabel - folder label
      • folderACL - folder access control list
        • inherit - inheritance [0 | 1|, default: 1
        • items[] - array of access control list items:
          • id - subject ID (user or role)
          • type - type of item ['user' | 'role']
          • r - datastream read access property [0 | 1], default: 1
          • w - datastream write access property [0 | 1], default: 1
          • e - datastream exec property [0 | 1], default: 1
          • m - datastream management exec property [0 | 1], default: 1
      • folderEditor - editor user ID, default: 'CMS'
    • objectProfile:
      • objLabel - object label
      • objTitle - object title, optional
      • objDescription - object description, optional
      • objKeywords - object keywords, optional
      • objLanguage - object language ID, optional
      • objPID - object PID, optional
      • objSEQ - object SEQ, allowed only for update
      • objID - object internal ID, allowed only for update
      • objFolderID - folder internal ID, allowed only for adding
      • ,
      • objFolderSEQ - folder SEQ, allowed only for adding
      • objModelID - object model internal ID, optional
      • objModelPID - object model PID, optional
      • objModelSEQ - object model SEQ, optional
      • objSampleID - object sample internal ID, optional, allowed only for adding
      • objSamplePID - object sample PID, optional, allowed only for adding
      • objSampleSEQ - object sample SEQ, optional, allowed only for adding
      • objCode - object code, optional
      • objURL - object URL
      • objCreateDate - object create date, [yyyy-mm-dd hh:mm:ss], optional
      • objLastModDate - object last update, [yyyy-mm-dd hh:mm:ss], optional
      • objTopClass - object top classification items array
      • objOpenAccess - object open access [0 | 1], default: 1
      • objPublic - object public availability [0 | 1], default: 1
      • objPublicStart - object availability interval start date [yyyy-mm-dd], default '0000-00-00'
      • objPublicStop - object availability interval end date [yyyy-mm-dd], default '9999-00-00'
      • objACL - object access control list
        • inherit - inheritance [0 | 1|, default: 1
        • items[] - array of access control list items:
          • id - subject ID (user or role)
          • type - type of item ['user' | 'role']
          • r - datastream read access property [0 | 1], default: 1
          • w - datastream write access property [0 | 1], default: 1
          • e - datastream exec property [0 | 1], default: 1
          • m - datastream management exec property [0 | 1], default: 1
      • objCreator
      • objEditor
    • objectDatastreams - array of items:
      • id - datastream ID
      • code - datastream classification code, optional
      • label - datastream label
      • path - file/redirect path or url
      • mimeType - datastream mimeType
      • size - datastream size in bytes
      • meta - datastream metadata in XML format, optional
      • type - datastream type: ['inline' | 'storage' | 'inline' | 'file' | 'redirect']
      • public - public availability [0 | 1], optional - default: 1
      • publicStart - date of interval begining [yyyy-mm-dd], optional - default: 0000-00-00
      • publicStop - date of interval ending [yyyy-mm-dd], optional - default: 9999-00-00
      • acl - access control list, optional:
        • inherit - access control inheritance [0 | 1], optional - default: 1
        • items[] - array of access control list items:
          • id - subject ID (user or role)
          • type - type of item ['user' | 'role']
          • r - datastream read access property [0 | 1], default: 1
          • w - datastream write access property [0 | 1], default: 1
          • e - datastream exec property [0 | 1], default: 1
          • m - datastream management exec property [0 | 1], default: 1

    Sample request:

    POST /cms/srv/api/objects

    Sample request data:

    { "objectFolder":{ "folderSEQ":"5593ae085f363" }, "objectProfile":{ "objCode":"ecom.item", "objModelPID":"model-ecom.item", "objSamplePID":"55c75db807ae3", "objLabel":"label aaa", "objTitle":"title aaa", "objDescription":"description aaa", "objKeywords":"keywords aaa", "objLanguage":"lt", "objURL":"/eshop/lit/kompiuteriai-ir-ju-komponentai/nesiojami-kompiuteriai/label-aaa" } }

    Sample response:

    { "id":"561", "seq":"570d0b94771d2", "pid":"570d0b9476dfd", "url":"\/eshop\/lit\/kompiuteriai-ir-ju-komponentai\/nesiojami-kompiuteriai\/label-aaa", "label":"label aaa", "path":"\/eshop\/lit\/Kompiuteriai ir j\u0173komponentai\/Ne\u0161iojami kompiuteriai", "isFolder":"0" }

    GET /objects/:pid/datastreams

    URL Syntax/objects/:pid/datastreams ? [template] [headers]
    DescriptionGet digital object datastreams list
    HTTP MethodGET
    :pidDigital object pernament unique ID
    ReturnDigital object datastreams list

    GET request data:

    • template=true - run Smarty template fetch on data stream label, title, description
    • headers=true - send HTTP headers
    • format=[ xml | json ] - response format (default=xml)

    HTTP Response status codes:

    • 200 (OK)
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object not found

    Sample request:

    GET /cms/srv/api/objects/55c77ea00c60b/datastreams[?format=xml | json]

    Sample response (XML):

    <objectDatastreams> <datastream type="storage" size="2462" openAccess="1" manage="1"> <dsid><![CDATA[55c77f7442208]]></dsid> <label><![CDATA[Specification]]></label> <code><![CDATA[ecom.meta]]></code> <mimeType><![CDATA[text/xml]]></mimeType> <size><![CDATA[2462]]></size> <lastModDate><![CDATA[2015-12-15 19:13:51]]></lastModDate> <timestamp><![CDATA[1450199631]]></timestamp> </datastream> ... <datastream type="storage" size="20310" openAccess="0" manage="1"> <dsid>570b5c78d87a3</dsid> <label>File</label> <code>ecom.file</code> <mimeType>image/png</mimeType> <size>20310</size> <lastModDate>2016-04-11 11:13:00</lastModDate> <timestamp>1460362380</timestamp> <acl inherit="0"> <item type="user" r="0" e="0" m="0">vk</item> <item type="role" w="0" e="0" m="0">demo</item> <item type="role" r="0" e="0" m="0">admin</item> </acl> <aclInherit root="0"/> </datastream> </objectDatastreams>

    Sample response (JSON):

    { "objectDatastreams":[ { "type":"storage", "id":"55c77f7442208", "label":"Specification", "code":"ecom.meta", "mimeType":"text\/xml", "size":"2462", "lastModDate":"2015-08-19 13:08:29", "timestamp":1439978909, "openAccess":"1", "manage":"1" }, ... { "type":"storage", "id":"570b5c78d87a3", "label":"File", "code":"ecom.file", "mimeType":"image\/png", "size":"20310", "lastModDate":"2016-04-11 11:13:00", "timestamp":1460362380, "openAccess":"0", "manage":"1", "acl":{ "inherit":"0", "items":[ {"type":"user","id":"vk","r":"0","e":"0","m":"0"}, {"type":"role","id":"demo","w":"0","e":"0","m":"0"}, {"type":"role","id":"admin","r":"0","e":"0","m":"0"} ] }, "aclInherit":{"root":"0","items":[]} } ] }

    POST /objects/:pid/datastreams

    URL Syntax/objects/:pid/datastreams
    DescriptionReorder/Delete digital object datastreams list
    HTTP MethodPOST
    :pidDigital object pernament unique ID
    ReturnN/A

    POST request data:

    • cmd
      • 'reorder' - reorder list of datastreams
      • 'delete' - delete listed datastreams
    • data - array of datastreams SEQ

    HTTP Response status codes:

    • 200 (OK)
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object not found

    Sample request (reorder):

    POST /objects/55c77ea00c60b/datastreams { "cmd":"reorder", "data":["55c77f744220b",...,"570b6acdb4480"] }

    Sample request (delete):

    POST /objects/55c77ea00c60b/datastreams { "cmd":"delete", "data":["570bc447fd403"] }

    POST /objects/:pid/datastreams/:ds

    URL Syntax/objects/:pid/datastreams/:ds
    DescriptionAdd/update digital object datastream
    HTTP MethodPOST
    :pidDigital object pernament unique ID
    :dsDigital object datastream ID
    ReturnN/A

    POST request data:

    • id - datastream ID
    • code - datastream classification code, optional
    • label - datastream label
    • path - file/redirect path or url
    • mimeType - datastream mimeType
    • size - datastream size in bytes
    • meta - datastream metadata in XML format, optional
    • type - datastream type: ['inline' | 'storage' | 'inline' | 'file' | 'redirect']
    • public - public availability [0 | 1], optional - default: 1
    • publicStart - date of interval begining [yyyy-mm-dd], optional - default: 0000-00-00
    • publicStop - date of interval ending [yyyy-mm-dd], optional - default: 9999-00-00
    • acl - access control list, optional:
      • inherit - access control inheritance [0 | 1], optional - default: 1
      • items[] - array of access control list items:
        • id - subject ID (user or role)
        • type - type of item ['user' | 'role']
        • r - datastream read access property [0 | 1], default: 1
        • w - datastream write access property [0 | 1], default: 1
        • e - datastream exec property [0 | 1], default: 1
        • m - datastream management exec property [0 | 1], default: 1

    POST request data sample:

    POST /objects/55c77ea00c60b/datastreams/570bcbc17f5df { "id":"570bcbc17f5df", "label":"File", "mimeType":"image/png", "type":"storage", "path":"/cms/images/sample-2.png", "code":"ecom.file" }

    HTTP Response status codes:

    • 200 (OK)
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object not found

    GET /objects/:pid/datastreams/:ds/profile

    URL Syntax/objects/:pid/datastreams/:ds/profile
    DescriptionGet digital object datastream profile
    HTTP MethodGET
    :pidDigital object pernament unique ID
    :dsDigital object datastream ID
    Returndigital object datastream profile

    GET request data:

    • template=true - run Smarty template fetch on data stream label, title, description
    • headers=true - send HTTP headers
    • format=[ xml | json ] - response format (default=xml)

    HTTP Response status codes:

    • 200 (OK)
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object not found

    Sample request:

    GET /objects/:pid/datastreams/:ds/profile[?format=xml | json]

    Sample response (XML):

    <objectDatastreams> <datastream type="storage" size="20310" openAccess="0" manage="1"> <dsid>570b5c78d87a3</dsid> <label>File</label> <code>ecom.file</code> <mimeType>image/png</mimeType> <size>20310</size> <lastModDate>2016-04-11 11:13:00</lastModDate> <timestamp>1460362380</timestamp> <acl inherit="0"> <item type="user" r="0" e="0" m="0">vk</item> <item type="role" w="0" e="0" m="0">demo</item> <item type="role" r="0" e="0" m="0">admin</item> </acl> <aclInherit root="0"/> </datastream> </objectDatastreams>

    Sample response (JSON):

    { "objectDatastreams":[ { "type":"storage", "id":"570b5c78d87a3", "label":"File", "code":"ecom.file", "mimeType":"image\/png", "size":"20310", "lastModDate":"2016-04-11 11:13:00", "timestamp":1460362380, "openAccess":"0", "manage":"1", "acl":{ "inherit":"0", "items":[ {"type":"user","id":"vk","r":"0","e":"0","m":"0"}, {"type":"role","id":"demo","w":"0","e":"0","m":"0"}, {"type":"role","id":"admin","r":"0","e":"0","m":"0"} ] }, "aclInherit":{"root":"0","items":[]} } ] }

    /objects/:pid/datastreams/:ds/content

    URL Syntax/objects/:pid/datastreams/:ds/content ? [template] [headers] [download] [url]
    DescriptionRead digital object datastream content
    HTTP MethodGET
    :pidDigital object pernament unique ID
    :dsDigital object datastream unique ID
    ReturnDigital object datastream raw content or URL

    GET request data:

    • template=true - run Smarty template fetch on data stream content
    • headers=true - send HTTP headers
    • download=true - send HTTP headers to force content download
    • url=true - return URL to digital object datastream instead of raw content

    HTTP Response status codes:

    • 200 (OK)
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object/datastream not found

    /objects/:pid/datastreams/:ds/content

    URL Syntax/objects/:pid/datastreams/:ds/content
    DescriptionWrite digital object datastream content
    HTTP MethodPOST
    :pidDigital object pernament unique ID
    :dsDigital object datastream unique ID
    ReturnNothing

    POST request parameters:

    • Digital object datastream content raw data

    HTTP Response status codes:

    • 200 (OK)
    • 400 - Can't modify external data source
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object/datastream not found

    /objects/:pid/datastreams/:ds/methods/resize

    URL Syntax/objects/:pid/datastreams/:ds/methods/resize ? width_orig height_orig width height [w h x y] [angle]
    DescriptionResize, crop, rotate digital object datastream of image type
    HTTP MethodPOST
    :pidDigital object pernament unique ID
    :dsDigital object datastream unique ID
    ReturnDatastream data size (bytes) in JSON data format, ex. {"size": 5555}

    POST request parameters:

    • width_orig - image original width
    • height_orig - image original height
    • width - image resized width
    • height - image resized height
    • w - image crop width
    • h - image crop height
    • x - image crop x position
    • y - image crop y position
    • angle - image rotation angle; possible values: -270, -180, -90, 0, 90, 180, 270

    HTTP Response status codes:

    • 200 (OK)
    • 400 - Bad request
    • 400 - Can't rotate image
    • 400 - Can't resize image
    • 400 - Can't crop image
    • 401 - Digital object authorization denied
    • 403 - Forbidden: You don't have permission to access this object/datastream.
    • 404 - Digital object/datastream not found