Skip to content

Instantly share code, notes, and snippets.

@jims3ne1
Created October 20, 2012 01:07
Show Gist options
  • Save jims3ne1/3921557 to your computer and use it in GitHub Desktop.
Save jims3ne1/3921557 to your computer and use it in GitHub Desktop.
Pagination in the body of the response
{
"response": [{
"id": 1,
"name": "The Girl With The Dragon Tattoo"
}, {
"id": 2,
"name": "The Girl Who Played With The Fire"
},{
"id": 1,
"name": "The Girl Who Kicked the Hornet's Nest"
}],
"count": 2,
"pagination": {
"previous": null,
"next": null,
"current": 1,
"per_page": 10,
"count": 2,
"pages": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment