Would be good to have examples for UPDATE and PUT as well as PATCH
bitfinity opened this issue · 2 comments
For those who don't want to use PATCH (or their front-end developers don't want to use it.)
[Capitalization is not intended as yelling...referring to the REST operations).
I know PUT method, but what do you refer to with UPDATE (there is no such HTTP method)?
I think there is nothing particularly different from POST implementation (just use put
method name instead of post
, and handle the received data (merge with existing record or create new if that is not exist). To be honest, I have never used PUT (haven't faced it's need).
I will gladly review and accept PRs showing the use of PUT and UPDATE (whatever that means)!
Oh - sorry - you're right there is no UPDATE method. I guess people use POST with partial, but I don't like the idea of overloading POST like that. Thanks - PUT seems pretty simple.