Closed hoshion closed 8 months ago
We already have an endpoint for creating "Other" events: /v2/schedule/events/simple
. So I made a spreadsheet for all other points we need for backend to have. Note that all of them should have TelegramGuard
so that it is easy to access them from bot.
Now that we have got all the details straight, we have this list of needed endpoints:
POST /v2/schedule/events
, GET /v2/schedule/groups/{groupId}/events/
and PATCH/DELETE /v2/schedule/groups/{groupId}/events/{eventId}
endpoints accessible from Telegram bot, so that they accept Authorization
header with token.GET /v2/schedule/groups/{groupId}/month
endpoint. All specs for it are stated in a spreadsheet.GET /v2/schedule/groups/{groupId}/{week, fortnight, month}
.Also, we can probably remove POST /v2/schedule/events/simple
to have more ergonomic and minimalistic API.
We have such task in our semester's plan:
What does it mean?
We would like to have an ability for captain and moderator to create events of type "Other" in schedule through bot.
Functionality:
The task is to say what endpoints and tables in database should back-end have. It must be fully described with essential requests, responses, fields, queries, data types, etc.