Skip to content

Instantly share code, notes, and snippets.

@syron
Created September 24, 2016 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syron/a7009128e44ca5f1f23eb89aa5395c38 to your computer and use it in GitHub Desktop.
Save syron/a7009128e44ca5f1f23eb89aa5395c38 to your computer and use it in GitHub Desktop.
API Response - multiple data object
{
"data": [
{
"_self": "http://myapiurl/data/3",
"id": 3,
"name": "Test3",
"description": "Hello MA"
},
{
"_self": "http://myapiurl/data/4",
"id": 4,
"name": "Test4",
"description": "Hello BA"
}
],
"metadata": {
"_link": "http://myapiurl/data?page=2&itemsPerPage=2",
"_prev": "http://myapiurl/data?page=1&itemsPerPage=2",
"_next": "http://myapiurl/data?page=3&itemsPerPage=2",
"currentPage": 2,
"itemsPerPage": 2,
"totalNumberOfItems": 20
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment