Last active
August 29, 2015 14:04
-
-
Save slavafomin/ab30c6cf488c53495faf to your computer and use it in GitHub Desktop.
JSON server response example
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
{ | |
"success": true, | |
"data": [ | |
{ | |
"id": 1, | |
"title": "Foo" | |
}, | |
{ | |
"id": 2, | |
"title": "Bar" | |
} | |
], | |
"meta": { | |
"pagination": { | |
"count": 2, | |
"offset": 0, | |
"total": 17 | |
} | |
} | |
} |
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
{ | |
"success": true, | |
"data": { | |
"id": 1, | |
"title": "Foo" | |
} | |
} |
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
{ | |
"success": false, | |
"exception": { | |
"code": 404, | |
"message": "Item is not found." | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment