GET /ws/rest/service/v1/dm//file/download/<file_id>
Purpose
Provide a web service to download the contents of a single document based on file id.
Input
Path Parameter
- file_id(Required) : The file id which needs to be downloaded
- Use “Get Folder or Document meta data by path” REST Service to get the file_id value for the document.
Output
Document file stream object.
Example:
HTTP/1.1 200 OK
Date: Thu, 01 Sep 2016 15:35:07 GMT
Transfer-Encoding: chunked
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=Autovue_reply.txt
<< Contents of the file being downloaded >>