Ah, I hadn't heard of RFC6902. I'll give it a read.
I'm still of the opinion that it might be overkill to use only replace from that RFC when you can just PATCH the actual field to change.
Is there some bit of wisdom or experience that I'm missing?
I'm still of the opinion that it might be overkill to use only replace from that RFC when you can just PATCH the actual field to change.
Is there some bit of wisdom or experience that I'm missing?
It also makes it really easy to add a compound PATCH (updates to posts/1/title, posts/1/rels/author, posts/2/body, etc. all at the same time) in a single format. Once I bought into JSON Patch for the rest of this stuff, I figured I may as well use it for attributes :)
There's also some value in the patch format looking somewhat different to the main format, to avoid confusion.