Plan an event with friends, group of strangers the API-way!
- [Organiser] Create an event (it should include a list of participants and date & time slots)
- [Participants] Select preferred time slots
- [All] Retrieve results. Voting ends when all participants have voted
Create event
POST /event
{
name: <string>
description: <string>
timeSlots: [<timestamp>,..],
duration: <number>,
participants: [<string>, <string>]
}
Select preferred slots
PUT /event/<id>
{
participant: <string>
selectedTimeSlots: [<timestamp>,..]
}
View list available time slots and results
GET /event/<id>
Response
{
name: <string>,
description: <string>,
timeSlots: [<timestamp>,..],
duration: <number>,
participants: [<string>, <string>],
selectedTimeSlots?: [<timestamp>,..],
voted?: [<string>, <string>]
}