← Prev in month ← Prev in thread

[OASIS Issue Tracker] (ODATA-839) A recursive hierarchy annotation may also contain a navigation property to the children nodes

From
OASIS Issues Tracker <>
Date
2015-09-07T07:59:49+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-839) A recursive hierarchy annotation may also contain a navigation property to the children nodes
Gerald Krause created ODATA-839:
-----------------------------------

             Summary: A recursive hierarchy annotation may also contain a navigation property to the children nodes
                 Key: ODATA-839
                 URL: https://issues.oasis-open.org/browse/ODATA-839
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: OData Extension for Data Aggregation
    Affects Versions: V4.0_CS01
         Environment: [Proposed]
            Reporter: Gerald Krause
             Fix For: V4.0_CSD03


Consider a client processing entities according to their hierarchical structure imposed by the given hierarchy annotation.

If the client wants to retrieve the descendants for the next three levels, this could be accomplished with a single request that makes use of a (cyclic) navigation property pointing to the children of a node. Assuming this navigation property has name childrenNodes, and the corresponding navigation property annotated as ParentNavigationProperty has name parentNode, the request would be:

 GET set(nodeId)?$expand=childrenNodes($levels=3;$select=parentNode/nodeId,nodeId) 

In order to let clients detect the availability of such navigations, the existing RecursiveHierarchy term needs to be Extended as proposed. 



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
← Prev in month ← Prev in thread