-
Notifications
You must be signed in to change notification settings - Fork 0
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
Chore/mcq variants api #290
base: beta-1
Are you sure you want to change the base?
Conversation
sukanyamohanty143
commented
Oct 16, 2024
- Add new variants to the existing quiz.
- Add new quiz along with its variants.
- Add new variants to existing quiz, which already has multiple variants.
- Get quiz details along with its all variants if variants exist.
- Delete specific variant of a particular mcq/quiz.
- Delete quiz and all its variants.
- Delete multiple quiz and its variants.
- Edit many quizzes, edit quiz and its variant,edit multiple/specific variants of a quiz
…to chore/mcq-variants-api
{ | ||
"key": "fbh77", | ||
"text": "What is Python", | ||
"type": "unstyled", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we storing the values for type, depth, inline style ranges, entity ranges, and data?
@sukanyamohanty143 @Arunesh700
id: serial('id').primaryKey().notNull(), | ||
quizId: integer('quiz_id').references(() => zuvyModuleQuiz.id), // Foreign key to main quiz | ||
variantNumber: integer('variant_number').notNull(), // The variant number | ||
question: jsonb('question'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we storing the question in both tables if it is a variant? @Arunesh700
@@ -411,12 +425,23 @@ export class ContentController { | |||
} | |||
|
|||
@Post('/editquiz') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change it to use the PUT API.