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

In 4.01 decide if we can support invoking actions with no params with no body

    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:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      OData 4.01 services MUST support no content (as well as empty object), but as this was not called out until 4.01 clarify that interoperable clients should pass an empty json object in the body of the request.

      Show
      OData 4.01 services MUST support no content (as well as empty object), but as this was not called out until 4.01 clarify that interoperable clients should pass an empty json object in the body of the request.
    • Resolution:
      Show
      https://www.oasis-open.org/apps/org/workgroup/odata/download.php/59030/odata-json-format-v4.01-wd01.docx

      Description

      We currently say that parameters to an action are passed in the body of a json request as a json object where each parameter is a property of the object.

      I recently had someone ask how they should invoke an action request with no (non-binding) parameters. In particular, they were wondering if they should just pass no content (as opposed to content containing an empty json object).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikep Michael Pizzo
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: