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

Clarification: Delete supported for Nullable single-valued navigation properties

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: Protocol
    • Labels:
      None
    • Environment:

      Closed as applied 2023-10-18.

    • Proposal:
      Hide

      Update the highlighted text as follows:

      • Top-level Singleton entities can be deleted if they are nullable. Services supporting this MAY advertise it by annotating the singleton with the term Capabilities.DeleteRestrictions (nested property Deletable with value true) defined in [OData-VocCap].
      Show
      Update the highlighted text as follows: Top-level Singleton entities can be deleted if they are nullable. Services supporting this MAY advertise it by annotating the singleton with the term Capabilities.DeleteRestrictions (nested property Deletable with value true) defined in   [OData-VocCap] .
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/137

      Description

      The existing text OData Version 4.0 Part 1: Protocol (oasis-open.org) says the following:

      11.4.5 Delete an Entity

      To delete an individual entity, the client makes a DELETE request to a URL that identifies the entity. Services MAY restrict deletes only to requests addressing the edit URL of the entity.

      The request body SHOULD be empty. Singleton entities can be deleted if they are nullable. Services supporting this SHOULD advertise it by annotating the singleton with the term Capabilities.DeleteRestrictions (nested property Deletable with value true) defined in [OData-VocCap].

       

      >>The highlighted text applies to top-level <Singleton> entities, not to single-valued navigation properties. Calling DELETE on the edit URL of a nullable single-valued navigation property sets that property to null.  Subsequent GET requests would return 404.

       

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              mikep Michael Pizzo
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: