CQ serving content to another application
I'm pretty new to AEM.
We have an existing web app which currently extracts content 'fragments' from Sitefinity using REST calls. Fragments might be snippets of HTML, raw text, images, and so on.
AEM has become our strategic CMS platform and we want to provide the same capability but use AEM to serve the content.
I have seen that one can send a HTTP request to a content node and it will return basic details about that node (I guess resource is a better term since its is essentially a RESTful GET request). I note that I can ask that the response is sent in html, json and text formats.
My question is, rather than information about the jcr node, what is the best way to return [say] the actual rendered fragment associated with that resource/node (not sure if I'm using appropriate terminology here) ?
What if I wanted to retrieve the same content but as JSON ?
kind regards
Fraser