Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-508

Make Template annotations endpoint configurable for more NodeTypes

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.2.21
    • 6.2.10
    • None
    • None

    Description

      In our Ecommerce Headless demo, we have a requirement to fetch custom NodeTypes with the TemplateAnnotationsEndpoint in addition to normal Page nodes. This is currently not possible, but would be very easy to implement. I have created and attached a working implementation for this. With this change, it is also possible to fetch campaigns from the Campaign manager or Mobile Pages.

      It would be great if we could include this change into the standard implementation and document it properly.

      Attached you find the Endpoint implementation:

      TemplateAnnotationEndpointFixed.java

      TemplateAnnotationEndpointDefinition.java

      And our decoration file to configure it:

      (light-modules/headless-ecommerce-config/decorations/spa-rendering/restEndpoints/templateAnnotations/templateAnnotationEndpoint.yaml)

      templateAnnotationEndpoint.yaml

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                dai.ha Dai Ha
                tobias.kerschbaum Tobias Kerschbaum
                DeveloperX
                Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD