just do it - REST-fully

2008-07-11 @ 20:03#

saw a great interaction on the rest-discuss list this week. this thread was addressing the need for some kind of BATCH-type operation. below is a snip of the question and one of the answers:

I'm dealing with the issue of defining a REST-oriented API. I need to define operations working on multiple resources at the same time. I'm aware that HTTP does not support this feature, nevertheless extensions or best practice exist.

Just define a resource that maps to all of the resources you intend to operate upon. Resources often overlap......Roy

yeah - that's the point, isn't it.

just define a resource that encompasses what you need to do. don't try to create new HTTP methods. don't try to overload an existing HTTP method. just use the existing pattern that already exists.

just do it.