Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-678

Document how to create a json-provider using magnolia templating

    XMLWordPrintable

Details

    • Story
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              cmeier Christoph Meier
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: