-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_WD01
-
Fix Version/s: V4.0_WD01
-
Component/s: URL Conventions
-
Labels:None
-
Environment:
[Proposed]
-
Proposal:
-
Resolution:
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