What is the best approach to expose an API hosted on AEM as a REST API
Env. - AEM-Forms 6.5v, on-premise setup.
We want to use OutputService/ FormsService/ AssemblerService to generate a PDF using XML payload (coming from 3rd party system) and XDP template stored in AEM repository. So what is the best approach to expose this API as REST which will be hosted on AEM-Forms.
3rd party system will be calling AEM-Forms API with a xml payload to generate the PDF. Some of the searches suggested following [1], do let us know your opinions:
- A a path based Sling servlet with POST method
- an OSGi service