1

我需要使用 RESTFul 协议列出 Alfresco 对象属性。我听说可以直接从浏览器完成,并以 JSON 的形式得到结果,但我在网上找不到任何示例。我需要先认证吗?谁能帮我解决这个问题?提前致谢

4

1 回答 1

1

有一个service/api/metadata会返回一个 JSON 结果所有节点的属性。它在 get 中接受 2 个变量:nodeRef=<nodeRef>shortQNames=<true/false>

shortQNames 是可选的,默认提供完整的命名空间。

一个例子:

{
   "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
   "aspects":
   [
       "cm:auditable",
       "sys:referenceable",
       "cm:titled",
       "cm:author",
       "rn:renditioned",
       "sys:localized",
       "cm:versionable"
   ],
   "nodeRef": "workspace://SpacesStore/01a6ba5a-2386-4cea-805f-db269075761b",
   "properties":
   {
       "cm:autoVersionOnUpdateProps": false,
       "cm:name": "Dashboard xxxx.xlsx",
       "sys:node-dbid": 3575,
       "sys:store-identifier": "SpacesStore",
       "sys:locale": "null",
       "sys:node-uuid": "01a6ba5a-2386-4cea-805f-db269075761b",
       "cm:creator": "xx.xx",
       "cm:modifier": "xx.xx",
       "cm:versionLabel": "1.17",
       "cm:content": "contentUrl=store://2012/1/8/22/10/50acac4c-11ba-4a2c-b976-7319ad0f2292.bin|mimetype=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|size=33996|encoding=UTF-8|locale=en_US_|id=1674",
       "cm:autoVersion": true,
       "cm:title": "xxxxxx.xlsx",
       "cm:modified": "Sun Jan 08 22:10:25 CET 2012",
       "cm:author": "RDS",
       "cm:created": "Fri Nov 04 11:26:53 CET 2011",
       "sys:store-protocol": "workspace",
       "cm:initialVersion": true
   },
   "type": "cm:content"
}
于 2013-11-05T14:40:48.800 回答