Hi @akshaybhujbale ,
You ca iterate nodes. Get ResourceResolver as per your project setup. Get Session from ResourceResolver and iterate nodes. This is just pseudo code.
Session session=resourceResolver.adaptTo(Session.class);
Node node=session.getNode("Path to parent node");
NodeIterator nodeIterator= node.getNodes();
while (nodeIterator.hasNext()){
Node child=(Node)nodeIterator.next();
}
You can use resource api as well. Once get resource and adaptTo node.