← Prev in month ← Prev in thread
Next in thread → Next in month →

[OASIS Issue Tracker] Updated: (ODATA-38) Recursive $expand and $select

From
OASIS Issues Tracker <>
Date
2012-11-09T22:40:36+00:00
ID
1442190375.8601352500824972.JavaMail.tomcat55@mw00
Thread
[OASIS Issue Tracker] Updated: (ODATA-38) Recursive $expand and $select
[ http://tools.oasis-open.org/issues/browse/ODATA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Pizzo updated ODATA-38:
-------------------------------

    Proposal: 
We define a new $levels query option, valid only within a $expand, to specify the number of recursive levels for the expand. i.e.;

GET ~/Managers?$expand=Employees($levels=4) 

-the value 'max' means expand all *to the maximum level supported by the service*. The max+1th level would have no inline content.
-a value greater than the service's max will return an error
-only allowed on a recursive navigations to the same type.

> Recursive $expand and $select
> -----------------------------
>
>                 Key: ODATA-38
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-38
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData Protocol v1.0, OData URL Conventions v1.0
>    Affects Versions: WD01
>            Reporter: Ralf Handl
>             Fix For: WD01
>
>
> In recursive hierarchies (Employee -> Manager) it may be desirable to specify a depth for expansion:
> GET ~/Managers?$expand=4Employees
> This is possible as neither digits nor the star are allowed initial characters for properties.
> $select needs to be extended to e.g. only select the name, the current salary, target salary and current performance for the expanded employees, and include the phone numbers for the two levels directly below the manager:
> GET ~/Managers?$expand=4Employees&$select=*Employees/Name,*Employees/Salary,*Employees/TargetSalary,*Employees/Performance,*2Employees/PhoneNumber

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
← Prev in month ← Prev in thread
Next in thread → Next in month →