Changes

stoney core: REST API

28 bytes added, 10:44, 11 December 2013
/* Pagination */
</pre>
If pagination is requested by the client and/or enforced by the server (e.g. if the number of available records is larger than the default countand no pagination requested), the service returns [http://tools.ietf.org/html/rfc5988#section-6.2.2 official registered link relation types] (<code>next</code>, <code>prev</code>, <code>first</code>, <code>last</code>) within the HTTP [http://tools.ietf.org/html/rfc5988#section-5 Link header field] for pagination use:
<pre>
Link: <https://api.example.com/v1/users?page=1&per_page=40>; rel="first",
Bureaucrat, administrator
425
edits