Last active
October 3, 2018 03:40
-
-
Save ilhamarrouf/355ef68edacd7f8cbb2dd9315645af73 to your computer and use it in GitHub Desktop.
RestAPI
This file contains hidden or 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
{ | |
"data": [ | |
{ | |
"id": 1, | |
"name": "Ilham Arrouf", | |
"username": "ilhamarrouf", | |
"email": "[email protected]" | |
}, | |
{ | |
"id": 2, | |
"name": "Abdul Jaelani", | |
"username": "abduljaelani", | |
"email": "[email protected]" | |
} | |
], | |
"meta": { | |
"current_page": 1, | |
"from": 1, | |
"last_page": 3, | |
"path": "https://example.com/api/users", | |
"per_page": "15", | |
"to": 15, | |
"total": 44 | |
} | |
} |
This file contains hidden or 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
{ | |
"message": "The given data was invalid", | |
"errors": { | |
"email": [ | |
"The email must be a valid email address." | |
], | |
"password": [ | |
"The password field is required" | |
] | |
} | |
} |
This file contains hidden or 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
{ | |
"data": { | |
"id": 2, | |
"name": "Abdul Jaelani", | |
"username": "abduljaelani", | |
"email": "[email protected]" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment