Add status code to responses

This commit is contained in:
rui hildt 2020-03-23 18:02:50 +01:00
parent d0a8c17089
commit 8f6dab9cae

View File

@ -36,12 +36,15 @@ A json object for the registered user with `id`, `username`, `email`, `timezone`
``` ```
{ {
"id": 1, "status": 201,
"username": "jean", "data": {
"email": "jean@example.com", "id": 1,
"timezone": "Europe/Brussels", "username": "jean",
"earliest_time":"09:30 AM", "email": "jean@example.com",
"latest_time":"10:00 PM" "timezone": "Europe/Brussels",
"earliest_time":"09:30 AM",
"latest_time":"10:00 PM"l
}
} }
``` ```
@ -64,12 +67,15 @@ A json object for the registered user with `id`, `username`, `email`, `timezone`
``` ```
{ {
"id": 1, "status": 200,
"username": "jean", "data": {
"email": "jean@example.com", "id": 1,
"timezone": "Europe/Brussels", "username": "jean",
"earliest_time":"09:30 AM", "email": "jean@example.com",
"latest_time":"10:00 PM" "timezone": "Europe/Brussels",
"earliest_time":"09:30 AM",
"latest_time":"10:00 PM"
}
} }
``` ```
@ -90,8 +96,12 @@ A json object for the deleted user with `username` and `email`.
``` ```
{ {
"username": "jean", "status": 200,
"email": "jean@example.com" "data": {
"id": 15,
"username": "jean",
"email": "jean@example.com"
}
} }
``` ```
@ -113,11 +123,14 @@ A json object for the registered user with `id`, `username`, `email`, `timezone`
``` ```
{ {
"id": 1, "status": 201,
"username": "jean", "data": {
"email": "jean@example.com", "id": 1,
"timezone": "Europe/Brussels", "username": "jean",
"earliest_time":"09:30 AM", "email": "jean@example.com",
"latest_time":"10:00 PM" "timezone": "Europe/Brussels",
"earliest_time":"09:30 AM",
"latest_time":"10:00 PM"l
}
} }
``` ```