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

2.1: explicitly state which format the server will return in response to each given set of headers

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: JSON Format
    • Labels:
      None
    • Proposal:
      Hide

      If the client does not understand OData version 3.0:
      MaxDataServiceVersion: 2.0
      Accept: application/json
      The server will respond with Verbose JSON and only use format elements that were defined in OData version 2.0.
      If the client understands OData version 3.0 but only supports Verbose JSON:
      MaxDataServiceVersion: 3.0
      Accept: application/json;odata=verbose
      The server will respond with Verbose JSON and only use format elements that were defined in OData version 3.0.
      If the client fully supports OData version 3.0:
      MaxDataServiceVersion: 3.0
      Accept: application/json;odata=light;q=1,application/json;odata=verbose;q=0.5
      If the server supports the new JSON format, otherwise it will respond with Verbose JSON, or fail if it supports neither.
      Optionally, clients can add Atom to the Accept list as a further fallback in case the service supports neither JSON format.

      Show
      If the client does not understand OData version 3.0: MaxDataServiceVersion: 2.0 Accept: application/json The server will respond with Verbose JSON and only use format elements that were defined in OData version 2.0. If the client understands OData version 3.0 but only supports Verbose JSON: MaxDataServiceVersion: 3.0 Accept: application/json;odata=verbose The server will respond with Verbose JSON and only use format elements that were defined in OData version 3.0. If the client fully supports OData version 3.0: MaxDataServiceVersion: 3.0 Accept: application/json;odata=light;q=1,application/json;odata=verbose;q=0.5 If the server supports the new JSON format, otherwise it will respond with Verbose JSON, or fail if it supports neither. Optionally, clients can add Atom to the Accept list as a further fallback in case the service supports neither JSON format.
    • Resolution:
      Show
      https://www.oasis-open.org/committees/download.php/48030/odata-json-format-v1.0-wd01-2013-01-25.doc Accepted: https://www.oasis-open.org/committees/download.php/48097/odata-meeting-23_on-20130130_31-F2F-minutes.html#odata-91

      Attachments

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            mark.biamonte Mark Biamonte (Inactive)
          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: