REST services - exposing non-data "actions"

Posted by ctacke on Stack Overflow See other posts from Stack Overflow or by ctacke
Published on 2010-03-15T14:13:13Z Indexed on 2010/03/15 14:19 UTC
Read the original article Hit count: 156

Filed under:
|

I understand how to use REST for doing general entity interactions - using urls names to map to entities and the HTTP verbs to map to actions on those entities. But what is the generally accepted way of looking at "actions" more like RPC?

For example, let's say I want to send a command for the device to reset? There's no real "entity" here or do I do something like POST to http://mydevice/device/reset?

© Stack Overflow or respective owner

Related posts about rest

Related posts about web-services