Highlighted

Content as a service || CAAS

anupamm96651300

23-07-2018

Is there a way to get a components content exposed to 3rd party app without using Content fragments or Experience Fragments. i.e I want my component contents json exposed.Is it possible.

Replies

Highlighted

Arun_Patidar

MVP

23-07-2018

Hi,

You can but you need to create a page or XF or CF for author to enter content for component.

then you can access like /content/<page-location>/jcr:content/<component placed location>.json

e.g. /content/mySite/en/jcr:content/ifooter/footer.infinity.json

Not sure if it is that what you looking for?

Thanks

Arun

Highlighted

anupamm96651300

23-07-2018

Hi Arun!

Thanks for quick update. Actually i want make use of a AEM Content as a service feature of AEM 6.3 to send my content to a non-AEM Platform.

Highlighted

kamrank10387456

27-11-2018

Hi anupamm96651300​,

It doesn't look like that's possible!  You cannot expose a Content Fragment (CF) via Content As A Service (CAAS) directly, you need to use a custom Content Fragment component as a proxy.  This is because CAAS uses the Sling Model Exporter functionality and a Sling Model can only be binded to a component with a "sling:resourceType" property.  Unfortunately Content Fragment Models in the DAM do not have that property and so a Page (normal or Experience Fragment page) is required so that you can add your custom Content Fragment component on it that then in turn links to your Content Fragment Model in the DAM.  Your Sling Model then binds to the custom Content Fragment component rather than the Content Fragment Model itself.

TBH, it's all a bit fake... Adobe are just making a big deal of Sling Model Exporter and marketing it as a CAAS / headless CMS feature.