3 ms·
Not necessarily, if you are using rails, you get update actions for free in your controller. So you could do: curl -X PUT -d "<params>" http://myapp.com/projec
by rmk 16y ago
Not necessarily, if you are using rails, you get update actions for free in your controller.
So you could do:
curl -X PUT -d "<params>" http://myapp.com/project/1234 http://myapp.com/project/1234
See section 11.6 (How to take snapshots of resources) in the book "RESTFul web services cookbook" for a discussion of this...
- stevepotter 16y agoI realize you get update actions. But what if you have different types of updates? Perhaps editing basic info like a project's Title. Or locking it? Or archiving? Are they lumped into the same action?
- rmk 16y agoNo, you can actually generate different names for the actions that are part of url using rails routing, and you can require that they all use the HTTP PUT method.