OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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


    [ http://tools.oasis-open.org/issues/browse/ODATA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31655#action_31655 ] 

Michael Pizzo commented on ODATA-38:
------------------------------------

Given that we are allowing options (like $filter) in the expand clause, an easy and intuitive way to do this would be to define a $levels operator that can be placed within the filter; i.e.,

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

> 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

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]