On 2010-11-16 17.45, Tim Peierls wrote:
> What's wrong with proliferation of resources? Changing a password and
> exporting to a database sound like two very different things; wouldn't
> you *want* to expose them as different resources?

I agree, that's how I do it. A GET on /contacts/<id>/changePassword 
would return a form with the fields to fill in for the command, and a 
POST executes it. Same thing with exportToSap: a GET would return a form 
with the possible export options, and a POST performs it (or I would do 
it using GET actually, since it's a query).

This also makes authorization easier, if you want to differentiate who 
is allowed to perform different operations on the same contact.

/Rickard

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2682392

Reply via email to