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] 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 ]

Ralf Handl updated ODATA-38:
----------------------------

    Description: 
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

  was:
In recursive hierarchies (Employee -> Manager) it may be desirable to specify a depth for expansion:

GET ~/Managers?$expand=4*Employees

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 current salary, target salary and current performance for the expanded employees, and include the number of direct reports for the two levels directly below the manager:

GET ~/Managers?$expand=4*Employees&$select=*Employees/Salary,*Employees/TargetSalary,*Employees/Performance,*2Employees/NumberOfDirectReports


> 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]