courses get and post

This commit is contained in:
Ben Ramey
2018-09-19 06:16:25 -05:00
parent d08bc9cb56
commit 07e4a27a1a
4 changed files with 37 additions and 17 deletions

View File

@@ -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
};