When I call http://localhost:8080/nuxeo/api/v1/id/bad6cbc5-b75f-4373-981f-6908cec66779?enrichers.document=children endpoint it returns all child elements include deleted elements. But I need to get only active elements and I think I should add isTrashed=false query to endpoint. But http://localhost:8080/nuxeo/api/v1/id/bad6cbc5-b75f-4373-981f-6908cec66779?enrichers.document=children&isTrashed=false does not any effect. How can I get only active child elemets from nuxeo server using rest api?
How to get child elements that is not deleted using nuxeo rest endpoint?
180 views Asked by M.M At
1
/nuxeo/api/v1/id endpoint with children enricher does not support this kind of filtering.
I see two options:
org.nuxeo.ecm.core.io.marshallers.json.enrichers.ChildrenJsonEnricherclass so you can inspire there how to do that./nuxeo/api/v1/search/pp/advanced_document_content/execute?&ecm_parentId=bad6cbc5-b75f-4373-981f-6908cec66779&ecm_trashed=falseBenefits of the second option:
currentPageIndex=0&offset=0&pageSize=20to the queryproperties:dublincore,common,uid,fileenrichers-document: thumbnail, permissionsExample curl call: