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

Make Template annotations endpoint configurable for more NodeTypes

XMLWordPrintable

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

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD