Hi,

Speaking about RESTful controllers, do you know if a standard/specification exists regarding filtering and sorting collections?

More precisely, if I want to retrieve only a subset of the resources (by a GET /resource/), I'll probably add a query parameter - for instance GET /resource/?category=active. When I google on this topic, I find many different proposals for doing this.
One of them 
(http://www.odata.org/developers/protocols/uri-conventions#UriComponents) 
suggests:
/Products?$filter=Price gt 20
Another one (http://wiki.opensocial.org/index.php?title=Developer's_Guide_REST) 
suggests:
/Products?filterBy=Price&filterOp=greaterThan&filterValue=20

Thanks for your feedback.
--
Guillaume ORIOL
Software engineer
Technema

Reply via email to