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