Skip to content

Migration path for PUT with nested objects #6249

Answered by soyuka
Tib-z asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Carobit,

Using PATCH there's no option to send nested/embedded collections.

Yes but only because we implemented the Merge-Patch format. There are other PATCH formats that one can implement to handle things differently. We're open to discussion to implement other standards, or one could build it in a library.

Using PUT I would have to send all properties, however not all of them are exposed so those properties would be lost.

If a property is not exposed on your API, why would API Platform remove it (eg: set to null)? We need to check this but I don't think that it's the case.

Using embedded resources on write is not great implementation-wise and induces lots of complexity. We sug…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by soyuka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants