Add API Events endpoints
Add the API endpoint for Events.
- getAll
- getById
- getByTyp or getByStatus
In the Dasbboard it returns the information in two sperated variables accepted
(all accepted and maybe) and invites
(all events without response) – the wording not ideal.
'invites' => $this->eventGateway->getEventsByStatus($this->session->id(), [InvitationStatus::INVITED]),
'accepted' => $this->eventGateway->getEventsByStatus($this->session->id(), [InvitationStatus::ACCEPTED, InvitationStatus::MAYBE]),
Required data and current use
Each event
-
id
—number -
name
—string -
regionId
—number -
regionName
—string -
status
—enum - 1 accepted, 2 maybe, 3 declines, null no response? -
startDate
—timestamp -
endDate
—timestamp|null
If the backend has additional information, it would be cool to indicate them.
Edited by MS