{"info":{"_postman_id":"1bf77960-99e1-4eb7-90ed-288e663a83bd","name":"QuizApp","description":"<html><head></head><body><p>Api for creation of question of different input types</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"12494986","collectionId":"1bf77960-99e1-4eb7-90ed-288e663a83bd","publishedId":"TVK771Cd","public":true,"customColor":{"highlight":"EF5B25","top-bar":"FFFFFF","right-sidebar":"000000"},"publishDate":"2020-09-15T00:01:59.000Z"},"item":[{"name":"https://apiquizbytes.herokuapp.com/create","id":"a4aa223b-9fe5-4599-83d9-058e089f750a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"moduleName\": \"QEats4\",\n\t\"moduleQuestions\": [{\n\t\t\"question\": \"what is nodejs?\",\n\t\t\"inputType\": \"radio\",\n\t\t\"explanation\": \"If this is working your mongo atlas will be updated\",\n\t\t\"options\": [{\n\t\t\t\t\"value\": \"1\",\n\t\t\t\t\"isCorrect\": true\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"value\": \"2\",\n\t\t\t\t\"isCorrect\": false\n\t\t\t},{\n\t\t\t\t\"value\": \"3\",\n\t\t\t\t\"isCorrect\": false\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"value\": \"4\",\n\t\t\t\t\"isCorrect\": false\n\t\t\t}\n\t\t]\n\t},{\n\t\t\"question\": \"What is react?\",\n\t\t\"inputType\": \"checkbox\",\n\t\t\"explanation\": \"If this is working your mongo atlas will be updated\",\n\t\t\"options\": [{\n\t\t\t\t\"value\": \"1\",\n\t\t\t\t\"isCorrect\": true\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"value\": \"2\",\n\t\t\t\t\"isCorrect\": true\n\t\t\t},{\n\t\t\t\t\"value\": \"3\",\n\t\t\t\t\"isCorrect\": true\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"value\": \"4\",\n\t\t\t\t\"isCorrect\": false\n\t\t\t}\n\t\t]\n\t},{\n\t\t\"question\": \"What is API?\",\n\t\t\"inputType\": \"text\",\n\t\t\"explanation\": \"If this is working your mongo atlas will be updated\",\n\t\t\"options\": [{\n\t\t\t\t\"isCorrect\": true\n\t\t\t}\n\t\t]\n\t},{\n\t\t\"question\": \"What is MongoDb?\",\n\t\t\"inputType\": \"text\",\n\t\t\"explanation\": \"If this is working your mongo atlas will be updated\",\n\t\t\"options\": [{\n\t\t\t\t\"isCorrect\": true\n\t\t\t}\n\t\t]\n\t}]\n}","options":{"raw":{"language":"json"}}},"url":"https://apiquizbytes.herokuapp.com/create","description":"<p>Create questions</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>moduleName: String\nmoduleQuestions: [\n    {\n        question: String,\n        inputType: String,\n        explanation: String,\n        options: [\n            {\n                value: String,\n                isCorrect: String\n            }\n        ]\n    }\n]\n\n</code></pre>","urlObject":{"protocol":"https","path":["create"],"host":["apiquizbytes","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4aa223b-9fe5-4599-83d9-058e089f750a"},{"name":"https://apiquizbytes.herokuapp.com/questions?moduleName=QEats4","id":"ee8f1cdb-9a7e-4201-994d-631c53811804","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://apiquizbytes.herokuapp.com/questions?moduleName=QEats4","description":"<p>get all the questions by module name</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>moduleName: String\n\n</code></pre>","urlObject":{"protocol":"https","path":["questions"],"host":["apiquizbytes","herokuapp","com"],"query":[{"key":"moduleName","value":"QEats4"}],"variable":[]}},"response":[],"_postman_id":"ee8f1cdb-9a7e-4201-994d-631c53811804"},{"name":"https://apiquizbytes.herokuapp.com/check","id":"fcb6ba66-ebff-4888-ab31-34c5c755316a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"moduleName\":\"QEats4\",\n    \"questionId\": \"5f5ffd1ea97f12ed9eed4660\",\n    \"selectedOptions\": [\"5f5ffd1ea97f12ed9eed4661\",\"5f5ffd1ea97f12ed9eed4662\",\"5f5ffd1ea97f12ed9eed4663\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://apiquizbytes.herokuapp.com/check","description":"<p>Checks whether the answer is correct or not </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>moduleName: String\nquestionId: String\nselectedOptions: [\n    String\n]\n</code></pre>","urlObject":{"protocol":"https","path":["check"],"host":["apiquizbytes","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fcb6ba66-ebff-4888-ab31-34c5c755316a"},{"name":"https://apiquizbytes.herokuapp.com/modules","id":"ce392c73-7116-48a4-adb4-90c2e6e38bb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://apiquizbytes.herokuapp.com/modules","description":"<p>Get all the modules </p>\n","urlObject":{"protocol":"https","path":["modules"],"host":["apiquizbytes","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce392c73-7116-48a4-adb4-90c2e6e38bb3"}]}