(2009-04-01) Fielding Post Ok
Roy Fielding says it's ok to use HttpPost for updates in Restful Web Services. HyperText can tell the client which method to use when the action being taken is unsafe. Though he still says it's better to use HttpPut when appropriate (e.g. when replacing an entire representation): but we don't need to use PUT for every state change in HTTP. The API can compensate for the use of POST by responding with the statement that the client should refresh its representation of the larger resource state. In other words, I would return a 303 response that redirected back to the VM status, so that the client would know that the state has changed.
Edited: | Tweet this! | Search Twitter for discussion
No backlinks!
No twinpages!