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

Implement quizRouter in the back-end #41

Open
Tracked by #46
icepick4 opened this issue Jan 15, 2024 · 0 comments
Open
Tracked by #46

Implement quizRouter in the back-end #41

icepick4 opened this issue Jan 15, 2024 · 0 comments

Comments

@icepick4
Copy link
Owner

icepick4 commented Jan 15, 2024

  • Create quizRouter.ts
    • Send QuizResult
      • POST /api/quiz/result
    • Create a Quiz
      • /api/quiz POST
    • Delete a Quiz by ID
      • /api/quiz DELETE
    • Get a quiz by ID
      • It must return an object such as :
type Quiz = {
    name: string;
    description: string;
    theme: string;
    difficulty: number;
    user_id: number;
    questions: QuizQuestion[]
}

type QuizQuestion = {
    question_id: number;
    answers: QuizAnswer[];
}

type QuizAnswer = {
    answer: string;
    is_correct: boolean;
}
@icepick4 icepick4 changed the title quizRouter Implement quizRouter in the back-end Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant