We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#[relates1] #[relates1] [Unit name]
[Full Description ]
[Full Description]
The text was updated successfully, but these errors were encountered:
Through this route, a new quiz will be added to the database with its questions and answers
INSERT INTO quizzes (teacher_id, title, descriptoin, mark, time) VALUES ($1, $2, $3, $4, $5); INSERT INTO questions (quiz_id, question, type, answers) VALUES ($1, $2, $3, $4);
{ title: string, description: string, mark: number, time: number, questions: [ { question: string, type: 'mcq' | 'short_answer' | 'true_false', answers: [{ answer: string, is_correct: boolean }, ...] }, ... ] }
and teacherId from token
teacherId
{ data: { quiz } message: 'Quiz Created Successfully' }
Success: 200
{ message: 'Quiz Created Successfully' }
Fail: 401
{ message: 'Unauthorized' }
Sorry, something went wrong.
No branches or pull requests
#[relates1] #[relates1]
[Unit name]
Acceptance Criteria
crit1
[Full Description ]
crit2
[Full Description]
The text was updated successfully, but these errors were encountered: