-
Notifications
You must be signed in to change notification settings - Fork 3
Description
According to OData-Protocol, section 11.4.2.2, a deep create request can only create all entities given in the payload or fail altogeher:
On success, the service MUST create all entities and relate them. If the service responds with 201 Created, the response MUST be expanded to include at least the entities and properties that were specified in the deep-insert request.
I consider this an unnecessary restriction on the service. Just like the service is free to change certain structural properties when creating an entity (replace a given quantity with the maximum allowed quantity, say), it should be free to change certain navigation properties (reduce the number of delivery items if things can be delivered together, say).
The only entities that MUST always be created are
- the top-level entity
- related entities annotated with
Core.ContentID
in the payload.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status