我想使用 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_type}
, {store_id}
and {id}
?
对于这个 NodeRef
workspace://SpacesStore/7f77488a-60a0-48c3-9369-77183ccad0d2
参数的值将是:
{property}: content
{store_type}: Workspace
{store_id}: spaceStore
{id}: 7f77488a-60a0-48c3-9369-77183ccad0d2
Krutik 已经指定了与每个参数相关的详细信息。
您应该使用此下载网址。
/alfresco/d/<d|a>/<workspace>/<store>/<nodeId>/<filename>
where d=direct
and a=attached
.
The attach
or direct
element 用于指示是直接在浏览器中显示流还是将其作为文件附件下载。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)