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

Create sub Norsu endpoint definition for the NodeTypeResolver

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 3.0.0
    • None
    • None
    • None

    Description

      NorsuEndpointDefinition introduces a new property to configure mapping node types with NodeTypeResolver implementation classes. To simplify the config, we need to introduce a sub definition for NodeTypeResolver so we can config nodeTypeMappings like below:

      $type: deliverEndpoint_v2
      workspace: ""
      rootPath: "/"
      depth: 10
      nodeTypeMappings:
        pages:
          nodeType: "mgnl:page"
          $type: pagesResolverV2
        tours:
          $type: customTourDataResolver
      includeSystemProperties: true
      systemProperties:
        - mgnl:type
        - mgnl:created
        - mgnl:template
      referenceDepth: 2
      references:
        - name: norsuCombo
          propertyName: norsuCombo
          referenceResolver:
            $type: norsuReferenceResolver
        - name: image
          propertyName: image
          referenceResolver:
            $type: assetReferenceResolver
            assetRenditions:
              - '480'
              - 1600x1200
        - name: destinations
          propertyName: destination
          referenceResolver:
            $type: jcrReferenceResolver
            targetWorkspace: category

      nodeType could be optional, pagesResolverV2 will have a default nodeType. But we can configure pagesResolverV2 with other compatible node types.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                canh.nguyen Canh Nguyen
                canh.nguyen Canh Nguyen
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                1 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 - 1.75d
                      1.75d