Does Documentum Rest Service supports folder download.

Hi Expert,

Does Documentum Rest service supports downloading folder/folders mechanism.

Regards
Vishal

Comments

  • yes, you can download entire cabinet/folder and its direct contents(documents) use
    GET
    http://localhost:8181/dctm-rest/repositories/myRepo/archived-contents?object-id=cabinet_or_folder_document_r_objectId

    to get cabinet/folder alongwith its nested contents use:
    POST and send required payload

    Documentum Platform REST Service guide page 97 has all info with examples

  • Thanks Charan for the reply!!

    As you mentioned I tried searching the Documentum Platform REST Service guide page 97 but didn't found any info.May be I am looking for some wrong document.
    Can you please help me referring the link for the exact document.

  • Charan might be referring to "Common Tasks on Folders, Documents, and Contents" chapter in REST Services Dev Guide. This starts on pg 362 for version 7.3.

  • Thank you Johnny!!

    I checked the topic "Common Tasks on Folders, Documents, and Contents" but I couldn't find details with folder/subfolder or Cabinet/Folder Download. I can see get methods used for retrieving the details for folder and document For post methods I can see update and create Documents with content.

  • To get cabinet/folder along with its nested contents:Along with the Post request as part of payload, should I pass the properties?
    When I use the GET request , I am able to download the top folder with zip sub folders are missing.

    I am not sure about the payload need to be passed with POST request.

  • in Documentum Platform REST Services 16.4 Reference Guide.pdf, please refer to page 96, 97

    Get Multiple Object’s Contents
    HTTP Request Method and Query Parameters
    Retrieves the first page of contents or all of the contents for multiple objects in ZIP file format. When
    an object is a folder (or a subtype of dm_folder), the REST server gets the contents of those objects
    (dm_sysobject) that are under that folder. When this is the case, virtual documents are treated
    as simple documents.

    Request Media Types
    application/vnd.emc.documentum+json

    HTTP
    Method
    Query
    Parameters Description Data
    Type Value Range Default
    Value
    format Specifies the file format of the
    contents that is retrieved. string
    Any format that
    is registered
    in the Format
    table of the
    repository
    null
    POST
    all-contents
    Determines whether to retrieve
    all of the object’s contents, or
    only retrieve the first page
    contents.
    boolean true, false false

    example payload:
    Example 2-22. JSON Request
    {
    "hrefs":
    [
    "http://localhost:8080/dctm-rest/repositories/REPO/objects/090004d280005520",
    "http://localhost:8080/dctm-rest/repositories/REPO/documents/090004d280005521",
    "http://localhost:8080/dctm-rest/repositories/REPO/folders/0b0004d2800060e8"
    ]
    }

  • Thank you Charan for the information.It helped a lot.

    I was able to download the folders as zip by providing the required payload if the folder has a document inside it.
    But if the folder is blank, the same folder doesn't download and is missing as the part of zip file.
    Also is there a way to get the entire blank folder structure downloaded as zip for a complex folder.

Sign In or Register to comment.