OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (ODATA-1465) Clarification: Delete supported for Nullable single-valued navigation properties


Michael Pizzo created ODATA-1465:
------------------------------------

             Summary: Clarification: Delete supported for Nullable single-valued navigation properties
                 Key: ODATA-1465
                 URL: https://issues.oasis-open.org/browse/ODATA-1465
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: New Feature
          Components: Protocol
    Affects Versions: V4.01_OS
         Environment: [Proposed]
            Reporter: Michael Pizzo
             Fix For: V4.01_ERRATA01


The existing text [OData Version 4.0 Part 1: Protocol (oasis-open.org)|https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdocs.oasis-open.org%2Fodata%2Fodata%2Fv4.0%2Fos%2Fpart1-protocol%2Fodata-v4.0-os-part1-protocol.html%23_Toc372793721&data=04%7C01%7Cmikep%40microsoft.com%7Ce612c9c5595f41a75ebc08d95617c237%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637635482313014844%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=oe2tLG1qQ3hcJZSSOI5d%2BbwW5vjsJuUo7xJEX%2FdomWQ%3D&reserved=0]Âsays the following:

{color:#0b5690}11.4.5Â{color}[Delete an Entity|http://docs.oasis-open.org/odata/odata/v4.01/os/part1-protocol/odata-v4.01-os-part1-protocol.html#sec_DeleteanEntity]

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|http://docs.oasis-open.org/odata/odata/v4.01/os/part1-protocol/odata-v4.01-os-part1-protocol.html#sec_ReadURLsandEditURLs]Â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]|http://docs.oasis-open.org/odata/odata/v4.01/os/part1-protocol/odata-v4.01-os-part1-protocol.html#VocCapabilities].*

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.

Â



--
This message was sent by Atlassian Jira
(v8.3.3#803004)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]