-
Story
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
Rest module provides out of the box rest endpoints and the abilty to define custom endpoints.
But there is another technique that customers use which is to use a page template to output json (or maybe xml as well) instead of html.
Key advantage is that a template writer uses all the same skills and techniques to effectively create a rest endpoint. They just write the script to output the json format instead of html.
Im not sure what other configuration is necessary, but I know Tomas has employed this technique.
Also it is written about in this blog post:
https://www.magnolia-cms.com/blogs/jan-haderka/detail~@json--rest--magnolia-and-the-creation-of-end-points-without-writing-a-single-line-of-java~.html
There are other advantages - such as you dont need to setup additional security to get it to work.
And translation typically works out of the box.