fictadvisor / fictadvisor-bot

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

Research on necessary endpoints for saving homework #133

Closed hoshion closed 10 months ago

hoshion commented 10 months ago

We have such task in our semester's plan:

image

What does it mean?

We don't have in database such field as "homework". Homework is a description (eventInfo) for exact event of lesson. We need to have an ability to save this event info from 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.

ke1wi commented 10 months ago

To implement the described functionality, we would need this endpoints.

Endpoint:

Save/edit/delete new info into event:

    {
      "eventInfo": "string"
    }
    {
      "status": "success",
      "message": "Event information saved successfully."
    }

Show list of events for exact lesson's event sequence: