Changes

stoney core: REST API

4 bytes removed, 12:09, 13 November 2013
/* Filtering, sorting and searching */
For '''filtering''' the objects returned by a resource URI, the name of an object's attribute is added as a query parameter with the required value.
Filter For example, get all active user elements <code>GET /users?status=active</code>
For '''sorting''' the objects returned by a resource URI, the query parameter <code>sort</code> is added with the object's sort attribute(s) as the value.
Sort For example, sort all users by their last and first name <code>GET /users?sort=lastname,firstname</code>
SLB
385
edits