Next in thread → Next in month →

[OASIS Issue Tracker] (ODATA-613) Allow PATCH to entity sets using the delta-response format

From
OASIS Issues Tracker <>
Date
2016-03-17T16:57:59+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-613) Allow PATCH to entity sets using the delta-response format
[ https://issues.oasis-open.org/browse/ODATA-613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Pizzo updated ODATA-613:
--------------------------------

    Proposal: 
PATCH to a collection of entities can take a delta payload (interpreted as deltas if body represents a collection of entities) ODATA-613
a.	MUST NOT have $filter, $select, $orderby, etc. 

For PATCH, you don't specify a $expand so the extent of that graph is undefined.  Therefore, it is valid to have added/deleted links to anything (at least anything reachable from the target; service probably wouldn't bother validating).  So Clients SHOULD make sure added/deleted links are reachable from target, but services need not validate.

Response, if requested, should be a delta representation, in the same structure and order as the request payload, representing changes.


  was:
PATCH to a collection of entities can take a delta payload (interpreted as deltas if body represents a collection of entities) ODATA-613
a.	MUST NOT have $filter, $select, $orderby, etc. 

For PATCH, you don't specify a $expand so the extent of that graph is undefined.  Therefore, it is presumably valid to have added/deleted links to anything reachable from the target.

What should the response be (if requested)?
=>should be a delta representation of at least the updated content. May include more than was specified in the request. 



> Allow PATCH to entity sets using the delta-response format
> ----------------------------------------------------------
>
>                 Key: ODATA-613
>                 URL: https://issues.oasis-open.org/browse/ODATA-613
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData JSON Format, OData Protocol
>    Affects Versions: V4.0_OS
>         Environment: Set Operations, [Proposed]
>            Reporter: Ralf Handl
>            Assignee: Ralf Handl
>              Labels: Usability
>             Fix For: V4.01_WD01
>
>
> This will allow easy synchronization between services with same model
> Previous proposal (for sanity check):
> Document changes:
> part1-protocol
> Add section: 11.4.10 Update an Entity Set
> To update a collection, the client sends a PATCH request to that collection's URL. The PATCH body MUST contain a valid delta response consisting of appropriate representations for 
> If the target URL for the collection is a navigation link, any added entity is automatically linked to the entity containing the navigation link, and any deleted entity is automatically unlinked.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
Next in thread → Next in month →