Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research on poll through Telegram Bot #137

Open
hoshion opened this issue Jan 16, 2024 · 1 comment
Open

Research on poll through Telegram Bot #137

hoshion opened this issue Jan 16, 2024 · 1 comment
Assignees
Labels

Comments

@hoshion
Copy link
Contributor

hoshion commented Jan 16, 2024

We need to create an ability to take surveys in DM messages as in browser version of FICT Advisor.

The functionality of polls:

  • Show the list of discipline teachers to start poll (as in survey page)
  • Start a survey
  • Implement all variants of answers (1-10, yes/no, text)
  • Send an answer

The task is to research back-end application of FA with the purpose to find endpoints or tables in database that is necessary for proper work of poll in telegram but missing. You need to describe:

  • in endpoints:
    • path of endpoint
    • http method (get, post, etc.)
    • params in endpoint path
    • query parameters (params after ? in request path)
    • request body (if necessary)
    • response body (if necessary)
  • in tables of database:
    • fields
    • types
    • relations
    • uniqueness
    • default values

Be very accurate and responsible for what you write. Check twice all that you found and described to find mistakes and fix it in time

@sokolovgit
Copy link

To implement the described functionality, we would need endpoints:

Endpoint 1:
/v2/poll/teachers/{userId}
Add Telegram Guard

Endpoint 2:
/v2/disciplineTeachers/{disciplineTeacherId}/questions
Add Telegram Guard

Endpoint 3:
/v2/disciplineTeachers/{disciplineTeacherId}/answers
Need same endpoint with userId in body

{
  "userId" : "string", 
  "answers": [
    {
      "questionId": "string",
      "value": "string"    
    }
  ]
}

@iamthegoose iamthegoose self-assigned this Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants