Alfresco REST API for downloading document

二次信任 提交于 2019-12-01 10:38:19

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/<d|a>/<workspace>/<store>/<nodeId>/<filename>

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.

You can find details of every web-script (REST API) in alfresco on below URL.

http://localhost:8080/alfresco/service/index

For your API it is given as below.

http://localhost:8080/alfresco/service/script/org/alfresco/cmis/content.get

Description of parameter is as below.

Property   : Name of property which you want to retrieve.
store_type : Workspace Protocol
store_id   : Store Id of node
id         : Id of node.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!