[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-922) Support DELETE/PUT to $ref of a collection-valued nav prop to remove/replace all links
[ https://issues.oasis-open.org/browse/ODATA-922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Pizzo updated ODATA-922:
--------------------------------
Description:
Today you can "unlink" a resource from a single-valued nav prop using DELETE ~/EntitySet(key)/SingleNav/$ref.
With the new set operations, we could support deleting all references from a collection-valued nav prop using DELETE ~/EntitySet(key)/CollectionNav/$ref.
We should also consider supporting PUT ~/EntitySet(key)/CollectionNav/$ref with an array of keys to replace the links with those provided in the payload.
For containment, the specified links would have to already be in the collection; any links not in the collection would be removed (and, because it's containment, deleted).
was:
Today you can "unlink" a resource from a single-valued nav prop using DELETE ~/EntitySet(key)/SingleNav/$ref.
With the new set operations, we could support deleting all references from a collection-valued nav prop using DELETE ~/EntitySet(key)/CollectionNav/$ref.
We should also consider supporting PUT ~/EntitySet(key)/CollectionNav/$ref with an array of keys to replace the links with those provided in the payload.
> Support DELETE/PUT to $ref of a collection-valued nav prop to remove/replace all links
> --------------------------------------------------------------------------------------
>
> Key: ODATA-922
> URL: https://issues.oasis-open.org/browse/ODATA-922
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: Bug
> Components: OData Protocol, OData URL Conventions
> Affects Versions: V4.0_ERRATA03
> Reporter: Michael Pizzo
> Fix For: V4.01_WD01
>
>
> Today you can "unlink" a resource from a single-valued nav prop using DELETE ~/EntitySet(key)/SingleNav/$ref.
> With the new set operations, we could support deleting all references from a collection-valued nav prop using DELETE ~/EntitySet(key)/CollectionNav/$ref.
> We should also consider supporting PUT ~/EntitySet(key)/CollectionNav/$ref with an array of keys to replace the links with those provided in the payload.
> For containment, the specified links would have to already be in the collection; any links not in the collection would be removed (and, because it's containment, deleted).
--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]