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

Allow $expand and $select with modifying requests that return a single instance in combination with return=representation to specify the response shape

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_OS
    • Fix Version/s: V4.01_WD01
    • Component/s: Protocol, URL Conventions
    • Labels:
    • Environment:

      New Query Capabilities

    • Proposal:
      Hide

      Applies only to requests that return a single resource, and only to $select and $expand (and $format)
      1) if $expand/$select are present, implies return=representation
      2) if $expand/$select are present and return=minimal, service MUST include preference-applied if they DON'T return a result
      3) if it returns a result, $expand MUST be applied if specified and MUST include at least the $selected columns
      4) the service MUST NOT fail the request due to the $expand/$select; if the service cannot return a result with the appropriate $expand and $select it MUST return No Content

      Show
      Applies only to requests that return a single resource, and only to $select and $expand (and $format) 1) if $expand/$select are present, implies return=representation 2) if $expand/$select are present and return=minimal, service MUST include preference-applied if they DON'T return a result 3) if it returns a result, $expand MUST be applied if specified and MUST include at least the $selected columns 4) the service MUST NOT fail the request due to the $expand/$select; if the service cannot return a result with the appropriate $expand and $select it MUST return No Content

      Description

      This seems to be a natural extension for inserts and (partial) updates.
      Action calls already allow the same system query options as GET requests for the same return type.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: