Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-522

Specify Norsu endpoint without Java classes

    XMLWordPrintable

Details

    • Story
    • Resolution: Done
    • Neutral
    • 3.0.0
    • None
    • None
    • None
    • Yes
    • Yes
    • DevX 22
    • 1

    Description

      As a developer I want to define a Norsu endpoint without referring to any Java classes.

      Last time I checked, to define a Norsu delivery endpoint, the definition required 2 different Java classes. We cannot use Java classes in any SaaS configuration. 

      Also do not provide a default class, as we want developers to specify a specific endpoint implementation so that their projects wil continue to work even if we introduced a new version of the endpoint with non-backwards compatible aspects.

      Standard magnolia way would be to provide at `$type` mapping for the main class.

      But consider if want to pursue a different pattern, such as specifying a 'version' and in that case their could be a default class or implementation.

      See: https://jira.magnolia-cms.com/browse/MGNLREST-517

       

      Sample yaml config for norsu 

      $type: deliveryEndpoint_v2 

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                canh.nguyen Canh Nguyen
                czimmermann Christopher Zimmermann
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 1d 3.5h
                      1d 3.5h