Expand my Community achievements bar.

SOLVED

REST Webservices in CQ

Avatar

Level 10

Can we create a REST Webservices in CQ OSGi bundles which can be consumed by external applications.

1 Accepted Solution

Avatar

Correct answer by
Level 10

When you create a Sling Servlet -- an external app can hit the URL and do GETs or POSTs for example. Here is a community article that talks about how to do that. As a use case - an external Java app POSTs files to an AEM sling servlet. 

http://helpx.adobe.com/experience-manager/using/post_files.html

However - you can develop the Sling Servlet to do what you want and return data or accept data to fit your business requirements. 

Likewise -- you can create an AEM OSGi bundle that can consume an external/'3rd party Restful web service. For details -- see this community article:

http://helpx.adobe.com/experience-manager/using/restful-services.html

Hope this helps

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

When you create a Sling Servlet -- an external app can hit the URL and do GETs or POSTs for example. Here is a community article that talks about how to do that. As a use case - an external Java app POSTs files to an AEM sling servlet. 

http://helpx.adobe.com/experience-manager/using/post_files.html

However - you can develop the Sling Servlet to do what you want and return data or accept data to fit your business requirements. 

Likewise -- you can create an AEM OSGi bundle that can consume an external/'3rd party Restful web service. For details -- see this community article:

http://helpx.adobe.com/experience-manager/using/restful-services.html

Hope this helps