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

NorsuDocs: Update definitions for SPA pages

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Neutral Neutral
    • None
    • None
    • None
    • None

      The norsu changes have caused changes to the definitions for SPA pages.

      However, the Pages app for JCR and Norsu differ only in an endpoint definition, see this thread in slack (PAGES delivery implementation):
      "Yes it uses the pages domain classes, and there is also a response adapter that converts the norsu format into the old (jcr) output. So the only change here should be in the endpoint defintion: from JcrDeliveryEndpointDefinition to NorsuDeliveryEndpointDefinition"

      Configuration notes in this thread:
      "FYI there is a pmam.yaml definition that points to a different react app (baseUrl: https://picton-mahoney-rfp.vercel.app). I will update it to baseUrl: to http://localhost:3001 (not sure if we should bother with it)
      I removed the trailing / from the baseUrl, hoping that we won’t get the double slashes in the PageEditor
      I also updated the rest endpoints to format the delivery response to the old (jcr) format"

      For the docu, class + mapping (this post):

      class: info.magnolia.rest.delivery.norsu.NorsuDeliveryEndpointDefinition
      nodeTypeMappings:
        'mgnl:page': info.magnolia.pages.rest.norsu.PageNodeTypeResolver
      

        Acceptance criteria

              abrooks Adrian Brooks
              abrooks Adrian Brooks
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Task DoR