Highlighted

Content as a service vs Sling Model Exporters vs others for exposing JSON from AEM

sandeepk7656774

20-10-2017

Hi All,

There can be many ways to expose content from AEM as JSON

  1. Manipulate/filter infinity.json to provide required JSON
  2. Write a custom servlet, which reads JCR and exposes required JSON
  3. Content as a service - new feature being provided in AEM 6.3. There doesn't seems to b much official (Develop/Administer/Author) documentation on this. Is there a role of Content Fragments and Experience Fragments (not sure of difference between 2 yet)
  4. Sling Model Exporters - Provided by Sling.
  5. Any other?

Has anyone evaluated different options? What is the difference between CaaS and Sling Model Exporters? If there are some reference links which help us understand and evaluate different options please share experiences.

Thanks

Sandeep

Replies

Highlighted

smacdonald2008

23-10-2017

There is quite a bit of information on Sling Models in that link.

If you want complete control over which nodes are exposed - you can write a custom service using JCR API and then convert the result set to JSON. This would be manual coding.

Highlighted

sandeepk7656774

24-10-2017

Seems like the Caas feature is overridden by Sling Model Exporter. Below is the quote from reference link

Adobe is probably trying to reuse feature provided by Sling instead of reinventing the wheel, also focusing on providing headless capabilities to cater to different channels/type of apps. I guess the future would be headless capabilities to support SPA etc.