Replies: 3 comments 2 replies
-
After further investigation, here is how it can be implemented using a custom denormalizer. Register the
|
Beta Was this translation helpful? Give feedback.
-
Symfony seems to provide the basic infrastructure in order to read/write to objects using attribute names. In particular, I will take a closer look on how the built-in denormalizers use them in order to transform the flattened input (Array in the screenshot below) into entity objects. |
Beta Was this translation helpful? Give feedback.
-
Hi! I may help a bit, just trying to get back into the hell of notifications :). What you did above is the correct way but I'm not sure that you'll be able to do this only with a normalizer. In API Platform when a Patch operation is found, we set the Symfony's To change the normalization process it really depends how deep you need to go. I'd start by trying to extend the Last thing, I advise to use the |
Beta Was this translation helpful? Give feedback.
-
I'd like to implement a subset of the
application/json-patch+json
format to partially update the lists/collections of some of my resources without modifying API Platform.I still want the non-custom
application/merge-patch+json
to work (not the same asapplication/json-patch+json
).Beta Was this translation helpful? Give feedback.
All reactions