Create page/site from a simple java project?
Hi Team,
My usecase is to create page/site in AEM in a simple java project. However I am unable to find a optimal way to do so.
Purpose: Creating testdata for my project as a part of Automation Testing.
Solutions tried:
1)Page Manager APIs to create pages, the issue faced in this is unable to get ResourceResolver instance.
java.lang.NullPointerException
at com.aem.create_page.createPage(create_page.java:53)
at com.aem.create_page.main(create_page.java:116)
Below is the code screenshot, where this error is occurring:

As per my understanding to get the resource resolver instance we need to create OSGi or Sling project, which I am trying to avoid since I am not sure how it will fit in our existing framework.
2) Tried to identify REST API for pages/sites, however couldn't find any similar to Assets in aem.
Any pointers on the above usecase would be helpful.
Thanks in advance.
Regards,
Vishakha