Working get and post endpoitns

This commit is contained in:
Ben Ramey
2018-09-19 06:58:17 -05:00
parent 07e4a27a1a
commit 8eba063aef
4 changed files with 11 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
const courseSchema = {
"type": "object",
"properties": {
"course_name": {"type": "string"},
"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"]
"required": ["name", "num_tests", "num_questions_per_test", "answers"]
};
module.exports = {