cancel
Showing results for 
Search instead for 
Did you mean: 

getchildren from with sandbox via rest api

positron
Champ in-the-making
Champ in-the-making
Read the wiki (http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference). Re read the wiki.   Spent many a day googling and looking over this forum.  

Why does this not return a 'collection' of child nodes?

http://localhost:8080/alfresco/service/api/node/avm/test-site--admin/-1;www;avm_webapps;ROOT;testfol...

According to the documentation, it should.   Yes there are nodes in the 'testfolder' folder.
2 REPLIES 2

marutiprasad
Champ in-the-making
Champ in-the-making
hi

according to restful architecture or design. It will return the collection in the java script of JS (Controller)file of your web script. this you need to add it to the model

  
model.results=collection
and utilize the same in freemarker(View) file user variable"results", and you can make a response in JSON,HtmL, or XML.

Regards,
Maruti

positron
Champ in-the-making
Champ in-the-making
Cheers for that.  I am not aiming to utilise this functionality in a web-script.  Just keen to see results return via the web browser for the time being.

 

http://localhost:8080/alfresco/service/api/node/avm/test-site--admin/-1;www;avm_webapps;ROOT;testfol...
http://localhost:8080/alfresco/service/api/node/avm/test-site--admin/-1;www;avm_webapps;ROOT;testfol...

Is that the idea?  They both don't return a 'collection'.