Add endpoint to get possible dates for a meeting
This commit is contained in:
parent
f6921c0e75
commit
0c29a59fe3
@ -274,7 +274,7 @@ A json object for the meeting to delete with `id`.
|
|||||||
|
|
||||||
##### Response `200`
|
##### Response `200`
|
||||||
|
|
||||||
A json object for the deleted meeting with `id` and `meeting_title`.
|
A json object for the deleted meeting with `message`.
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
@ -301,8 +301,8 @@ A json object with a `meeting_id`.
|
|||||||
A json object for the specified meeting with an array of `participant`.
|
A json object for the specified meeting with an array of `participant`.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
[
|
||||||
{
|
{
|
||||||
"data": [{
|
|
||||||
"id": 23,
|
"id": 23,
|
||||||
"account_id": 5,
|
"account_id": 5,
|
||||||
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
||||||
@ -327,9 +327,47 @@ A json object for the specified meeting with an array of `participant`.
|
|||||||
"timezone": "Europe/Brussels"
|
"timezone": "Europe/Brussels"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Get a list of all possible dates for a meeting
|
||||||
|
|
||||||
|
**`GET /api/meetings/:id/possible-dates`**
|
||||||
|
|
||||||
|
##### Request
|
||||||
|
|
||||||
|
A json object with a `meeting_id`.
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"id": "f86983db-955e-43b8-be3e-bc92bbeb9b43"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### Response `200`
|
||||||
|
|
||||||
|
A json object for the specified meeting with an array of `possible_date`.
|
||||||
|
|
||||||
|
```
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
||||||
|
"possible_date": "2020-02-18"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 13,
|
||||||
|
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
||||||
|
"possible_date": "2020-02-19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 14,
|
||||||
|
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
||||||
|
"possible_date": "2020-02-22"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
#### Get a list of complete availibility for a meeting
|
#### Get a list of complete availibility for a meeting
|
||||||
|
|
||||||
**`GET /api/meetings/:id/availibility`**
|
**`GET /api/meetings/:id/availibility`**
|
||||||
@ -346,11 +384,10 @@ A json object with a `meeting_id`.
|
|||||||
|
|
||||||
##### Response `200`
|
##### Response `200`
|
||||||
|
|
||||||
A json object for the specified meeting with an array of `participant`.
|
A json object for the specified meeting with `meeting_id` and an array of `availibility`.
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"data": {
|
|
||||||
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
||||||
"availibility": [{
|
"availibility": [{
|
||||||
"participant_id": 5,
|
"participant_id": 5,
|
||||||
@ -380,7 +417,7 @@ A json object for the specified meeting with an array of `participant`.
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### **Participants** | `participant`
|
### **Participants** | `participant`
|
||||||
@ -463,7 +500,6 @@ A json object for the participant with `account_id`, `meeting_id`, `earliest_tim
|
|||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"id": 23,
|
|
||||||
"account_id": 5,
|
"account_id": 5,
|
||||||
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
||||||
"earliest_time": "09:30",
|
"earliest_time": "09:30",
|
||||||
@ -492,13 +528,12 @@ A json object for the participant to delete with `token`.
|
|||||||
|
|
||||||
##### Response
|
##### Response
|
||||||
|
|
||||||
A json object for the deleted participant with `participant_username`, `participant_username` and `meeting_title`.
|
A json object for the deleted participant with `message`.
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"participant_username": "Sylvia",
|
{
|
||||||
"participant_email": "sylvia@email.com",
|
"message": "Meeting with id 1-f86983db-955e-43b8-be3e-bc92bbeb9b43 successfully deleted."
|
||||||
"meeting_title": "Worldwide strategy meeting for growth"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -561,12 +596,10 @@ A json object for the deleted possible date with `id`, `meeting_id` and `possibl
|
|||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"data": {
|
|
||||||
"id": 12,
|
"id": 12,
|
||||||
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
|
||||||
"possible_date": "2020-02-18"
|
"possible_date": "2020-02-18"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### **Availibility** | `availibility`
|
### **Availibility** | `availibility`
|
||||||
|
Loading…
Reference in New Issue
Block a user