Changes

stoney core: REST API

9 bytes added, 14:57, 14 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.
For example, get all active user elements <code>GET /v1/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.
For example, sort all users by their last and first name <code>GET /v1/users?sort=lastname,firstname</code>
For '''full text search''' the objects returned by a resource URI, the query parameter <code>q</code> is added with the value to search for.
For example, <code>GET /v1/users?q=Muell</code> will return users named <code>Mueller</code> as well as the ones living at <code>Muellhaldenstrasse</code>.
=== Pagination ===
SLB
385
edits