Add endpoint to get possible dates for a meeting

This commit is contained in:
rui hildt 2020-05-05 11:24:16 +02:00
parent f6921c0e75
commit 0c29a59fe3

View File

@ -274,7 +274,7 @@ A json object for the meeting to delete with `id`.
##### 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`.
```
{
"data": [{
[
{
"id": 23,
"account_id": 5,
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
@ -326,10 +326,48 @@ A json object for the specified meeting with an array of `participant`.
"answered": 1,
"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 /api/meetings/:id/availibility`**
@ -346,11 +384,10 @@ A json object with a `meeting_id`.
##### 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",
"availibility": [{
"participant_id": 5,
@ -379,8 +416,8 @@ A json object for the specified meeting with an array of `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,
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
"earliest_time": "09:30",
@ -492,13 +528,12 @@ A json object for the participant to delete with `token`.
##### 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",
"meeting_title": "Worldwide strategy meeting for growth"
{
"message": "Meeting with id 1-f86983db-955e-43b8-be3e-bc92bbeb9b43 successfully deleted."
}
```
@ -561,11 +596,9 @@ A json object for the deleted possible date with `id`, `meeting_id` and `possibl
```
{
"data": {
"id": 12,
"meeting_id": "f86983db-955e-43b8-be3e-bc92bbeb9b43",
"possible_date": "2020-02-18"
}
}
```