我将文件上传到workspace下的nuxeo文档。现在我需要使用文件夹UUID获取文件信息列表。使用http://127.0.0.1:8080/nuxeo/api/v1/id/{folder_id}端点,我只能获取文件夹信息,而不能获取文件夹中的文件信息。我应该使用哪个端点?
发布于 2020-06-28 14:16:50
您可以按advanced_document_content页面提供商列出文件夹中的文档,如下所示:
curl -X GET -u Administrator:Administrator \
"http://localhost:8080/nuxeo/api/v1/search/pp/advanced_document_content/execute?currentPageIndex=0&offset=0&pageSize=40&ecm_parentId=b7ffc1a1-5439-4050-9562-bcaa4db0624f&ecm_trashed=false" | jq其中,ecm_parentId参数指定文件夹的UUID。您还可以使用分页(currentPageIndex、offset和pageSize参数),当您设置pageSize=0时,它将列出所有文件夹文档。
它将列出每个文档的基本属性。如果您需要有关每个文档的更多详细信息,您可以使用properties a enrichers-document headers,其中您可以指定要检索的其他内容,如下所示:
curl -X GET -u Administrator:Administrator \
-H "properties: dublincore,common,uid,file" \
-H "enrichers-document: thumbnail, permissions" \
"http://localhost:8080/nuxeo/api/v1/search/pp/advanced_document_content/execute?currentPageIndex=0&offset=0&pageSize=40&ecm_parentId=b7ffc1a1-5439-4050-9562-bcaa4db0624f&ecm_trashed=false" | jqproperties header列出文档schemasenrichers-document header列出内容丰富者,它提供有关文档的更多信息。Here您可以找到所有可用丰富程序的列表,也可以实现您的自定义丰富程序。https://stackoverflow.com/questions/62611610
复制相似问题