Skip to main content
Level 2
Oct 16, 2015 2:26 AM UTC
Solved

How to develop a custom API for AEM application

Hello,

In our application, we ingest data from multiple sources and produce various custom RSS feeds to be consumed by in-house mobile apps. As an alternative approach and for "usefulness", we need to build an API which offers sufficient options that any of the feeds can be developed using it.

What is the best way of achieving this? Please suggest some steps and reference links? Will it involve building a wrapper around JCR API?

Regards,

Mayank

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

You can wrap the JCR API in an OSGi bundle and then call the operations exposed by the OSGi from JSPs located in your CQ site. We have many examples of how you would do this. See this article to get you started.

http://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html

Hope this helps

2 replies

Level 2
Oct 16, 2015 2:26 AM UTC

Thanks smacdonal2008. It helped.

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

You can wrap the JCR API in an OSGi bundle and then call the operations exposed by the OSGi from JSPs located in your CQ site. We have many examples of how you would do this. See this article to get you started.

http://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html

Hope this helps

Translate