4 ms·
I thought POST was supposed to be the modify/edit verb of REST. Why add another one that browser makers won't implement?
by pkghost 17y ago
I thought POST was supposed to be the modify/edit verb of REST.
Why add another one that browser makers won't implement?
- alexandros 17y agoPOST is the wildcard verb when you can't use anything else. PATCHing seemed to be a common enough use case to warrant standardising. PATCH, combined with ETags, offers idempotentcy meaning that if you are unsure of success you can simply repeat the operation. This can really come in handy in a distributed system working over a network. (PUT and DELETE have this property, POST does not) Also, when intermediaries can understand what you're doing, they can handle caching much better, invalidating what they must, etc. Again, POST does not give you that luxury.
- derefr 17y agoI think the problem is that, now, POST means something more like "send the resource a message, as if it were an OOP-style object." Anything can happen when you POST. PATCH is just, well, a patch—;)—to get back to the original semantics of POST, since with people using POST the way they currently do, those semantics (for things like caching) are unreliable.
- deleted 17y ago[deleted]