Hi,
I have found that /queries/nodes in api-explorer seems to be bugged.
If I press to try it out it sends the following.
2. When I tried to run this request:
curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic pwdhash' 'https://host-address/alfresco/api/-default-/public/alfresco/versions/1/queries/nodes?term=blaah&skipCount=0&maxItems=100&rootNodeId=blaaaah'
I get 0 entries when using rootNodeId. Why is that so?
Hello,
Try to run the api as like from the postman here is the collection.
http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/queries/nodes?term={yourtext}
Sorry, the link doesn't work for me. It is stuck in loading in web browser mode and my postman application wont open the xdg link.
Hi @Taaviansper
The link worked for me - you can get the collection referenced in the API tutorial.
HTH,
Ok, but there is no mention of search based on rootNodeId. Why does my api-explorer specify i have that option then?
If i add rootNodeId option, then I get an empty entries list. I've tried lots of UUID-s there.
Hi Taavian,
Instead of using the documents uuid you have to use folder UUID which has the document.
Also you can use any of these values if you doesn't know the UUID of the parent folder -my-, -root- and -shared- it will bring all the documents in your site.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.