Get Documents by Parent Folder ID

GET /ws/rest/service/v1/dm/document/<parent_node_id>

Purpose

Provide a web service to retrieve all the documents (files) and meta data under a folder using the parent folder node id.

Input

Path Parameter

Query Parameter

Output

Output will be a multi-part response.

Example:

To get the documents under parent_node_id 55889 request URL should be as below:

URL: http://<host>:<port>/ws/rest/service/v1/dm/document/55889

There are 2 files b.txt (content is test test) and ucm_migration_issue.txt (content is 1. Most of the cases the wrong file referenced is a report ) under the selected directory.

iszip = no

Response Header

Content-Type = multipart/form-data; boundary=QXL6HDrSIJF1imDRjdgUC8bTbHIq1z4PUZ

Response Body

--5MJDL8Wb3f7FtknE7iXUzMYy-W1KqjuFfd6bye

Content-Disposition: form-data; name="response"

Content-Type: application/octet-stream

Content-Transfer-Encoding: 8bit

{"status":200,"data":[],"message": ""}

--5MJDL8Wb3f7FtknE7iXUzMYy-W1KqjuFfd6bye

Content-Disposition: form-data; name="b.txt"; filename="b.txt"

Content-Type: application/octet-stream

Content-Transfer-Encoding: binary

test test

--5MJDL8Wb3f7FtknE7iXUzMYy-W1KqjuFfd6bye

Content-Disposition: form-data; name="ucm_migration_issue.txt"; filename="ucm_migration_issue.txt"

Content-Type: application/octet-stream

Content-Transfer-Encoding: binary

1. Most of the cases the wrong file referenced is a report

--5MJDL8Wb3f7FtknE7iXUzMYy-W1KqjuFfd6bye--

{ "data": [ ], "message": [ ], "status":200 }

iszip = yes

Response Header

Content-Type = application/octet-stream

Response Body

zip file binary data

In case of error:

Output:

{

"data":

[

],

"message":

[

{

"message":"Parent path or node id is invalid or does not exists."

}

],

"status":1039

}

Related Topics

Document Services

Create Documents by Path

Create Documents by Parent Folder ID

Update Documents Meta Data by Path

Update Document Meta Data by Document ID

Get Documents by Path

Get Document as Tiff File

Get Document by File ID



Legal Notices | Your Privacy Rights
Copyright © 1998, 2022

Last Published Tuesday, February 8, 2022