Changes

stoney core: REST API

95 bytes added, 09:03, 30 December 2013
/* Pagination */
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 count and 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>
Content-Type: Content-Type: application/json; charset=UTF-8Link: <https://api.example.com/v1/usersresellers?page=1&per_page=4030>; rel="first", <https://api.example.com/v1/usersresellers?page=2&per_page=4030>; rel="prev", <https://api.example.com/v1/usersresellers?page=4&per_page=4030>; rel="next", <https://api.example.com/v1/usersresellers?page=10&per_page=4030>; rel="last"X-Total-Count: 295
</pre>
SLB, editor, reviewer
3,368
edits