Changes

stoney core: REST API

3 bytes removed, 12:14, 28 May 2014
/* Filtering, sorting and searching */
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. The following example will sort users by last name lastname and first name firstname in lexicographic ascending order:
GET /v1/users?sort=lastname,firstname
The following will sort users by lastname in lexicographic descending and first name firstname in lexicographic ascending order:
GET /v1/users?sort=-lastname,firstname
SLB, editor, reviewer
3,368
edits