Readme Updated

pull/3/head
Hasin Hayder 3 years ago
parent c74b3a0987
commit 7efe37f962

@ -234,8 +234,8 @@ You can include either `name` or `email`, or both in a URL Encoded Form Data or
```json ```json
{ {
"name":"Captain Cook", "name":"Captain Cook",
"email":"captaincook@hydra.project" "email":"captaincook@hydra.project"
} }
``` ```
@ -243,9 +243,9 @@ You will get a JSON response with user token. You need this user token for makin
```json ```json
{ {
"id": 3, "id": 3,
"name": "Captain Cook X", "name": "Captain Cook",
"email": "captaincook@hydra.project", "email": "captaincook@hydra.project",
} }
``` ```
@ -258,12 +258,21 @@ For any unsuccsesful attempt with invalid token, you will receive a 401 error re
} }
``` ```
If a bearer user token attempts to update any other user but itself, a 409 error response will be relivered
```json
{
"error": 1,
"message": "Not authorized"
}
```
For any unsuccsesful attempt with invalid `user id`, you will receive a 404 not found error response. For example when you are trying to delete a non existing user with id 16, you will receive the following response. For any unsuccsesful attempt with invalid `user id`, you will receive a 404 not found error response. For example when you are trying to delete a non existing user with id 16, you will receive the following response.
```json ```json
{ {
"error": 1, "error": 1,
"message": "No query results for model [App\\Models\\User] 16" "message": "No query results for model [App\\Models\\User] 16"
} }
``` ```

Loading…
Cancel
Save