Possible Duplicate:
Getting a count of returns seen by a RESTful request
I have a rest web service that retrieves a list of entites as json, ready to be paginated, something like this:
http://localhost:9001/events?page=1&len=3&order=name%20desc&filter=quilmes
[
{
id: 222,
field: "name",
prev: "",
operation: "insert",
date: "2012-01-01T10:32:10Z",
} [...]
]
In order to display the browse page I need to return the total number of entities
I was thinking about the followgin alternatives:
http://localhost:9001/events?filter=quilmes&op=count
http://localhost:9001/events/count?filter=quilmes
I think the second option is better because it shows I'm accesing a differente resource
Anyway, I wanted to know if there's some standard (I know there are not many standards in the REST world), established patter, recommended practice, or any advice you can give me for this particular case...