News for hackers. Stuff that matters.
Re:REST Anti-patterns by einrealist on Tuesday September 13, 2016 @04:08AM (#12486358)
A PUT means that the server accepts the payload as is. Yes, it can be restricted as is. But the request must be free of side effects. The server should not even validate the payload. And that also means that your request should not trigger stuff that cannot be triggered again. If your model _only_ relies on that flag, than the PUT is fine. But when I close a bank account, usually I trigger stuff on the server side (including validation). So a POST should be required.

There are no comments on this comment yet.