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

Specify Norsu endpoint without Java classes

XMLWordPrintable

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

      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 

        Acceptance criteria

          1.
          Implement Sub-task Completed Canh Nguyen  
          2.
          Review Sub-task Completed Oanh Thai Hoang

          100%

          Original Estimate - Not Specified Original Estimate - Not Specified
          Time Spent - 1.5h
          3.
          piQA Sub-task Completed Oanh Thai Hoang  
          4.
          QA Sub-task Completed Phong Le Quoc  

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

                Created:
                Updated:
                Resolved:

                  Task DoD

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