Manipulating aggregate resources in a REST API?
Here's a tiny bit of a REST-ian quandary: I'm working through this API for
dbagg3. The major resources involved include subscriptions and entries. Quite often, while working on the UI, I find a need to manipulate ranges and collections of these resources-- things like: “mark these 12 entries as read” and “give me an aggregate of the new entries for these 6 subscriptions”.
So, I have been using URLs like the following:
Doing things this way is terribly convenient with regard to stuffing many things into one HTTP request. Problem is, with respect to REST, these URLs no longer refer to individual resources-- they're aggregate references.
I've been thinking about this apparent break with the REST philosophy, and was reminded of it after skimming through Mark Baker's notes on a talk today.
So... am I missing a more elegant RESTful way of doing this which doesn't result in a quadrillion HTTP requests?