Update Accounts responses
This commit is contained in:
parent
75dc3abaef
commit
3292cd740d
@ -43,14 +43,12 @@ A json object for the registered account with `id`, `username`, `email`, `timezo
|
|||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"data": {
|
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"username": "jean",
|
"username": "jean",
|
||||||
"email": "jean@example.com",
|
"email": "jean@example.com",
|
||||||
"timezone": "Europe/Brussels",
|
"timezone": "Europe/Brussels",
|
||||||
"earliest_time":"09:30 AM",
|
"earliest_time":"09:30 AM",
|
||||||
"latest_time":"10:00 PM"l
|
"latest_time":"10:00 PM"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -75,7 +73,6 @@ A json object for the registered account with `id`, `username`, `email`, `timezo
|
|||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"data": {
|
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"username": "jean",
|
"username": "jean",
|
||||||
"email": "jean@example.com",
|
"email": "jean@example.com",
|
||||||
@ -83,7 +80,6 @@ A json object for the registered account with `id`, `username`, `email`, `timezo
|
|||||||
"earliest_time":"09:30 AM",
|
"earliest_time":"09:30 AM",
|
||||||
"latest_time":"10:00 PM"l
|
"latest_time":"10:00 PM"l
|
||||||
}
|
}
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Update an account
|
#### Update an account
|
||||||
@ -108,7 +104,6 @@ A json object for the registered account with `id`, `username`, `email`, `timezo
|
|||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"data": {
|
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"username": "jean",
|
"username": "jean",
|
||||||
"email": "jean@example.com",
|
"email": "jean@example.com",
|
||||||
@ -116,7 +111,6 @@ A json object for the registered account with `id`, `username`, `email`, `timezo
|
|||||||
"earliest_time": "09:30 AM",
|
"earliest_time": "09:30 AM",
|
||||||
"latest_time": "10:00 PM"
|
"latest_time": "10:00 PM"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Delete an account
|
#### Delete an account
|
||||||
@ -135,15 +129,11 @@ A json object for the account to delete with `id`.
|
|||||||
|
|
||||||
##### Response `200`
|
##### Response `200`
|
||||||
|
|
||||||
A json object for the deleted account with `id`, `username` and `email`.
|
A json object for the deleted account with confirmation message.
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"data": {
|
"message": "Account with id 15 successfully deleted."
|
||||||
"id": 15,
|
|
||||||
"username": "jean",
|
|
||||||
"email": "jean@example.com"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -166,8 +156,7 @@ A json object with an `account_id`.
|
|||||||
A json object for the specified account with an array of `meeting`.
|
A json object for the specified account with an array of `meeting`.
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
[{
|
||||||
"data": [{
|
|
||||||
"id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
"id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
||||||
"title": "Worldwide strategy meeting for growth",
|
"title": "Worldwide strategy meeting for growth",
|
||||||
"description": "Let's find the best ethical growth hacking technics together. Yeah, fun.",
|
"description": "Let's find the best ethical growth hacking technics together. Yeah, fun.",
|
||||||
@ -183,7 +172,7 @@ A json object for the specified account with an array of `meeting`.
|
|||||||
"status": 0
|
"status": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### **Meetings** | `meeting`
|
### **Meetings** | `meeting`
|
||||||
|
Loading…
Reference in New Issue
Block a user