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

Support include of optional isPrimary flag with children listing

    Details

      Description

      NOTE: As of now, we allow optional "include="association" which returns an "association" element (with assocType & isPrimary).

      /nodes/parentId/children?include=association

      Included within each minimal node response entry:

      "association": {
        "assocType":"my:assocType",
        "isPrimary":false
      }
      

      Notes

      • should we also consider supporting isPrimary in the where clause ?
      • in the future, we may need to also return childQName (and possibly, but unlikely, the nth sibling) ?

      Open Questions

      • in case of peer assoc, the association element only as an assocType. Gav has suggested that we could consider not having the "association" element, so that the assoc details are optionally returned as top-level elements of the node response (eg. include=isPrimary,assocType) ?

        Attachments

          Issue Links

            Structure

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel