【问题标题】:Retrieve specific version of document using Alfresco REST API使用 Alfresco REST API 检索特定版本的文档
【发布时间】:2015-05-19 06:46:16
【问题描述】:

我正在使用 Alfresco Community 5.0b,但是当我尝试获取版本列表时,使用
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/versions, 我只是收到一个 HTTP 404 错误。根据https://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Retrieve_all_versions_.28getAllVersions.29,这是获取版本列表的推荐方式。

当我尝试
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/content
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/metadata 时,内容和元数据查询都可以正常工作。我错过了什么?

【问题讨论】:

  • 你看到那个页面顶部的大警告了吗?另外,您为什么不使用 CMIS 来执行此操作?
  • 我没有使用 CMIS,因为到目前为止,与 REST API 相比,在我进行负载测试的每种情况下它都慢了大约 2 倍,即使使用 succinct=true 参数也是如此。两者都受支持。为什么重要?

标签: api rest alfresco


【解决方案1】:

试试这个,

/alfresco/service/api/version?nodeRef={noderef}

【讨论】:

  • 哈利路亚!谢谢您的帮助。我已经变得非常不喜欢 Alfresco 文档,因为所有内容都记录在案,但还不足以真正使用它。谢谢!!!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-05-18
  • 2014-01-28
  • 1970-01-01
  • 1970-01-01
  • 2021-07-06
  • 2023-03-03
相关资源
最近更新 更多