Curl command to list nodes
Been to the curl example pages, but haven't found what I am looking for.
I want a curl command that will list all the nodes and child nodes under a specific node.
Anyone know of a curl command like this?
Thanks
Been to the curl example pages, but haven't found what I am looking for.
I want a curl command that will list all the nodes and child nodes under a specific node.
Anyone know of a curl command like this?
Thanks
Hi,
Tried below curl command to get all the child pages under '/content/wknd/ca/en' . Hopefully you may modify the same depending on your need .
curl -u admin:admin --location --request POST 'http://localhost:4502/bin/querybuilder.json?type=cq:Page&path=/content/wknd/ca/en&path.flat=true&p.limit=-1'
Query builder cheat sheet :- https://github.com/paulrohrbeck/aem-links/blob/master/querybuilder_cheatsheet.md
Thanks,
Somen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.