Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-38

Recursive $expand and $select

    XMLWordPrintable

    Details

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

      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

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: