Alfresco REST API for downloading document

后端 未结 2 1692
忘了有多久
忘了有多久 2021-01-14 14:44

I want to use the Afresco REST API to download a document. After some research I find out this REST API:

/alfresco/s/api/node/content{property}/{store_type}/         


        
2条回答
  •  悲&欢浪女
    2021-01-14 15:37

    For this NodeRef

    workspace://SpacesStore/7f77488a-60a0-48c3-9369-77183ccad0d2
    

    the values for parameter will be:

    {property}: content
    {store_type}: Workspace
    {store_id}: spaceStore
    {id}: 7f77488a-60a0-48c3-9369-77183ccad0d2 
    

    Details related to each parameter is already specified by Krutik.

    And you should use this download url.

    /alfresco/d/////
    

    where d=direct and a=attached.

    The attach or direct element is used to indicate whether to display the stream directly in the browser or download it as a file attachment.

提交回复
热议问题