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

Support PUT to replace a collection of entities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.01_CSD03
    • Fix Version/s: V4.01_CS02
    • Component/s: Protocol
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      Support PUT to a resource path that identifies a collection of entities with the same replace semantics as if the collection were a collection of primitive or complex types, or a collection of entities in a deep update.

      Show
      Support PUT to a resource path that identifies a collection of entities with the same replace semantics as if the collection were a collection of primitive or complex types, or a collection of entities in a deep update.
    • Resolution:
      Show
      https://www.oasis-open.org/committees/download.php/65433/odata-v4.01-wd06-part1-protocol-2019-06-07.docx  

      Description

      In 4.01 we added support for doing a deep update by doing a PUT against an entity with an inline set of objects; the semantics are that, at the end of the operation, the entity contains exactly the entities specified in the payload; any entities not specified are removed (and, for containment or if an integrity constraint exists, deleted).  This is the same semantics as doing a PUT with a nested collection of primitive or complex types.

      We do not, however, currently support the same semantics against the path that specifies the same collection.  That is, a PUT to customers(1) that contains nested orders replaces the orders for customer 1, but a PUT to customers(1)/orders is not currently specified if orders is a collection of entities (though it is if orders is a collection of complex types). 

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: