fictadvisor / fictadvisor-bot

Telegram bot for fictadvisor.com
11 stars 0 forks source link

Research on necessary endpoints for Creating events task #132

Closed hoshion closed 8 months ago

hoshion commented 8 months ago

We have such task in our semester's plan:

image

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.

ukrustacean commented 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.

ukrustacean commented 8 months ago

Now that we have got all the details straight, we have this list of needed endpoints:

Also, we can probably remove POST /v2/schedule/events/simple to have more ergonomic and minimalistic API.