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

DOC: New depthInReferencedNode property

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None
    • DevX 29
    • 3

    Description

      For info, see MGNLREST-361.

      Example config:

       

      references:
        - name: referenceToParentWithDefaultDepthInReferencedNode
          propertyName: tourFinder
          referenceResolver:
            class: info.magnolia.rest.reference.jcr.JcrReferenceResolverDefinition
            targetWorkspace: website
            depthInReferencedNode: 1  

       

       

      For another example config: can find in https://jira.magnolia-cms.com/browse/MGNLREST-608?focusedId=337617&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-337617

      or https://git.magnolia-cms.com/projects/MODULES/repos/rest/pull-requests/264/diff#magnolia-rest-integration-tests/magnolia-rest-test-webapp/src/main/webapp/modules/rest-content-delivery/restEndpoints/delivery/v2/referenceToParentWithDepthInReferencedNode_v1.yaml

       

       

      depthInReferencedNode default is -1 for backward compatible

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                mdrapela Martin Drápela
                mdrapela Martin Drápela
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Task DoR