Created
July 17, 2015 12:05
-
-
Save wevtimoteo/414c8a240fc9c7946b26 to your computer and use it in GitHub Desktop.
API response example with pagination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_metadata": | |
{ | |
"page": 5, | |
"per_page": 20, | |
"page_count": 20, | |
"total_count": 521, | |
"Links": [ | |
{"self": "/products?page=5&per_page=20"}, | |
{"first": "/products?page=0&per_page=20"}, | |
{"previous": "/products?page=4&per_page=20"}, | |
{"next": "/products?page=6&per_page=20"}, | |
{"last": "/products?page=26&per_page=20"}, | |
] | |
}, | |
"products": [ | |
{ | |
"id": 200, | |
"name": "Awesome product" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment