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

Allow no metadata for non-OData clients

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_ERRATA02
    • Fix Version/s: V4.01_WD01
    • Component/s: JSON Format
    • Labels:
    • Environment:

      Simplified Payload;[Proposed]

    • Proposal:
      Hide

      If a client sends an Accept header requesting JSON with a specific odata.metadata level, the service responds with that level.

      If a client sends a request with OData-Version or OData-MaxVersion and does not specify an odata.metadata level, the service responds with odata.metadata=minimal.

      If a client sends a request and does not specify OData-Version or OData-MaxVersion and does not specify an odata.metadata level, the service may respond with any format matching the Accept header, e.g. for application/json any JSON dialect, including OData JSON of the odata.metadata level preferred by that service.

      Show
      If a client sends an Accept header requesting JSON with a specific odata.metadata level, the service responds with that level. If a client sends a request with OData-Version or OData-MaxVersion and does not specify an odata.metadata level, the service responds with odata.metadata=minimal. If a client sends a request and does not specify OData-Version or OData-MaxVersion and does not specify an odata.metadata level, the service may respond with any format matching the Accept header, e.g. for application/json any JSON dialect, including OData JSON of the odata.metadata level preferred by that service.
    • Resolution:
      Show
      https://www.oasis-open.org/apps/org/workgroup/odata/download.php/59030/odata-json-format-v4.01-wd01.docx

      Description

      We want simple rest services to support OData for interoperability without taxing them for non-interoperability requirements.

      The easiest way to do this is to allow no-metadata for non-odata clients.

      We can determine if the client is odata by:
      -Odata.maxversion header
      -Odata.version header
      -Odata media type parameters

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo (Inactive)
              Reporter:
              mikep Michael Pizzo (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: