用于下载文档的Alfresco REST API

用于下载文档的Alfresco REST API,alfresco,alfresco-share,Alfresco,Alfresco Share,我想使用Afresco REST API下载一个文档。经过一些研究,我发现了这个REST API: /alfresco/s/api/node/content{property}/{store_type}/{store_id}/{id} 但我不知道如何传递参数 如果共享中的“我的文档详细信息”URL为: http://127.0.0.1:8080/share/page/context/mine/document-details?nodeRef=workspace://SpacesStore/7f

我想使用Afresco REST API下载一个文档。经过一些研究,我发现了这个REST API:

/alfresco/s/api/node/content{property}/{store_type}/{store_id}/{id}
但我不知道如何传递参数

如果共享中的“我的文档详细信息”URL为:

http://127.0.0.1:8080/share/page/context/mine/document-details?nodeRef=workspace://SpacesStore/7f77488a-60a0-48c3-9369-77183ccad0d2 

{property}
{store\u type}
{store\u id}
{id}
中应该传递什么?

您可以在下面的URL上找到alfresco中每个web脚本(REST API)的详细信息

http://localhost:8080/alfresco/service/index
对于您的API,如下所示

http://localhost:8080/alfresco/service/script/org/alfresco/cmis/content.get
Property   : Name of property which you want to retrieve.
store_type : Workspace Protocol
store_id   : Store Id of node
id         : Id of node.
参数说明如下

http://localhost:8080/alfresco/service/script/org/alfresco/cmis/content.get
Property   : Name of property which you want to retrieve.
store_type : Workspace Protocol
store_id   : Store Id of node
id         : Id of node.
为了这个诺德雷夫

workspace://SpacesStore/7f77488a-60a0-48c3-9369-77183ccad0d2
参数的值将为:

{property}: content
{store_type}: Workspace
{store_id}: spaceStore
{id}: 7f77488a-60a0-48c3-9369-77183ccad0d2 
与每个参数相关的详细信息已由Krutik指定

您应该使用这个下载url

/alfresco/d/<d|a>/<workspace>/<store>/<nodeId>/<filename>
/alfresco/d/////
其中
d=direct
a=attached


attach
direct
元素用于指示是直接在浏览器中显示流还是将其作为文件附件下载。

感谢您的回复。我试过了,它成功了谢谢…我试过了,它成功了