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

cancel
Showing results for 
Search instead for 
Did you mean: 
Taaviansper
Active Member

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

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.2021-04-13_09-44.png

 

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
arjunmony
Active Member II

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

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}

Taaviansper
Active Member

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

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
Community Manager
Community Manager

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

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!
Taaviansper
Active Member

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

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.

 

rootnodeid.png

arjunmony
Active Member II

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

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.

RootNodeid.JPG