Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (30 sloc) 1.17 KB


Links are used to allow you as an API consumer to move between requests.

Single entities use a self parameter with a link to that specific resource:

    "links": {
        "self": ""

Listing pages use current, first, last, next, previous:

    "links": {
        "current": "[limit]=100&page[offset]=0",
        "first": "[limit]=100&page[offset]=0",
        "last": "[limit]=100&page[offset]=600",
        "prev": null,
        "next": "[limit]=100&page[offset]=100"

Sometimes, there may not be enough entities for a project to fill multiple pages. In this situation, we will return some defaults, instead of expecting you as a consumer to check for these special cases.

current Always the current page
first Always the first page
last null if there is only one page
prev null if the user is on the first page
next null if there is only one page