courses get and post
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
// const answerSchema = {
|
||||
// "type": "object",
|
||||
// "properties": {
|
||||
// "user_id": {"type": "string"},
|
||||
// "question_id": {"type": "string"},
|
||||
// "is_correct": {"type": "boolean"}
|
||||
// },
|
||||
// "required": ["user_id", "question_id", "is_correct"]
|
||||
// };
|
||||
|
||||
module.exports = {
|
||||
answerSchema,
|
||||
userSchema,
|
||||
loginFollowUpSchema
|
||||
const courseSchema = {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"course_name": {"type": "string"},
|
||||
"num_tests": {"type": "number"},
|
||||
"num_questions_per_test": {"type": "number"},
|
||||
"answers": {"type": "array"}
|
||||
},
|
||||
"required": ["course_name", "num_tests", "num_questions_per_test", "answers"]
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
courseSchema
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user