cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco API-Explorer Bug and /queries/nodes parameter not working

Taaviansper
Confirmed Champ
Confirmed Champ

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.image

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?

5 REPLIES 5

arjunmony
Star Contributor
Star Contributor

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.

EddieMay
World-Class Innovator
World-Class Innovator

Hi @Taaviansper 

The link worked for me - you can get the collection referenced in the API tutorial

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

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.

image