Getting the List of Attachments

Usage

Gets the list of attachments to a document.

Request

GET /documents/<documentID>/attachments

Response

Response type: application/xml or application/json

Response body: details of the attachments of the document. Each attachment is identified by:

  • The attachment mime type <mimeType>
  • Document name <name>
  • Document description (if one exists, otherwise the tag is empty) <description>

Example

GET /documents/8022/attachments

<attachments>
    <attachment>
        <name>barometer.png</name>
        <size>13229</size>
        <releasemode>auto</releasemode>
        <md5hashcode>97B3E3B2745595A2CBA42CA825CCD656</md5hashcode>
        <mimeType>image/png</mime> 
    </attachment>
    <attachment>
        <name>statistics.jpg</name>
        <size>18239</size>
        <releasemode>auto</releasemode>
        <md5hashcode>97B3E3B2745595A2CBA42CA825CCD656</md5hashcode>
        <mimeType>image/jpeg</mimeType>  
    </attachment>
</attachments>