04-13-2021 02:48 AM
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?
04-13-2021 05:24 PM
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}
04-14-2021 04:29 AM
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.
04-14-2021 06:10 AM
Hi @Taaviansper
The link worked for me - you can get the collection referenced in the API tutorial.
HTH,
04-14-2021 06:36 AM
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.
04-14-2021 04:09 PM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.