Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-267

List Folder Children - optionally filter by nodeType (optionally also including sub-types)

    Details

      Description

      As a developer using the REST API I want to filter the results of a /nodes/{nodeId}/children (RA-634) request to just include nodes of a specific type or subtype thereof so that I can build a client with filtering capabilities.

      Acceptance Criteria

      • The URL /nodes/{nodeId}/children?where=(nodeType='prefix:localname') returns only nodes of type "prefix:localname"
      • The URL /nodes/{nodeId}/children?where=(nodeType='prefix:localname INCLUDESUBTYPES') returns nodes of type "prefix:localname" and it's sub-types
      • The /nodes/{nodeId}/children URL returns a 400 response if the prefix:localname is not a known node type
      • The /nodes/{nodeId}/children URL returns a 400 response if the string following the type name is anything other than " INCLUDESUBTYPES" (case-insensitive) - ie. it is not a known node type, eg. ... where=(nodeType='my:special inValid')
      • All acceptance criteria of RA-634 are satisfied

      Example Request(s)

      /nodes/{parentId}/children?where=(nodeType='my:specialtype') 
      /nodes/{parentId}/children?where=(nodeType='my:specialtype INCLUDESUBTYPES') 
      

      See RA-634 for an example response

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jvonka Jan Vonka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: