{"info":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"20633788","collectionId":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","publishedId":"2s93JwMgmb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-14T23:52:44.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"4e3264fa-b412-47ef-911d-9ae311dd7393","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"moocssuperadmin@oscsa.com\",\r\n    \"password\": \"testpassword\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/login","description":"<p>Returns access token, will be required for post login controls</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"525eec69-6d4f-495a-8b46-9a6ce94234c4","name":"Error: Missing parameter in request body","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"molunorichie@gmail.com\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-B1H8/2AIKbiOGWcs0V5A5vxtfaQ\""},{"key":"Date","value":"Sat, 22 Oct 2022 19:17:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Please Provide Email and Password\"\n}"},{"id":"fc8e432e-0833-4639-9526-e44df53c16fa","name":"Error: Wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"molunorichie@gmail.com\",\r\n    \"password\": \"testpasfsword\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-eGsipgpXcWHlr5SopwzT7KlTq5M\""},{"key":"Date","value":"Sat, 22 Oct 2022 19:18:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Incorrect Email or Password\"\n}"},{"id":"000b4cb3-b04b-47f2-a28a-db9142fc5ec2","name":"Error - Server error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"molunorichie@gmail.com\",\r\n    \"password\": \"thisisthenewpassword\",\r\n    \"role\": \"EndUser\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/login"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Methods","value":"GET, OPTIONS, POST"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"30"},{"key":"ETag","value":"W/\"1e-vp9T52Eog83k6kdiVPvdQt5yUBU\""},{"key":"Date","value":"Wed, 31 Aug 2022 05:31:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"An error occured\"\n}"},{"id":"55b83357-94f4-4341-a5c1-96fb0df9c744","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"moocsenduser5@oscsa.com\",\r\n    \"password\": \"testpassword\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1015"},{"key":"ETag","value":"W/\"3f7-r0kZsP3UmywCRepr1MjedBqr6mU\""},{"key":"Set-Cookie","value":"connect.sid=s%3A9BEper48xCjU0a0eFjM506Ww7HqKX_hT.Ku9Fz9%2BWxVseArFjcOf2M76pVVej%2B2RMzeJ2sQT8G9c; Path=/; HttpOnly"},{"key":"Date","value":"Sat, 28 Jan 2023 03:00:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"user\": {\n            \"_id\": \"63d48c4b2fcc97bc5a6342f3\",\n            \"firstname\": \"testfirstname\",\n            \"lastname\": \"testlastname\",\n            \"email\": \"moocsenduser5@oscsa.com\",\n            \"role\": \"EndUser\",\n            \"__v\": 0\n        },\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzZDQ4YzRiMmZjYzk3YmM1YTYzNDJmMyIsImVtYWlsIjoibW9vY3NlbmR1c2VyNUBvc2NzYS5jb20iLCJyb2xlIjoiRW5kVXNlciIsInN0YXR1cyI6eyJfaWQiOiI2M2Q0OGM0YzJmY2M5N2JjNWE2MzQyZjgiLCJ1c2VyIjoiNjNkNDhjNGIyZmNjOTdiYzVhNjM0MmYzIiwiaXNBY3RpdmUiOnRydWUsImlzVmVyaWZpZWQiOnRydWUsIl9fdiI6MH0sImlhdCI6MTY3NDg3NDgzMCwiZXhwIjoxNjc0ODk2NDMwfQ.z3pu3VkUQEYMaRgQoMUIBViATQmIiIX7IjEL6jZi9ss\",\n        \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzZDQ4YzRiMmZjYzk3YmM1YTYzNDJmMyIsImVtYWlsIjoibW9vY3NlbmR1c2VyNUBvc2NzYS5jb20iLCJyb2xlIjoiRW5kVXNlciIsInN0YXR1cyI6eyJfaWQiOiI2M2Q0OGM0YzJmY2M5N2JjNWE2MzQyZjgiLCJ1c2VyIjoiNjNkNDhjNGIyZmNjOTdiYzVhNjM0MmYzIiwiaXNBY3RpdmUiOnRydWUsImlzVmVyaWZpZWQiOnRydWUsIl9fdiI6MH0sImlhdCI6MTY3NDg3NDgzMCwiZXhwIjoxNjc0OTYxMjMwfQ.fZcRjRa1aitvboKIPc2sM8u_HWeOo44wX9pJ7Q15REk\"\n    }\n}"}],"_postman_id":"4e3264fa-b412-47ef-911d-9ae311dd7393"},{"name":"Signin with Google","id":"e3d1ad54-c83d-4e80-b7b5-bc1d040e2035","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/googlesignin","description":"<p>Returns access token, will be required for post login controls</p>\n","urlObject":{"path":["auth","googlesignin"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"cad3986b-7292-4806-ada2-917c38c1f580","name":"Error - Server error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"molunorichie@gmail.com\",\r\n    \"password\": \"thisisthenewpassword\",\r\n    \"role\": \"EndUser\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/login"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Methods","value":"GET, OPTIONS, POST"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"30"},{"key":"ETag","value":"W/\"1e-vp9T52Eog83k6kdiVPvdQt5yUBU\""},{"key":"Date","value":"Wed, 31 Aug 2022 05:31:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"An error occured\"\n}"},{"id":"ccb77cde-c65e-42b5-ba79-0dd906cb410b","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"mainuserforboayant@gmail.com\",\r\n    \"password\": \"thisisthenewpassword\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/googlesignin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"921"},{"key":"ETag","value":"W/\"399-jgBJqEsdTBZnDMWsiMmSKUmWrnQ\""},{"key":"Date","value":"Wed, 14 Sep 2022 16:55:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"user\": {\n            \"_id\": \"63d4889852d1f1ff958237a4\",\n            \"firstname\": \"testfirstname\",\n            \"lastname\": \"testlastname\",\n            \"email\": \"moocssuperadmin@oscsa.com\",\n            \"role\": \"SuperAdmin\",\n            \"__v\": 0\n        },\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzZDQ4ODk4NTJkMWYxZmY5NTgyMzdhNCIsImVtYWlsIjoibW9vY3NzdXBlcmFkbWluQG9zY3NhLmNvbSIsInJvbGUiOiJTdXBlckFkbWluIiwic3RhdHVzIjp7Il9pZCI6IjYzZDQ4ODk5NTJkMWYxZmY5NTgyMzdhOSIsInVzZXIiOiI2M2Q0ODg5ODUyZDFmMWZmOTU4MjM3YTQiLCJpc0FjdGl2ZSI6dHJ1ZSwiaXNWZXJpZmllZCI6dHJ1ZSwiX192IjowfSwiaWF0IjoxNjc4NzA2MDk5LCJleHAiOjE2Nzg3Mjc2OTl9.3iTsG2QJG7jf8izijxUpouUxNnPL7JAusz8-rxjx_gE\",\n        \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzZDQ4ODk4NTJkMWYxZmY5NTgyMzdhNCIsImVtYWlsIjoibW9vY3NzdXBlcmFkbWluQG9zY3NhLmNvbSIsInJvbGUiOiJTdXBlckFkbWluIiwic3RhdHVzIjp7Il9pZCI6IjYzZDQ4ODk5NTJkMWYxZmY5NTgyMzdhOSIsInVzZXIiOiI2M2Q0ODg5ODUyZDFmMWZmOTU4MjM3YTQiLCJpc0FjdGl2ZSI6dHJ1ZSwiaXNWZXJpZmllZCI6dHJ1ZSwiX192IjowfSwiaWF0IjoxNjc4NzA2MDk5LCJleHAiOjE2Nzg3OTI0OTl9.jSF_IOHhraSp1sksZ81YWrNSZl8U4DZGnbFWlpdxcZU\"\n    }\n}"}],"_postman_id":"e3d1ad54-c83d-4e80-b7b5-bc1d040e2035"},{"name":"Sign up","id":"47544ab0-37bc-4b27-96a4-33fd4f69ddcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"testfirstname\",\r\n    \"lastname\": \"testlastname\",\r\n    \"email\": \"moluno.ri.c.h.i.e@gmail.com\",\r\n    \"phonenumber\": \"132434432324\",\r\n    \"password\": \"testpassword\",\r\n    \"passwordConfirm\": \"testpassword\",\r\n    \"preferred_language\": \"en\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/signup?lang=en","description":"<p>'role' attribute varies for each user type -&gt; Admin and EndUser</p>\n<p>The preferred language can either be 'en' for english or 'ar' for arabic</p>\n<p>To se the preferred language for the verification email set the <code>lang</code> property in the request query to either <code>en</code> or <code>ar</code></p>\n","urlObject":{"path":["auth","signup"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[{"key":"lang","value":"en"}],"variable":[]}},"response":[{"id":"6785e4ed-2abe-40f6-9907-940b2bcf5436","name":"Duplicate email signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"testfirstname\",\r\n    \"lastname\": \"testlastname\",\r\n    \"email\": \"testemail@gmail.com\",\r\n    \"phonenumber\": \"132434432324\",\r\n    \"password\": \"testpassword\",\r\n    \"passwordConfirm\": \"testpassword\",\r\n    \"role\": \"EndUser\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"74"},{"key":"ETag","value":"W/\"4a-6dibmCVmR3MAnI3dHlZGbYpnwIQ\""},{"key":"Date","value":"Fri, 21 Oct 2022 11:50:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"testemail@gmail.com already exists please user another email\"\n}"},{"id":"75fc11ef-21db-479b-a664-851d6f82eb10","name":"Missing parameter in request body","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"testfirstname\",\r\n    \"lastname\": \"testlastname\",\r\n    \"phonenumber\": \"132434432324\",\r\n    \"password\": \"testpassword\",\r\n    \"passwordConfirm\": \"testpassword\",\r\n    \"role\": \"EndUser\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-tsllkCjOfZjqGRDD05DWkr9e9rI\""},{"key":"Date","value":"Fri, 21 Oct 2022 11:55:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Path `email` is required., Try again\"\n}"},{"id":"9e157a7b-8ac1-4443-b8e3-860aec15148f","name":"Invalid email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"testfirstname\",\r\n    \"lastname\": \"testlastname\",\r\n    \"email\": \"testemail@gmailcom\",\r\n    \"phonenumber\": \"132434432324\",\r\n    \"password\": \"testpassword\",\r\n    \"passwordConfirm\": \"testpassword\",\r\n    \"role\": \"EndUser\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-qoUYJ8QnKqmP9s+uGrb6qCdkDgY\""},{"key":"Date","value":"Fri, 21 Oct 2022 12:26:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Please Provide a valid Email, Try again\"\n}"},{"id":"f2d567ef-f922-457f-8876-4801c42a6214","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"testfirstname\",\r\n    \"lastname\": \"testlastname\",\r\n    \"email\": \"moluno.ric.hie@gmail.com\",\r\n    \"phonenumber\": \"132434432324\",\r\n    \"password\": \"testpassword\",\r\n    \"passwordConfirm\": \"testpassword\",\r\n    \"role\": \"Admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"156"},{"key":"ETag","value":"W/\"9c-VuWmXj7fgycdKbSjq6HZrcDXoAI\""},{"key":"Set-Cookie","value":"connect.sid=s%3AUzSo0i5o5p8YvohGdBbUlMJyN9Nx7jzv.1RIZFQhBJjpQ2lpth1p215V8dqcZV6Q3gxflzwFygBc; Path=/; HttpOnly"},{"key":"Date","value":"Sat, 21 Jan 2023 13:21:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"user\": {\n            \"_id\": \"63cbdc4f0f7b391d0155c5ac\",\n            \"firstname\": \"testfirstname\",\n            \"lastname\": \"testlastname\",\n            \"email\": \"moluno.ric.hie@gmail.com\"\n        }\n    }\n}"}],"_postman_id":"47544ab0-37bc-4b27-96a4-33fd4f69ddcb"},{"name":"Verify email","event":[{"listen":"prerequest","script":{"id":"07a6573b-1fcb-425a-b0d6-2ad1a1a10d67","exec":["pm.collectionVariables.set(\"email_verification_token\", \"f3dcdfb91f4125414a6815201070afa5ba0588a29508ab6fef8bde0350d494cb\");"],"type":"text/javascript"}}],"id":"6dbcd913-b74f-446d-b673-b17b5facfca0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/verifyemail/{{emailVerificationToken}}","description":"<p>Returns access token, will be required for post login controls</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","verifyemail","{{emailVerificationToken}}"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"aace11e5-955a-4de3-a415-64ae3c0e6089","name":"Error - Invalid token","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/verifyemail/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-qR6CPi9m9bdUuZ5BRvaqNQMBOGw\""},{"key":"Date","value":"Thu, 27 Oct 2022 02:59:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Token Invalid or Token Expired, Request for a new reset token\"\n}"},{"id":"da177a22-32e0-449e-bf87-5a72789ba364","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/verifyemail/{{emailVerificationToken}}"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-V006tI/8JLfInvXFyA3GBmciu1Y\""},{"key":"Date","value":"Sat, 21 Jan 2023 13:50:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"status\": \"Email Verified\"\n    }\n}"}],"_postman_id":"6dbcd913-b74f-446d-b673-b17b5facfca0"},{"name":"Request email verification","event":[{"listen":"prerequest","script":{"id":"07a6573b-1fcb-425a-b0d6-2ad1a1a10d67","exec":["pm.collectionVariables.set(\"email_verification_token\", \"f3dcdfb91f4125414a6815201070afa5ba0588a29508ab6fef8bde0350d494cb\");"],"type":"text/javascript"}}],"id":"846e9ef0-85e8-4957-875c-4a9508dfa815","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/verifyemail/:email","description":"<p>Returns access token, will be required for post login controls</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","verifyemail",":email"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"25959942-b306-43f0-a6d4-72665d076139","type":"any","value":null,"key":"email"}]}},"response":[{"id":"51d18416-93b3-4e08-bd92-5f99f9ec3ed7","name":"Error - Invalid token","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/verifyemail/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-qR6CPi9m9bdUuZ5BRvaqNQMBOGw\""},{"key":"Date","value":"Thu, 27 Oct 2022 02:59:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Token Invalid or Token Expired, Request for a new reset token\"\n}"},{"id":"6d3fa6ad-5452-40c5-98c6-c6d07437e1a4","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/verifyemail/{{emailVerificationToken}}"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-V006tI/8JLfInvXFyA3GBmciu1Y\""},{"key":"Date","value":"Sat, 21 Jan 2023 13:50:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"status\": \"Email Verified\"\n    }\n}"}],"_postman_id":"846e9ef0-85e8-4957-875c-4a9508dfa815"},{"name":"Get logged in users data","id":"6f86b756-2bbd-4072-bbe9-24b9a0f008e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/user/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","user",""],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e70e9c05-6132-4d2d-a7c9-321598ffc5ad","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"206"},{"key":"ETag","value":"W/\"ce-GTslADmQw8Onue2/UtNUkBfd+tg\""},{"key":"Date","value":"Sat, 28 Jan 2023 03:31:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"63d48c4b2fcc97bc5a6342f3\",\n            \"firstname\": \"testfirstname\",\n            \"lastname\": \"testlastname\",\n            \"email\": \"moocsenduser5@oscsa.com\",\n            \"role\": \"EndUser\",\n            \"enrolled_courses\": [],\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"6f86b756-2bbd-4072-bbe9-24b9a0f008e7"},{"name":"Forgot password","id":"6d91ef46-1c50-4d14-8826-acac8bb0cb90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"moocsenduser3@oscsa.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/forgotpassword","description":"<p>Returns JWT token on success, should be used as bearer authorization token when confirming reset token</p>\n<p>The preferred language can either be 'en' for english or 'ar' for arabic</p>\n<p>To se the preferred language for the verification email set the <code>lang</code> property in the request query to either <code>en</code> or <code>ar</code></p>\n","urlObject":{"path":["auth","forgotpassword"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"472d4d86-aaec-4b3d-93be-9cffe23b2a2b","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"moocsenduser5@oscsa.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/forgotpassword"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"506"},{"key":"ETag","value":"W/\"1fa-Qw7vBQwvfQYXHI2OeuFZuFk0MxQ\""},{"key":"Set-Cookie","value":"connect.sid=s%3AseXm5FNFahIu_C3EqqkHFOftn8JQClrN.M9AqCh8ufY4aInI6ZIeL8jl4b8XNOaKLBMYURPYmWn8; Path=/; HttpOnly"},{"key":"Date","value":"Sat, 28 Jan 2023 03:36:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Successful, Password reset code sent to users email\",\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzZDQ4YzRiMmZjYzk3YmM1YTYzNDJmMyIsImVtYWlsIjoibW9vY3NlbmR1c2VyNUBvc2NzYS5jb20iLCJyb2xlIjoiRW5kVXNlciIsInN0YXR1cyI6eyJfaWQiOiI2M2Q0OGM0YzJmY2M5N2JjNWE2MzQyZjgiLCJ1c2VyIjoiNjNkNDhjNGIyZmNjOTdiYzVhNjM0MmYzIiwiaXNBY3RpdmUiOnRydWUsImlzVmVyaWZpZWQiOnRydWUsIl9fdiI6MH0sImlhdCI6MTY3NDg3Njk2NSwiZXhwIjoxNjc0ODk4NTY1fQ.gEheYD-xXwBicQgiWI_eKIl1q_3ak8n_-YcFAJzsvM0\"\n    }\n}"}],"_postman_id":"6d91ef46-1c50-4d14-8826-acac8bb0cb90"},{"name":"Reset password","event":[{"listen":"prerequest","script":{"id":"ee7fb597-cab3-486a-b411-cb629b42c8bc","exec":["pm.collectionVariables.set(\"password_reset_token\", \"89bf3fbe728e98abf1855951f52f1354aa0ba0f8ab6125c8cf4d5a530fed5f95\");"],"type":"text/javascript"}}],"id":"d83a61c8-d259-41eb-a21a-334f55e4e4d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password_reset_code\": \"982248\",\r\n    \"new_password\": \"newtestpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/resetpassword/","description":"<p>Requires bearer token from password reset response</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","resetpassword",""],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"86dcd271-3e35-493c-a390-97d479273201","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password_reset_code\": \"694910\",\r\n    \"new_password\": \"thisisthenewpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/resetpassword/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-Gsv12h0c2EacvVCqb68HKl8Fg4k\""},{"key":"Date","value":"Wed, 30 Nov 2022 16:36:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully reset password\"\n}"}],"_postman_id":"d83a61c8-d259-41eb-a21a-334f55e4e4d4"},{"name":"Request SuperAdmin Activation","id":"a8ea67c9-828d-4bce-ba46-e49ed14daa0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/superadmin/reqactivation/:email","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","superadmin","reqactivation",":email"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"69a38d8a-ee51-4e18-97a0-86ed394b3f38","type":"any","value":"moocssuperadmin2o@oscsa.com","key":"email"}]}},"response":[{"id":"448b4baa-2025-448e-94a0-6c4628292356","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/auth/superadmin/reqactivation/:email","host":["https://moocs-test.onrender.com/api/v1"],"path":["auth","superadmin","reqactivation",":email"],"variable":[{"key":"email","value":"dixtrictsuperadmin@gmail.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"373"},{"key":"ETag","value":"W/\"175-M1M0bQqrWdzoB2PpyCvh/a9KZak\""},{"key":"Date","value":"Wed, 25 Jan 2023 21:01:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiZWMxZThkLTUyYmMtNDQzOC05OGJlLTQyOGFjZGEyMzZhNyIsImVtYWlsIjoiZGl4dHJpY3RzdXBlcmFkbWluQGdtYWlsLmNvbSIsInN0YXR1cyI6e30sInJvbGUiOiJzdXBlcmFkbWluIiwiaWF0IjoxNjc0NjgwNTEwLCJleHAiOjE2NzQ2ODExMTB9.JnC-Z5yNwaIq-E86hXplxtYPHsRbubvHPSYcIk1sghc\",\n        \"message\": \"Activation codes sent to users email\"\n    }\n}"},{"id":"b1d6eba3-b759-475f-86bf-305ed3d065f5","name":"Error: Superadmin account does not exist","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/auth/superadmin/reqactivation/:email","host":["https://moocs-test.onrender.com/api/v1"],"path":["auth","superadmin","reqactivation",":email"],"variable":[{"key":"email","value":"dixtrictsuperadmin@gmail.com2"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-cI0DlAdvbi2OiBp4Jr/Oxl+faVc\""},{"key":"Date","value":"Wed, 25 Jan 2023 21:03:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Superadmin account does not exist\"\n}"}],"_postman_id":"a8ea67c9-828d-4bce-ba46-e49ed14daa0a"},{"name":"Request SuperAdmin Deactivation","id":"c4097b91-4b42-4d54-a72b-1bcc56c861f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/superadmin/reqdeactivation/:email","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","superadmin","reqdeactivation",":email"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"5f3c6fa0-6b74-4d59-97ed-9f1629a4bc3c","type":"any","value":"moocssuperadmin2o@oscsa.com","key":"email"}]}},"response":[{"id":"a5a2a769-e672-4d7f-baa5-840cb1d118d9","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"personal_details\": {\r\n        \"firstname\": \"cruise\",\r\n        \"lastname\": \"rider\",\r\n        \"email\": \"cruiserider4@gmail.com\",\r\n        \"password\": \"testpassword\",\r\n        \"phone\": \"+243325123423165\",\r\n        \"address\": \"No 3, Ibeju Lekki, Lagos State, Nigeria\",\r\n        \"city\": \"Lagos City\",\r\n        \"state\": \"Lagos State\",\r\n        \"driver_license\": \"SDNF23R309342S023\",\r\n        \"taxi_license\": \"SKDFJ3304UER23R\",\r\n        \"hasVehicle\": true,\r\n        \"referral\": \"BSDLK2233S\"\r\n    },\r\n\r\n    \"vehicle_details\": {\r\n        \"name\": \"Benz\",\r\n        \"manufacturer\": \"Volvo\",\r\n        \"model\": \"C300\",\r\n        \"year\": \"2020\",\r\n        \"color\": \"green\",\r\n        \"plate_number\": \"BE7-SE23E-123\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/auth/superadmin/reqdeactivation/:email","host":["https://moocs-test.onrender.com/api/v1"],"path":["auth","superadmin","reqdeactivation",":email"],"variable":[{"key":"email","value":"dixtrictsuperadmin@gmail.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"375"},{"key":"ETag","value":"W/\"177-TCp0A5XrS0drSG4baCFhr9KisP4\""},{"key":"Date","value":"Thu, 26 Jan 2023 00:32:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiZWMxZThkLTUyYmMtNDQzOC05OGJlLTQyOGFjZGEyMzZhNyIsImVtYWlsIjoiZGl4dHJpY3RzdXBlcmFkbWluQGdtYWlsLmNvbSIsInN0YXR1cyI6e30sInJvbGUiOiJzdXBlcmFkbWluIiwiaWF0IjoxNjc0NjkzMTYzLCJleHAiOjE2NzQ2OTM3NjN9.F-bbyH7YebIS-Fbrb0B67XSf-YNO5JyCAzHlmO1ZVJY\",\n        \"message\": \"Deactivation codes sent to users email\"\n    }\n}"}],"_postman_id":"c4097b91-4b42-4d54-a72b-1bcc56c861f6"},{"name":"Activate SuperAdmin account","id":"40e0331a-3ca1-47ec-8c4e-c3fd3d38b0ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"activation_code1\": \"902dff70-d14a-4b8d-ba9d-9b3e1491aa2e\",\r\n    \"activation_code2\": \"9914f803-56f2-40cb-a66f-50215269b3a0\",\r\n    \"activation_code3\": \"e28c9c5d-685b-4596-8cd0-965671a2a5ec\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/superadmin/activate","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","superadmin","activate"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"798756d2-4161-4e68-ba9b-1f7a6f34e090","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"activation_code1\": \"1535e637-9f8f-46f7-a804-068ed6b89af3\",\r\n    \"activation_code2\": \"0669141d-d3cb-4279-900e-347bb2275d68\",\r\n    \"activation_code3\": \"ae030a25-2690-4c15-be0c-47f0c1e812ed\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/superadmin/activate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-dUJV8/uSL/TIeN5vx0DAVJMnStg\""},{"key":"Date","value":"Thu, 26 Jan 2023 00:29:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Super admin account activated\"\n    }\n}"}],"_postman_id":"40e0331a-3ca1-47ec-8c4e-c3fd3d38b0ce"},{"name":"Deactivate SuperAdmin account","id":"cf9a8c71-ea78-4cff-b270-496e15120871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"deactivation_code1\": \"37cef00e-2c06-40db-b93f-9c492cb7b0d1\",\r\n    \"deactivation_code2\": \"93548402-4102-4aa0-bb11-6378cbfd7a6a\",\r\n    \"deactivation_code3\": \"52b0a4eb-3fd4-4402-bbf2-f2a9c4d654df\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/superadmin/deactivate","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","superadmin","deactivate"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ba02a7d4-011a-4fc2-9d78-c3b43ac905a9","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"deactivation_code1\": \"96511044-b324-48ab-a05f-6ff25de675bb\",\r\n    \"deactivation_code2\": \"382a9a85-ee86-485c-9882-8fd7b96fb215\",\r\n    \"deactivation_code3\": \"87b40cc1-9e1a-4b1b-8646-f45bfcbf4c6d\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/superadmin/deactivate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-83va7LUPqN9pev67L2uhB1BR30A\""},{"key":"Date","value":"Thu, 26 Jan 2023 00:40:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Super admin account deactivated\"\n    }\n}"}],"_postman_id":"cf9a8c71-ea78-4cff-b270-496e15120871"}],"id":"0540e1a4-7f2d-4fe6-bb44-be560d10170f","event":[{"listen":"prerequest","script":{"id":"c9ca3f4a-35a7-4838-a948-a01959aed26c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c7cb16db-b1ba-4128-b802-dded3aa1a144","type":"text/javascript","exec":[""]}}],"_postman_id":"0540e1a4-7f2d-4fe6-bb44-be560d10170f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}}},{"name":"User Account","item":[{"name":"Add user account","id":"51827ba4-45cb-446f-8c0b-e939e5388893","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"cruisefirstname\",\r\n    \"lastname\": \"cruiselastname\",\r\n    \"email\": \"cruiseenduser1@gmail.com\",\r\n    \"password\": \"testpassword\",\r\n    \"role\": \"admin\",\r\n    \"phone\": \"+12323245543\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/user/add","description":"<p>Added user should proceed to request for new Verification email</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["user","add"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"71f4199a-3adf-4c36-8e96-1751d77c8360","name":"Error - Unauthorized access","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"cruisefirstname\",\r\n    \"lastname\": \"cruiselastname\",\r\n    \"email\": \"moluno.richie@gmail.com\",\r\n    \"password\": \"testpassword\",\r\n    \"role\": \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/user/add"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-iZw2hgF1ypREoDvqg0e2Cq6Phso\""},{"key":"Date","value":"Mon, 26 Dec 2022 00:00:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are not authorized to perform this action\"\n}"},{"id":"701dc02d-0508-4c19-a873-00b3cb5229fb","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"cruisefirstname\",\r\n    \"lastname\": \"cruiselastname\",\r\n    \"email\": \"cruiseenduser1@gmail.com\",\r\n    \"password\": \"testpassword\",\r\n    \"role\": \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/user/add"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"680"},{"key":"ETag","value":"W/\"2a8-OE5ZTW5V+fOQan5kItVqj2ZDmHE\""},{"key":"Date","value":"Mon, 26 Dec 2022 00:04:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzYThlNTBkZTgwMzZiODI2NmIwOGI1MiIsImVtYWlsIjoiY3J1aXNlZW5kdXNlcjFAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwic3RhdHVzIjp7Il9pZCI6IjYzYThlNTBlZTgwMzZiODI2NmIwOGI1NSIsInVzZXIiOiI2M2E4ZTUwZGU4MDM2YjgyNjZiMDhiNTIiLCJpc1ZlcmlmaWVkIjpmYWxzZSwiaXNBY3RpdmUiOnRydWUsImNyZWF0ZWRBdCI6IjIwMjItMTItMjZUMDA6MDQ6MzAuMTA5WiIsInVwZGF0ZWRBdCI6IjIwMjItMTItMjZUMDA6MDQ6MzAuMTA5WiIsIl9fdiI6MH0sImlhdCI6MTY3MjAxMzA3MCwiZXhwIjoxNjcyMDEzNjcwfQ.1WB040Lgf_m2tJ0SVZvunlfmUzaBHGbKQzB2GrqpuI4\",\n        \"user\": {\n            \"id\": \"63a8e50de8036b8266b08b52\",\n            \"firstname\": \"cruisefirstname\",\n            \"lastname\": \"cruiselastname\",\n            \"email\": \"cruiseenduser1@gmail.com\"\n        }\n    }\n}"}],"_postman_id":"51827ba4-45cb-446f-8c0b-e939e5388893"},{"name":"Activate user account","id":"5b6615a1-82fe-478b-b0dc-fe7a3a70f785","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/user/activate/:email","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","user","activate",":email"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"a19215e4-1d09-40cd-8480-b6380e156feb","type":"any","value":"moocsenduser3@oscsa.com","key":"email"}]}},"response":[{"id":"b39e5495-8f03-4b81-b16c-f99ff6c1227c","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"dixtrictenduser6@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/user/activate/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-8gYr+CY++v9unXzYfeeCQYiD2Kc\""},{"key":"Date","value":"Thu, 26 Jan 2023 23:01:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Account activated successfully.\"\n    }\n}"}],"_postman_id":"5b6615a1-82fe-478b-b0dc-fe7a3a70f785"},{"name":"Get user data","id":"2a0928b5-d274-4a50-a2d7-054d1bd5718f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"cruiseenduser1@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/user","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","user"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"8c344129-cfdf-4a76-bafc-64d1e2730310","name":"Error - Unauthorized access","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"cruisefirstname\",\r\n    \"lastname\": \"cruiselastname\",\r\n    \"email\": \"moluno.richie@gmail.com\",\r\n    \"password\": \"testpassword\",\r\n    \"role\": \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/user/add"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-iZw2hgF1ypREoDvqg0e2Cq6Phso\""},{"key":"Date","value":"Mon, 26 Dec 2022 00:00:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are not authorized to perform this action\"\n}"},{"id":"3c6aa127-3c80-4a7b-bd30-221833b83d3d","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"cruiseenduser1@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/user/data/:email","host":["https://moocs-test.onrender.com/api/v1"],"path":["user","data",":email"],"variable":[{"key":"email","value":"cruiseenduser@gmail.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"253"},{"key":"ETag","value":"W/\"fd-5rQwUgQEBsTGV9RA7mkQ33CEXaE\""},{"key":"Date","value":"Mon, 26 Dec 2022 00:23:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"63a6bf7c7d3454da0c128307\",\n        \"firstname\": \"cruisefirstname\",\n        \"lastname\": \"cruiselastname\",\n        \"email\": \"cruiseenduser@gmail.com\",\n        \"role\": \"enduser\",\n        \"createdAt\": \"2022-12-24T08:59:40.690Z\",\n        \"updatedAt\": \"2022-12-24T08:59:40.690Z\",\n        \"__v\": 0\n    }\n}"},{"id":"294a6538-abe7-4362-b3c1-add42384fb1c","name":"Error - User does not exist","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"cruiseenduser1@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/user/data/:email","host":["https://moocs-test.onrender.com/api/v1"],"path":["user","data",":email"],"variable":[{"key":"email","value":"cruiseenduser@gmail.coms"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"33"},{"key":"ETag","value":"W/\"21-Np2jUya9p3j0Sf6GzW9K1FMhcTQ\""},{"key":"Date","value":"Mon, 26 Dec 2022 00:23:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User does not exist\"\n}"}],"_postman_id":"2a0928b5-d274-4a50-a2d7-054d1bd5718f"},{"name":"Deactivate user account","id":"7e4680ea-cc20-4424-925c-606e5f5adac8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/auth/user/deactivate/:email","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["auth","user","deactivate",":email"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"730b5c19-477a-4380-94a7-c5d13885dfb5","type":"any","value":"moocsenduser3@gmail.com","key":"email"}]}},"response":[{"id":"e548305c-ce4a-4146-9f17-7a76cee991c9","name":"Error - Unauthorized access","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"cruisefirstname\",\r\n    \"lastname\": \"cruiselastname\",\r\n    \"email\": \"moluno.richie@gmail.com\",\r\n    \"password\": \"testpassword\",\r\n    \"role\": \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/user/add"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-iZw2hgF1ypREoDvqg0e2Cq6Phso\""},{"key":"Date","value":"Mon, 26 Dec 2022 00:00:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are not authorized to perform this action\"\n}"},{"id":"953114f8-c034-4631-ae18-fcbf471f4eb6","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/user/deactivate/:email","host":["https://moocs-test.onrender.com/api/v1"],"path":["user","deactivate",":email"],"variable":[{"key":"email","value":"cruiseenduser@gmail.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-pIPrt4esgEyEkX/w62Rnrj9XXdg\""},{"key":"Date","value":"Mon, 26 Dec 2022 00:56:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {}\n}"}],"_postman_id":"7e4680ea-cc20-4424-925c-606e5f5adac8"}],"id":"a891cd46-fe74-4560-aeb0-c91503e248a3","_postman_id":"a891cd46-fe74-4560-aeb0-c91503e248a3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}}},{"name":"Course","item":[{"name":"Get courses","event":[{"listen":"test","script":{"id":"0e06a704-9cca-4c11-a779-5c6c39d4be72","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courses = response.data?.courses\r","    const course = courses[0]\r","    if (course) {\r","        pm.collectionVariables.set(\"courseId\", course._id)\r","    }\r","}"],"type":"text/javascript"}}],"id":"64ca96b8-cf77-4e54-80a7-c59807e73b01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course",""],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"126c64ab-4f02-478b-901f-291e19c5e9d3","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1201"},{"key":"ETag","value":"W/\"4b1-ga7XRkbpJOvoXbkQGsEop4wKA0U\""},{"key":"Date","value":"Tue, 28 Feb 2023 13:34:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"courses\": [\n            {\n                \"_id\": \"6411dbb7d07a77d6c06a44f3\",\n                \"author\": \"John Doe\",\n                \"title\": \"JavaScript for Beginners\",\n                \"description\": \"This course teaches you the basics of JavaScript\",\n                \"videos\": [],\n                \"enrolled_users\": [\n                    \"63d4889852d1f1ff958237a4\",\n                    \"6409a0c9d10ec4967211a77a\",\n                    \"6407b8ca30fdfbd0995625c4\",\n                    \"641d7ee06b40e40bc62e8d57\",\n                    \"64205b5e4ae84c9a66b1ba1c\",\n                    \"6420d8aef0e8565672c0d3b4\",\n                    \"640794fa10542e15960a7a45\",\n                    \"642a7fc9414aa266c3f53d48\",\n                    \"642acac6a9754a221eea1955\",\n                    \"6409a024d10ec4967211a76d\",\n                    \"642bff0c286b1e0b53d428df\"\n                ],\n                \"isAvailable\": true,\n                \"preview_image\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1679256528/courses/preview_images/cloud_bnxpfd.png\",\n                \"__v\": 0,\n                \"description_tr\": \"هذه الدورة تعلمكم أساسيات جافا سكريبت\",\n                \"title_tr\": \"جافا سكريبت للمبتدئين\",\n                \"course_sections\": [\n                    {\n                        \"_id\": \"6411dbc4d07a77d6c06a44f7\",\n                        \"title\": \"Basics\",\n                        \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                        \"order\": 1678891273798,\n                        \"contents\": [],\n                        \"__v\": 0,\n                        \"videos\": [\n                            {\n                                \"_id\": \"6411dbf5d07a77d6c06a4526\",\n                                \"type\": \"video\",\n                                \"title\": \"Python for Beginners\",\n                                \"author\": \"Jane Smith\",\n                                \"video_url\": \"https://www.youtube.com/embed/10u1_CzdmQs\",\n                                \"description\": \"This is a video about Python programming for beginners\",\n                                \"duration\": \"4\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                                \"category\": \"Python\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا فيديو حول برمجة بايثون للمبتدئين\",\n                                \"title_tr\": \"بايثون للمبتدئين\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dbf5d07a77d6c06a4526\"\n                            },\n                            {\n                                \"_id\": \"6411dbf9d07a77d6c06a452e\",\n                                \"type\": \"video\",\n                                \"title\": \"Creating Responsive Websites\",\n                                \"author\": \"Sarah Kim\",\n                                \"video_url\": \"https://www.youtube.com/embed/Rvs4d5JzCPo\",\n                                \"description\": \"This video shows you how to create responsive websites using CSS\",\n                                \"duration\": \"2\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                                \"category\": \"Web Development\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"يظهر لك هذا الفيديو كيفية إنشاء مواقع مستجيبة باستخدام CSS\",\n                                \"title_tr\": \"إنشاء مواقع استجابة\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dbf9d07a77d6c06a452e\"\n                            },\n                            {\n                                \"_id\": \"6411dc08d07a77d6c06a453c\",\n                                \"type\": \"video\",\n                                \"title\": \"React vs Angular\",\n                                \"author\": \"Bob Johnson\",\n                                \"video_url\": \"https://www.youtube.com/embed/LybOHJfqffA\",\n                                \"description\": \"This video compares React and Angular frameworks\",\n                                \"duration\": \"9\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                                \"category\": \"Frontend\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"يقارن هذا الفيديو بين أطر React و Angle\",\n                                \"title_tr\": \"React ضد الزاوية\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dc08d07a77d6c06a453c\"\n                            }\n                        ],\n                        \"exercises\": [\n                            {\n                                \"_id\": \"6411dbced07a77d6c06a44fc\",\n                                \"type\": \"exercise\",\n                                \"title\": \"Introduction to Python\",\n                                \"description\": \"This is an exercise on the introduction to python\",\n                                \"duration\": 10,\n                                \"date\": \"2023-03-15T14:41:13.796Z\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                                \"order\": 1678891273796,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                                \"title_tr\": \"مقدمة إلى بايثون\",\n                                \"questions\": [\n                                    {\n                                        \"_id\": \"6411dbd8d07a77d6c06a4506\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                        \"question\": \"What is the difference between null and undefined in JavaScript?\",\n                                        \"correct_option\": \"null is an assigned value, while undefined is not assigned\",\n                                        \"options\": [\n                                            \"null is an assigned value\",\n                                            \" while undefined is not assigned\",\n                                            \"undefined is an assigned value\",\n                                            \" while null is not assigned\"\n                                        ],\n                                        \"__v\": 29,\n                                        \"options_tr\": [\n                                            \"فارغ هو قيمة مسندة\",\n                                            \" أثناء عدم تعيين غير معرف\",\n                                            \"غير معرف قيمة مسندة\",\n                                            \" بينما لم يتم تعيين فارغ\"\n                                        ],\n                                        \"correct_option_tr\": \"فارغ هو قيمة مسندة، بينما لم يتم تعيين غير محدد\",\n                                        \"question_tr\": \"ما هو الفرق بين الفراغ وغير المحدد في جافا سكريب؟\",\n                                        \"id\": \"6411dbd8d07a77d6c06a4506\"\n                                    },\n                                    {\n                                        \"_id\": \"6411dbdbd07a77d6c06a450b\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                        \"question\": \"What is the difference between == and === in JavaScript?\",\n                                        \"correct_option\": \"== compares values, while === compares values and types\",\n                                        \"options\": [\n                                            \"== compares values and types, while === compares values\",\n                                            \"== compares values, while === compares values and types\",\n                                            \"== compares values, while === compares values and types\",\n                                            \"== and === are not used in JavaScript\"\n                                        ],\n                                        \"__v\": 25,\n                                        \"options_tr\": [\n                                            \"== مقارنة القيم والأنواع ، في حين == مقارنة القيم\",\n                                            \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                            \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                            \"== و === لا تستخدم في JavaScript\"\n                                        ],\n                                        \"correct_option_tr\": \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                        \"question_tr\": \"ما هو الفرق بين == و === في جافا سكريب؟\",\n                                        \"id\": \"6411dbdbd07a77d6c06a450b\"\n                                    },\n                                    {\n                                        \"_id\": \"6411dbe2d07a77d6c06a4510\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                        \"question\": \"What is the difference between == and === in JavaScript?\",\n                                        \"correct_option\": \"== compares values, while === compares values and types\",\n                                        \"options\": [\n                                            \"== compares values and types, while === compares values\",\n                                            \"== compares values, while === compares values and types\",\n                                            \"== and === are deprecated\",\n                                            \"== compares values, while === compares values and types\"\n                                        ],\n                                        \"__v\": 23,\n                                        \"options_tr\": [\n                                            \"== مقارنة القيم والأنواع ، في حين == مقارنة القيم\",\n                                            \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                            \"== و === مهمل\",\n                                            \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\"\n                                        ],\n                                        \"correct_option_tr\": \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                        \"question_tr\": \"ما هو الفرق بين == و === في جافا سكريب؟\",\n                                        \"id\": \"6411dbe2d07a77d6c06a4510\"\n                                    },\n                                    {\n                                        \"_id\": \"6411dbe7d07a77d6c06a4515\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                        \"question\": \"What is the difference between == and === in JavaScript?\",\n                                        \"correct_option\": \"== compares values, while === compares values and types\",\n                                        \"options\": [\n                                            \"== compares values and types, while === compares values\",\n                                            \"== compares values, while === compares values and types\",\n                                            \"== compares values, while === compares values and types\",\n                                            \"== and === are not used in JavaScript\"\n                                        ],\n                                        \"__v\": 23,\n                                        \"options_tr\": [\n                                            \"== مقارنة القيم والأنواع ، في حين == مقارنة القيم\",\n                                            \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                            \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                            \"== و === لا تستخدم في JavaScript\"\n                                        ],\n                                        \"correct_option_tr\": \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                        \"question_tr\": \"ما هو الفرق بين == و === في جافا سكريب؟\",\n                                        \"id\": \"6411dbe7d07a77d6c06a4515\"\n                                    },\n                                    {\n                                        \"_id\": \"642a0691478e325985170d68\",\n                                        \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                        \"question\": \"What is the color of the sky\",\n                                        \"correct_option\": \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                        \"options\": [\n                                            \"colorless\",\n                                            \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                            \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                            \"purple\"\n                                        ],\n                                        \"__v\": 3,\n                                        \"options_tr\": [\n                                            \"بلا ألوان\",\n                                            \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                            \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                            \"أرجواني\"\n                                        ],\n                                        \"type\": \"question\",\n                                        \"correct_option_tr\": \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                        \"question_tr\": \"ما هو لون السماء\",\n                                        \"id\": \"642a0691478e325985170d68\"\n                                    }\n                                ],\n                                \"id\": \"6411dbced07a77d6c06a44fc\"\n                            },\n                            {\n                                \"_id\": \"641ee2c3818b0e8c297a4c17\",\n                                \"type\": \"exercise\",\n                                \"title\": \"Introduction to Python\",\n                                \"description\": \"This is an exercise on the introduction to python\",\n                                \"duration\": 10,\n                                \"date\": \"2023-03-25T12:01:00.908Z\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                                \"order\": 1679745660908,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                                \"title_tr\": \"مقدمة إلى بايثون\",\n                                \"questions\": [\n                                    {\n                                        \"_id\": \"641ee2c8818b0e8c297a4c1f\",\n                                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                        \"question\": \"What is the color of the sky\",\n                                        \"correct_option\": \"blue\",\n                                        \"options\": [\n                                            \"blue\",\n                                            \"blue\",\n                                            \"pink\",\n                                            \"purple\"\n                                        ],\n                                        \"__v\": 3,\n                                        \"options_tr\": [\n                                            \"أزرق\",\n                                            \"أزرق\",\n                                            \"وردي\",\n                                            \"أرجواني\"\n                                        ],\n                                        \"type\": \"question\",\n                                        \"correct_option_tr\": \"أزرق\",\n                                        \"question_tr\": \"ما هو لون السماء\",\n                                        \"id\": \"641ee2c8818b0e8c297a4c1f\"\n                                    },\n                                    {\n                                        \"_id\": \"641ee2cb818b0e8c297a4c23\",\n                                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                        \"question\": \"What is the color of the sky\",\n                                        \"correct_option\": \"blue\",\n                                        \"options\": [\n                                            \"colorless\",\n                                            \"blue\",\n                                            \"pink\",\n                                            \"blue\"\n                                        ],\n                                        \"__v\": 3,\n                                        \"options_tr\": [\n                                            \"بلا ألوان\",\n                                            \"أزرق\",\n                                            \"وردي\",\n                                            \"أزرق\"\n                                        ],\n                                        \"type\": \"question\",\n                                        \"correct_option_tr\": \"أزرق\",\n                                        \"question_tr\": \"ما هو لون السماء\",\n                                        \"id\": \"641ee2cb818b0e8c297a4c23\"\n                                    },\n                                    {\n                                        \"_id\": \"641ee2ce818b0e8c297a4c27\",\n                                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                        \"question\": \"What is the color of the sky\",\n                                        \"correct_option\": \"blue\",\n                                        \"options\": [\n                                            \"blue\",\n                                            \"blue\",\n                                            \"pink\",\n                                            \"purple\"\n                                        ],\n                                        \"__v\": 3,\n                                        \"options_tr\": [\n                                            \"أزرق\",\n                                            \"أزرق\",\n                                            \"وردي\",\n                                            \"أرجواني\"\n                                        ],\n                                        \"type\": \"question\",\n                                        \"correct_option_tr\": \"أزرق\",\n                                        \"question_tr\": \"ما هو لون السماء\",\n                                        \"id\": \"641ee2ce818b0e8c297a4c27\"\n                                    },\n                                    {\n                                        \"_id\": \"641ee2d0818b0e8c297a4c2b\",\n                                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                        \"question\": \"What is the color of the sky\",\n                                        \"correct_option\": \"blue\",\n                                        \"options\": [\n                                            \"blue\",\n                                            \"blue\",\n                                            \"pink\",\n                                            \"purple\"\n                                        ],\n                                        \"__v\": 3,\n                                        \"options_tr\": [\n                                            \"أزرق\",\n                                            \"أزرق\",\n                                            \"وردي\",\n                                            \"أرجواني\"\n                                        ],\n                                        \"type\": \"question\",\n                                        \"correct_option_tr\": \"أزرق\",\n                                        \"question_tr\": \"ما هو لون السماء\",\n                                        \"id\": \"641ee2d0818b0e8c297a4c2b\"\n                                    },\n                                    {\n                                        \"_id\": \"641ee2d1818b0e8c297a4c2f\",\n                                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                        \"question\": \"What is the color of the sky\",\n                                        \"correct_option\": \"blue\",\n                                        \"options\": [\n                                            \"colorless\",\n                                            \"blue\",\n                                            \"pink\",\n                                            \"blue\"\n                                        ],\n                                        \"__v\": 3,\n                                        \"options_tr\": [\n                                            \"بلا ألوان\",\n                                            \"أزرق\",\n                                            \"وردي\",\n                                            \"أزرق\"\n                                        ],\n                                        \"type\": \"question\",\n                                        \"correct_option_tr\": \"أزرق\",\n                                        \"question_tr\": \"ما هو لون السماء\",\n                                        \"id\": \"641ee2d1818b0e8c297a4c2f\"\n                                    }\n                                ],\n                                \"id\": \"641ee2c3818b0e8c297a4c17\"\n                            }\n                        ],\n                        \"textmaterials\": [\n                            {\n                                \"_id\": \"6411dbebd07a77d6c06a4519\",\n                                \"type\": \"slide\",\n                                \"title\": \"Open data.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                                \"order\": 1678891273798,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678891984/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dbc4d07a77d6c06a44f7/textmaterial_6411dbebd07a77d6c06a4519_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"فتح البيانات.pdf\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dbebd07a77d6c06a4519\"\n                            },\n                            {\n                                \"_id\": \"6411dbf1d07a77d6c06a451f\",\n                                \"type\": \"slide\",\n                                \"title\": \"Python for Data Science.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                                \"order\": 1678891273798,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678891990/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dbc4d07a77d6c06a44f7/textmaterial_6411dbf1d07a77d6c06a451f_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"Python for Data Science.pdf\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dbf1d07a77d6c06a451f\"\n                            },\n                            {\n                                \"_id\": \"6411dc01d07a77d6c06a4535\",\n                                \"type\": \"slide\",\n                                \"title\": \"OpenCV.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                                \"order\": 1678891273798,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678892006/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dbc4d07a77d6c06a44f7/textmaterial_6411dc01d07a77d6c06a4535_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"OpenCV.pdf\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dc01d07a77d6c06a4535\"\n                            }\n                        ],\n                        \"id\": \"6411dbc4d07a77d6c06a44f7\"\n                    },\n                    {\n                        \"_id\": \"6411dc27d07a77d6c06a454a\",\n                        \"title\": \"Basics\",\n                        \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                        \"order\": 1678891273798,\n                        \"contents\": [],\n                        \"__v\": 0,\n                        \"videos\": [\n                            {\n                                \"_id\": \"6411dc38d07a77d6c06a455f\",\n                                \"type\": \"video\",\n                                \"title\": \"Data Science for Beginners\",\n                                \"author\": \"Emily Wong\",\n                                \"video_url\": \"https://www.youtube.com/embed/VlWA7vygULcE\",\n                                \"description\": \"This is a video about data science for beginners\",\n                                \"duration\": \"1\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                                \"category\": \"Data Science\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا فيديو حول علم البيانات للمبتدئين\",\n                                \"title_tr\": \"علم البيانات للمبتدئين\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dc38d07a77d6c06a455f\"\n                            },\n                            {\n                                \"_id\": \"6411dc3ed07a77d6c06a4567\",\n                                \"type\": \"video\",\n                                \"title\": \"Creating Responsive Websites\",\n                                \"author\": \"Sarah Kim\",\n                                \"video_url\": \"https://www.youtube.com/embed/Rvs4d5JzCPo\",\n                                \"description\": \"This video shows you how to create responsive websites using CSS\",\n                                \"duration\": \"9\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                                \"category\": \"Web Development\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"يظهر لك هذا الفيديو كيفية إنشاء مواقع مستجيبة باستخدام CSS\",\n                                \"title_tr\": \"إنشاء مواقع استجابة\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dc3ed07a77d6c06a4567\"\n                            },\n                            {\n                                \"_id\": \"6411dc43d07a77d6c06a456f\",\n                                \"type\": \"video\",\n                                \"title\": \"How to Build a Chatbot\",\n                                \"author\": \"David Wang\",\n                                \"video_url\": \"https://www.youtube.com/embed/AMliNkrJIaQ\",\n                                \"description\": \"This video teaches you how to build a chatbot using Python\",\n                                \"duration\": \"9\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                                \"category\": \"Artificial Intelligence\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا الفيديو يعلمك كيفية بناء روبوت الدردشة باستخدام بايثون\",\n                                \"title_tr\": \"كيفية بناء روبوت الدردشة\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dc43d07a77d6c06a456f\"\n                            },\n                            {\n                                \"_id\": \"6411dc4fd07a77d6c06a457c\",\n                                \"type\": \"video\",\n                                \"title\": \"Creating Responsive Websites\",\n                                \"author\": \"Sarah Kim\",\n                                \"video_url\": \"https://www.youtube.com/embed/Rvs4d5JzCPo\",\n                                \"description\": \"This video shows you how to create responsive websites using CSS\",\n                                \"duration\": \"5\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                                \"category\": \"Web Development\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"يظهر لك هذا الفيديو كيفية إنشاء مواقع مستجيبة باستخدام CSS\",\n                                \"title_tr\": \"إنشاء مواقع استجابة\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dc4fd07a77d6c06a457c\"\n                            }\n                        ],\n                        \"exercises\": [\n                            {\n                                \"_id\": \"6411dc32d07a77d6c06a4555\",\n                                \"type\": \"exercise\",\n                                \"title\": \"Introduction to Python\",\n                                \"description\": \"This is an exercise on the introduction to python\",\n                                \"duration\": 10,\n                                \"date\": \"2023-03-15T14:41:13.796Z\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                                \"order\": 1678891273796,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                                \"title_tr\": \"مقدمة إلى بايثون\",\n                                \"questions\": [\n                                    {\n                                        \"_id\": \"6411dc4ad07a77d6c06a4577\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411dc32d07a77d6c06a4555\",\n                                        \"question\": \"What is a closure in JavaScript?\",\n                                        \"correct_option\": \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                        \"options\": [\n                                            \"A closure is an object that holds primitive values\",\n                                            \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                            \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                            \"A closure is a function that has access to global variables\"\n                                        ],\n                                        \"__v\": 23,\n                                        \"options_tr\": [\n                                            \"الإغلاق هو جسم يحتوي على قيم بدائية\",\n                                            \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                            \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                            \"الإغلاق هو وظيفة لها إمكانية الوصول إلى المتغيرات العالمية\"\n                                        ],\n                                        \"correct_option_tr\": \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                        \"question_tr\": \"ما هو الإغلاق في جافا سكريب؟\",\n                                        \"id\": \"6411dc4ad07a77d6c06a4577\"\n                                    },\n                                    {\n                                        \"_id\": \"6411dc58d07a77d6c06a4584\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411dc32d07a77d6c06a4555\",\n                                        \"question\": \"How do you check if a variable is an array in JavaScript?\",\n                                        \"correct_option\": \"Array.isArray()\",\n                                        \"options\": [\n                                            \"Array.isArray()\",\n                                            \"Array.isArray()\",\n                                            \"instanceof\",\n                                            \"all of the above\"\n                                        ],\n                                        \"__v\": 25,\n                                        \"options_tr\": [\n                                            \"Array.isArray()\",\n                                            \"Array.isArray()\",\n                                            \"مثال\",\n                                            \"كل ما ورد أعلاه\"\n                                        ],\n                                        \"correct_option_tr\": \"Array.isArray()\",\n                                        \"question_tr\": \"كيف يمكنك التحقق مما إذا كان المتغير عبارة عن مصفوفة في جافا سكريب؟\",\n                                        \"id\": \"6411dc58d07a77d6c06a4584\"\n                                    }\n                                ],\n                                \"id\": \"6411dc32d07a77d6c06a4555\"\n                            }\n                        ],\n                        \"textmaterials\": [\n                            {\n                                \"_id\": \"6411dc2fd07a77d6c06a454e\",\n                                \"type\": \"slide\",\n                                \"title\": \"Open data.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                                \"order\": 1678891273798,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678892052/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dc27d07a77d6c06a454a/textmaterial_6411dc2fd07a77d6c06a454e_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"فتح البيانات.pdf\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dc2fd07a77d6c06a454e\"\n                            },\n                            {\n                                \"_id\": \"641765bcf7e6c01b997c0b42\",\n                                \"type\": \"slide\",\n                                \"title\": \"Referencing.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                                \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                                \"order\": 1679254805989,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1679254945/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dc27d07a77d6c06a454a/textmaterial_641765bcf7e6c01b997c0b42_resume%20test.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"المرجع.pdf\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"641765bcf7e6c01b997c0b42\"\n                            }\n                        ],\n                        \"id\": \"6411dc27d07a77d6c06a454a\"\n                    }\n                ],\n                \"id\": \"6411dbb7d07a77d6c06a44f3\"\n            },\n            {\n                \"_id\": \"6411d957d07a77d6c06a4437\",\n                \"author\": \"David Wang\",\n                \"title\": \"How to Build a Chatbot\",\n                \"description\": \"This course teaches you how to build a chatbot using Python\",\n                \"videos\": [],\n                \"enrolled_users\": [\n                    \"6409a0c9d10ec4967211a77a\",\n                    \"64205b5e4ae84c9a66b1ba1c\",\n                    \"64091d4df66745fbacb1a73a\",\n                    \"6407b8ca30fdfbd0995625c4\",\n                    \"640794fa10542e15960a7a45\",\n                    \"642a7fc9414aa266c3f53d48\",\n                    \"642acac6a9754a221eea1955\",\n                    \"63d4889852d1f1ff958237a4\",\n                    \"6409a024d10ec4967211a76d\"\n                ],\n                \"isAvailable\": true,\n                \"preview_image\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1679256528/courses/preview_images/cloud_bnxpfd.png\",\n                \"__v\": 0,\n                \"description_tr\": \"هذه الدورة تعلم كيفية بناء روبوت الدردشة باستخدام بايثون\",\n                \"title_tr\": \"كيفية بناء روبوت الدردشة\",\n                \"course_sections\": [\n                    {\n                        \"_id\": \"6411d96bd07a77d6c06a443b\",\n                        \"title\": \"Basics\",\n                        \"course\": \"6411d957d07a77d6c06a4437\",\n                        \"order\": 1678891273798,\n                        \"contents\": [],\n                        \"__v\": 0,\n                        \"videos\": [\n                            {\n                                \"_id\": \"6411d9f9d07a77d6c06a4488\",\n                                \"type\": \"video\",\n                                \"title\": \"Introduction to JavaScript\",\n                                \"author\": \"John Doe\",\n                                \"video_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                                \"description\": \"This is a video about JavaScript\",\n                                \"duration\": \"1\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411d96bd07a77d6c06a443b\",\n                                \"category\": \"JavaScript\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا فيديو حول جافا سكريبت\",\n                                \"title_tr\": \"مقدمة إلى جافا سكريبت\",\n                                \"downloadable_resources\": [\n                                    {\n                                        \"_id\": \"642ec1c8865b0244d6086413\",\n                                        \"resource_type\": \"video\",\n                                        \"title\": \"More info on open data\",\n                                        \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                                        \"description\": \"Gives more detials on what opendata is about\",\n                                        \"course\": \"6411d957d07a77d6c06a4437\",\n                                        \"video\": \"6411d9f9d07a77d6c06a4488\",\n                                        \"order\": 1680785659539,\n                                        \"isAvailable\": true,\n                                        \"__v\": 0,\n                                        \"description_tr\": \"إعطاء المزيد من الشروط على ما يدور حول opendata\",\n                                        \"title_tr\": \"مزيد من المعلومات عن البيانات المفتوحة\",\n                                        \"id\": \"642ec1c8865b0244d6086413\"\n                                    }\n                                ],\n                                \"id\": \"6411d9f9d07a77d6c06a4488\"\n                            },\n                            {\n                                \"_id\": \"6411da0bd07a77d6c06a4490\",\n                                \"type\": \"video\",\n                                \"title\": \"Python for Beginners\",\n                                \"author\": \"Jane Smith\",\n                                \"video_url\": \"https://www.youtube.com/embed/10u1_CzdmQs\",\n                                \"description\": \"This is a video about Python programming for beginners\",\n                                \"duration\": \"6\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411d96bd07a77d6c06a443b\",\n                                \"category\": \"Python\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا فيديو حول برمجة بايثون للمبتدئين\",\n                                \"title_tr\": \"بايثون للمبتدئين\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411da0bd07a77d6c06a4490\"\n                            },\n                            {\n                                \"_id\": \"6411da17d07a77d6c06a4498\",\n                                \"type\": \"video\",\n                                \"title\": \"Node.js Tutorial\",\n                                \"author\": \"Mike Chen\",\n                                \"video_url\": \"https://www.youtube.com/embed/lplbwoq6ZTg\",\n                                \"description\": \"This video teaches you how to use Node.js for backend development\",\n                                \"duration\": \"5\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411d96bd07a77d6c06a443b\",\n                                \"category\": \"Node.js\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا الفيديو يعلمك كيفية استخدام Node.js لتطوير الخلفية\",\n                                \"title_tr\": \"درس Node.js\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411da17d07a77d6c06a4498\"\n                            }\n                        ],\n                        \"exercises\": [\n                            {\n                                \"_id\": \"6411d975d07a77d6c06a4440\",\n                                \"type\": \"exercise\",\n                                \"title\": \"Introduction to Python\",\n                                \"description\": \"This is an exercise on the introduction to python\",\n                                \"duration\": 10,\n                                \"date\": \"2023-03-15T14:41:13.796Z\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411d96bd07a77d6c06a443b\",\n                                \"order\": 1678891273796,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                                \"title_tr\": \"مقدمة إلى بايثون\",\n                                \"questions\": [\n                                    {\n                                        \"_id\": \"6411d97fd07a77d6c06a444a\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411d975d07a77d6c06a4440\",\n                                        \"question\": \"What is the difference between null and undefined in JavaScript?\",\n                                        \"correct_option\": \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                        \"options\": [\n                                            \"null is an assigned value, while undefined is not assigned\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                            \"null is an object, while undefined is a primitive value\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\"\n                                        ],\n                                        \"__v\": 26,\n                                        \"options_tr\": [\n                                            \"فارغ هو قيمة مسندة، بينما لم يتم تعيين غير محدد\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                            \"فارغ هو كائن، في حين أن القيمة البدائية غير المحددة\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\"\n                                        ],\n                                        \"correct_option_tr\": \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                        \"question_tr\": \"ما هو الفرق بين الفراغ وغير المحدد في جافا سكريب؟\",\n                                        \"id\": \"6411d97fd07a77d6c06a444a\"\n                                    },\n                                    {\n                                        \"_id\": \"6411d982d07a77d6c06a444f\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411d975d07a77d6c06a4440\",\n                                        \"question\": \"What is the difference between \\\"var\\\" and \\\"let\\\" in JavaScript?\",\n                                        \"correct_option\": \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\",\n                                        \"options\": [\n                                            \"There is no difference\",\n                                            \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\",\n                                            \" while variables declared with \\\"let\\\" are function-scoped\",\n                                            \"Variables declared with \\\"let\\\" are block-scoped\"\n                                        ],\n                                        \"__v\": 27,\n                                        \"options_tr\": [\n                                            \"لا يوجد فرق\",\n                                            \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\",\n                                            \" في حين أن المتغيرات المعلن عنها بـ \\\"حرف\\\" تكون ذات نطاق وظيفي\",\n                                            \"المتغيرات المعلن عنها بـ \\\"حروف\\\" يتم كتلة النطاق\"\n                                        ],\n                                        \"correct_option_tr\": \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\",\n                                        \"question_tr\": \"ما هو الفرق بين \\\"var\\\" و \\\"Le\\\" في جافاسكريب؟\",\n                                        \"id\": \"6411d982d07a77d6c06a444f\"\n                                    },\n                                    {\n                                        \"_id\": \"6411d985d07a77d6c06a4454\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411d975d07a77d6c06a4440\",\n                                        \"question\": \"What is the difference between null and undefined in JavaScript?\",\n                                        \"correct_option\": \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                        \"options\": [\n                                            \"null is an assigned value, while undefined is not assigned\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                            \"null is an object, while undefined is a primitive value\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\"\n                                        ],\n                                        \"__v\": 23,\n                                        \"options_tr\": [\n                                            \"فارغ هو قيمة مسندة، بينما لم يتم تعيين غير محدد\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                            \"فارغ هو كائن، في حين أن القيمة البدائية غير المحددة\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\"\n                                        ],\n                                        \"correct_option_tr\": \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                        \"question_tr\": \"ما هو الفرق بين الفراغ وغير المحدد في جافا سكريب؟\",\n                                        \"id\": \"6411d985d07a77d6c06a4454\"\n                                    },\n                                    {\n                                        \"_id\": \"6411d98ad07a77d6c06a4459\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411d975d07a77d6c06a4440\",\n                                        \"question\": \"What is the output of the following code? var x = 5; var y = 3; var z = x * y; console.log(z);\",\n                                        \"correct_option\": \"15\",\n                                        \"options\": [\n                                            \"15\",\n                                            \"15\",\n                                            \"15\",\n                                            \"15\"\n                                        ],\n                                        \"__v\": 26,\n                                        \"options_tr\": [\n                                            \"15\",\n                                            \"15\",\n                                            \"15\",\n                                            \"15\"\n                                        ],\n                                        \"correct_option_tr\": \"15\",\n                                        \"question_tr\": \"ما هو ناتج الرمز التالي؟ var x = 5؛ var y = 3؛ var z = x * ؛ console.log(z)؛\",\n                                        \"id\": \"6411d98ad07a77d6c06a4459\"\n                                    }\n                                ],\n                                \"id\": \"6411d975d07a77d6c06a4440\"\n                            },\n                            {\n                                \"_id\": \"6411d98ed07a77d6c06a445e\",\n                                \"type\": \"exercise\",\n                                \"title\": \"Introduction to Python\",\n                                \"description\": \"This is an exercise on the introduction to python\",\n                                \"duration\": 10,\n                                \"date\": \"2023-03-15T14:41:13.796Z\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411d96bd07a77d6c06a443b\",\n                                \"order\": 1678891273796,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                                \"title_tr\": \"مقدمة إلى بايثون\",\n                                \"questions\": [\n                                    {\n                                        \"_id\": \"6411d994d07a77d6c06a4468\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411d98ed07a77d6c06a445e\",\n                                        \"question\": \"What is the difference between null and undefined in JavaScript?\",\n                                        \"correct_option\": \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                        \"options\": [\n                                            \"null is an assigned value, while undefined is not assigned\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\"\n                                        ],\n                                        \"__v\": 24,\n                                        \"options_tr\": [\n                                            \"فارغ هو قيمة مسندة، بينما لم يتم تعيين غير محدد\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\"\n                                        ],\n                                        \"correct_option_tr\": \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                        \"question_tr\": \"ما هو الفرق بين الفراغ وغير المحدد في جافا سكريب؟\",\n                                        \"id\": \"6411d994d07a77d6c06a4468\"\n                                    },\n                                    {\n                                        \"_id\": \"6411d997d07a77d6c06a446d\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411d98ed07a77d6c06a445e\",\n                                        \"question\": \"What is the difference between \\\"var\\\" and \\\"let\\\" in JavaScript?\",\n                                        \"correct_option\": \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\",\n                                        \"options\": [\n                                            \"There is no difference\",\n                                            \"Variables declared with \\\"var\\\" are block-scoped\",\n                                            \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\",\n                                            \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\"\n                                        ],\n                                        \"__v\": 27,\n                                        \"options_tr\": [\n                                            \"لا يوجد فرق\",\n                                            \"المتغيرات المعلن عنها مع \\\"var\\\" هي مقياس الكتل\",\n                                            \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\",\n                                            \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\"\n                                        ],\n                                        \"correct_option_tr\": \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\",\n                                        \"question_tr\": \"ما هو الفرق بين \\\"var\\\" و \\\"Le\\\" في جافاسكريب؟\",\n                                        \"id\": \"6411d997d07a77d6c06a446d\"\n                                    },\n                                    {\n                                        \"_id\": \"6411d99bd07a77d6c06a4472\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411d98ed07a77d6c06a445e\",\n                                        \"question\": \"What is the difference between null and undefined in JavaScript?\",\n                                        \"correct_option\": \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                        \"options\": [\n                                            \"null is an assigned value, while undefined is not assigned\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\",\n                                            \"null is an object, while undefined is a primitive value\",\n                                            \"null is an assigned value, while undefined means a variable has been declared but has not yet been assigned a value\"\n                                        ],\n                                        \"__v\": 23,\n                                        \"options_tr\": [\n                                            \"فارغ هو قيمة مسندة، بينما لم يتم تعيين غير محدد\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                            \"فارغ هو كائن، في حين أن القيمة البدائية غير المحددة\",\n                                            \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\"\n                                        ],\n                                        \"correct_option_tr\": \"فارغ هو قيمة مسندة، في حين أنه تم الإعلان عن متغير غير غير محدد ولكن لم يتم بعد إسناد قيمة له\",\n                                        \"question_tr\": \"ما هو الفرق بين الفراغ وغير المحدد في جافا سكريب؟\",\n                                        \"id\": \"6411d99bd07a77d6c06a4472\"\n                                    },\n                                    {\n                                        \"_id\": \"6411da7bd07a77d6c06a44bd\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411d98ed07a77d6c06a445e\",\n                                        \"question\": \"How do you declare a variable in JavaScript?\",\n                                        \"correct_option\": \"all of the above\",\n                                        \"options\": [\n                                            \"all of the above\",\n                                            \"all of the above\",\n                                            \"const\",\n                                            \"all of the above\"\n                                        ],\n                                        \"__v\": 27,\n                                        \"options_tr\": [\n                                            \"كل ما ورد أعلاه\",\n                                            \"كل ما ورد أعلاه\",\n                                            \"ملتقى\",\n                                            \"كل ما ورد أعلاه\"\n                                        ],\n                                        \"correct_option_tr\": \"كل ما ورد أعلاه\",\n                                        \"question_tr\": \"كيف يمكنك الإعلان عن متغير في جافا سكريب؟\",\n                                        \"id\": \"6411da7bd07a77d6c06a44bd\"\n                                    }\n                                ],\n                                \"id\": \"6411d98ed07a77d6c06a445e\"\n                            }\n                        ],\n                        \"textmaterials\": [\n                            {\n                                \"_id\": \"6411d9bcd07a77d6c06a4477\",\n                                \"type\": \"slide\",\n                                \"title\": \"Python for NLP.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411d96bd07a77d6c06a443b\",\n                                \"order\": 1678891273798,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678891426/course_6411d957d07a77d6c06a4437/coursesection_6411d96bd07a77d6c06a443b/textmaterial_6411d9bcd07a77d6c06a4477_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"Python لـ NLP.pdf\",\n                                \"downloadable_resources\": [\n                                    {\n                                        \"_id\": \"642ebfd0d36a9cee6086ed73\",\n                                        \"resource_type\": \"document\",\n                                        \"title\": \"Open science practices\",\n                                        \"description\": \"This resource gives more details on open science practices\",\n                                        \"course\": \"6411d957d07a77d6c06a4437\",\n                                        \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n                                        \"order\": 1680785179160,\n                                        \"isAvailable\": true,\n                                        \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1680785337/courses/undefined/downloadable_resources/642ebfd0d36a9cee6086ed73_RICHIE%20MOLUNO%20___%20RESUME%20%284%29.pdf.pdf\",\n                                        \"__v\": 0,\n                                        \"description_tr\": \"يقدم هذا المورد المزيد من التفاصيل عن الممارسات العلمية المفتوحة\",\n                                        \"title_tr\": \"الممارسات العلمية المفتوحة\",\n                                        \"id\": \"642ebfd0d36a9cee6086ed73\"\n                                    },\n                                    {\n                                        \"_id\": \"642ec135865b0244d60863e4\",\n                                        \"resource_type\": \"video\",\n                                        \"title\": \"More info on open data\",\n                                        \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                                        \"description\": \"Gives more detials on what opendata is about\",\n                                        \"course\": \"6411d957d07a77d6c06a4437\",\n                                        \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n                                        \"order\": 1680785659539,\n                                        \"isAvailable\": true,\n                                        \"__v\": 0,\n                                        \"description_tr\": \"إعطاء المزيد من الشروط على ما يدور حول opendata\",\n                                        \"title_tr\": \"مزيد من المعلومات عن البيانات المفتوحة\",\n                                        \"id\": \"642ec135865b0244d60863e4\"\n                                    },\n                                    {\n                                        \"_id\": \"642ec13a865b0244d60863e9\",\n                                        \"resource_type\": \"video\",\n                                        \"title\": \"More info on open data\",\n                                        \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                                        \"description\": \"Gives more detials on what opendata is about\",\n                                        \"course\": \"6411d957d07a77d6c06a4437\",\n                                        \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n                                        \"order\": 1680785659539,\n                                        \"isAvailable\": true,\n                                        \"__v\": 0,\n                                        \"description_tr\": \"إعطاء المزيد من الشروط على ما يدور حول opendata\",\n                                        \"title_tr\": \"مزيد من المعلومات عن البيانات المفتوحة\",\n                                        \"id\": \"642ec13a865b0244d60863e9\"\n                                    },\n                                    {\n                                        \"_id\": \"642ec1f7865b0244d6086418\",\n                                        \"resource_type\": \"video\",\n                                        \"title\": \"More info on open data\",\n                                        \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                                        \"description\": \"Gives more detials on what opendata is about\",\n                                        \"course\": \"6411d957d07a77d6c06a4437\",\n                                        \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n                                        \"order\": 1680785659539,\n                                        \"isAvailable\": true,\n                                        \"__v\": 0,\n                                        \"description_tr\": \"إعطاء المزيد من الشروط على ما يدور حول opendata\",\n                                        \"title_tr\": \"مزيد من المعلومات عن البيانات المفتوحة\",\n                                        \"id\": \"642ec1f7865b0244d6086418\"\n                                    }\n                                ],\n                                \"id\": \"6411d9bcd07a77d6c06a4477\"\n                            },\n                            {\n                                \"_id\": \"6411d9cfd07a77d6c06a447d\",\n                                \"type\": \"slide\",\n                                \"title\": \"Referencing.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411d96bd07a77d6c06a443b\",\n                                \"order\": 1678891273798,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678891444/course_6411d957d07a77d6c06a4437/coursesection_6411d96bd07a77d6c06a443b/textmaterial_6411d9cfd07a77d6c06a447d_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"المرجع.pdf\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411d9cfd07a77d6c06a447d\"\n                            }\n                        ],\n                        \"id\": \"6411d96bd07a77d6c06a443b\"\n                    },\n                    {\n                        \"_id\": \"6411da4dd07a77d6c06a44a6\",\n                        \"title\": \"Advanced\",\n                        \"course\": \"6411d957d07a77d6c06a4437\",\n                        \"order\": 1678891273798,\n                        \"contents\": [],\n                        \"__v\": 0,\n                        \"videos\": [\n                            {\n                                \"_id\": \"6411da71d07a77d6c06a44b5\",\n                                \"type\": \"video\",\n                                \"title\": \"React vs Angular\",\n                                \"author\": \"Bob Johnson\",\n                                \"video_url\": \"https://www.youtube.com/embed/LybOHJfqffA\",\n                                \"description\": \"This video compares React and Angular frameworks\",\n                                \"duration\": \"1\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411da4dd07a77d6c06a44a6\",\n                                \"category\": \"Frontend\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"يقارن هذا الفيديو بين أطر React و Angle\",\n                                \"title_tr\": \"React ضد الزاوية\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411da71d07a77d6c06a44b5\"\n                            },\n                            {\n                                \"_id\": \"6411da85d07a77d6c06a44c2\",\n                                \"type\": \"video\",\n                                \"title\": \"React vs Angular\",\n                                \"author\": \"Bob Johnson\",\n                                \"video_url\": \"https://www.youtube.com/embed/LybOHJfqffA\",\n                                \"description\": \"This video compares React and Angular frameworks\",\n                                \"duration\": \"1\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411da4dd07a77d6c06a44a6\",\n                                \"category\": \"Frontend\",\n                                \"order\": 1678891273797,\n                                \"isAvailable\": true,\n                                \"__v\": 0,\n                                \"description_tr\": \"يقارن هذا الفيديو بين أطر React و Angle\",\n                                \"title_tr\": \"React ضد الزاوية\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411da85d07a77d6c06a44c2\"\n                            }\n                        ],\n                        \"exercises\": [\n                            {\n                                \"_id\": \"6411da60d07a77d6c06a44ab\",\n                                \"type\": \"exercise\",\n                                \"title\": \"Introduction to Python\",\n                                \"description\": \"This is an exercise on the introduction to python\",\n                                \"duration\": 10,\n                                \"date\": \"2023-03-15T14:41:13.796Z\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411da4dd07a77d6c06a44a6\",\n                                \"order\": 1678891273796,\n                                \"__v\": 0,\n                                \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                                \"title_tr\": \"مقدمة إلى بايثون\",\n                                \"questions\": [\n                                    {\n                                        \"_id\": \"6411da8dd07a77d6c06a44ca\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411da60d07a77d6c06a44ab\",\n                                        \"question\": \"What is the difference between \\\"var\\\" and \\\"let\\\" in JavaScript?\",\n                                        \"correct_option\": \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\",\n                                        \"options\": [\n                                            \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\",\n                                            \"Variables declared with \\\"var\\\" are block-scoped\",\n                                            \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\",\n                                            \"Variables declared with \\\"let\\\" are block-scoped, while variables declared with \\\"var\\\" are function-scoped\"\n                                        ],\n                                        \"__v\": 26,\n                                        \"options_tr\": [\n                                            \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\",\n                                            \"المتغيرات المعلن عنها مع \\\"var\\\" هي مقياس الكتل\",\n                                            \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\",\n                                            \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\"\n                                        ],\n                                        \"correct_option_tr\": \"المتغيرات المعلن عنها بـ \\\"حرف\\\" هي مقياس الكتل، في حين أن المتغيرات المعلن عنها بـ \\\"var\\\" هي ذات نطاق وظيفي\",\n                                        \"question_tr\": \"ما هو الفرق بين \\\"var\\\" و \\\"Le\\\" في جافاسكريب؟\",\n                                        \"id\": \"6411da8dd07a77d6c06a44ca\"\n                                    },\n                                    {\n                                        \"_id\": \"6411da9bd07a77d6c06a44cf\",\n                                        \"type\": \"question\",\n                                        \"exercise\": \"6411da60d07a77d6c06a44ab\",\n                                        \"question\": \"What is the output of the following code? var arr = [1, 2, 3]; console.log(arr.length);\",\n                                        \"correct_option\": \"3\",\n                                        \"options\": [\n                                            \"0\",\n                                            \"3\",\n                                            \"3\",\n                                            \"3\"\n                                        ],\n                                        \"__v\": 25,\n                                        \"options_tr\": [\n                                            \"0\",\n                                            \"3\",\n                                            \"3\",\n                                            \"3\"\n                                        ],\n                                        \"correct_option_tr\": \"3\",\n                                        \"question_tr\": \"ما هو إخراج الكود التالي؟ var arr = [1, 2, 3]; console.log(arr.length)؛\",\n                                        \"id\": \"6411da9bd07a77d6c06a44cf\"\n                                    }\n                                ],\n                                \"id\": \"6411da60d07a77d6c06a44ab\"\n                            }\n                        ],\n                        \"textmaterials\": [\n                            {\n                                \"_id\": \"6411daabd07a77d6c06a44d3\",\n                                \"type\": \"slide\",\n                                \"title\": \"Python for NLP.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411da4dd07a77d6c06a44a6\",\n                                \"order\": 1678891273798,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678891664/course_6411d957d07a77d6c06a4437/coursesection_6411da4dd07a77d6c06a44a6/textmaterial_6411daabd07a77d6c06a44d3_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"Python لـ NLP.pdf\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411daabd07a77d6c06a44d3\"\n                            },\n                            {\n                                \"_id\": \"6411dab7d07a77d6c06a44d9\",\n                                \"type\": \"slide\",\n                                \"title\": \"Open data.pdf\",\n                                \"description\": \"fasdfasdf\",\n                                \"course\": \"6411d957d07a77d6c06a4437\",\n                                \"course_section\": \"6411da4dd07a77d6c06a44a6\",\n                                \"order\": 1678891273798,\n                                \"isAvailable\": true,\n                                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678891675/course_6411d957d07a77d6c06a4437/coursesection_6411da4dd07a77d6c06a44a6/textmaterial_6411dab7d07a77d6c06a44d9_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                                \"__v\": 0,\n                                \"description_tr\": \"فاسدف\",\n                                \"title_tr\": \"فتح البيانات.pdf\",\n                                \"downloadable_resources\": [],\n                                \"id\": \"6411dab7d07a77d6c06a44d9\"\n                            }\n                        ],\n                        \"id\": \"6411da4dd07a77d6c06a44a6\"\n                    }\n                ],\n                \"id\": \"6411d957d07a77d6c06a4437\"\n            }\n        ]\n    }\n}"}],"_postman_id":"64ca96b8-cf77-4e54-80a7-c59807e73b01"},{"name":"Get course data","event":[{"listen":"test","script":{"id":"e47eda1f-84db-47ff-945d-9abf587e4ac5","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const course = response.data?.course\r","    const course_section = course.course_sections[0]\r","    if (course_section) {\r","        pm.collectionVariables.set(\"courseSectionId\", course_section._id)\r","\r","        const text_material = course_section.textmaterials\r","        if (text_material){\r","            pm.collectionVariables.set('textmaterialId', text_material[0]._id)\r","        }\r","        \r","        const video = course_section.videos\r","        if (video){\r","            pm.collectionVariables.set('videoId', video[0]._id)\r","        }\r","    }\r","}"],"type":"text/javascript"}}],"id":"9ae13a2f-0340-490f-bc37-1d7499e12760","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/:id?lang=ar","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[{"key":"lang","value":"ar"}],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"57fa1843-7d48-48b7-82a2-0acbeafb21ce","name":"Error - Missing param in request params","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course",":id"],"variable":[{"key":"id","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-n7ez5oYM62SaG1hKfUSP6VNHtmI\""},{"key":"Set-Cookie","value":"connect.sid=s%3ANbvUTymISpX1Oq2ALGnSr5sylslHhF30.6q7%2FvKGnLrM202%2BlFJ0BW8K3yP%2FSJRwyvA6rUPnCX0M; Path=/; HttpOnly"},{"key":"Date","value":"Tue, 28 Feb 2023 13:40:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing param `id` in request params\"\n}"},{"id":"bc8081c3-0a7d-4542-8f83-f6a924f1a606","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course",":id"],"variable":[{"id":"dd76dc6d-6007-4d6b-be46-c27f61949844","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"9148"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 10:47:20 GMT"},{"key":"Etag","value":"W/\"23bc-jjyv8Df0hSeVA+FfCfuh0CXdl/M\""},{"key":"Ngrok-Trace-Id","value":"03aca6ba288768d0adde493d5b2f73e6"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Success\",\n        \"course\": {\n            \"_id\": \"6411dbb7d07a77d6c06a44f3\",\n            \"author\": \"John Doe\",\n            \"title\": \"JavaScript for Beginners\",\n            \"description\": \"This course teaches you the basics of JavaScript\",\n            \"videos\": [],\n            \"enrolled_users\": [\n                \"63d4889852d1f1ff958237a4\",\n                \"6409a0c9d10ec4967211a77a\",\n                \"6407b8ca30fdfbd0995625c4\",\n                \"641d7ee06b40e40bc62e8d57\",\n                \"64205b5e4ae84c9a66b1ba1c\",\n                \"6420d8aef0e8565672c0d3b4\",\n                \"640794fa10542e15960a7a45\",\n                \"642a7fc9414aa266c3f53d48\",\n                \"642acac6a9754a221eea1955\",\n                \"6409a024d10ec4967211a76d\",\n                \"642bff0c286b1e0b53d428df\"\n            ],\n            \"isAvailable\": true,\n            \"preview_image\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1679256528/courses/preview_images/cloud_bnxpfd.png\",\n            \"__v\": 0,\n            \"description_tr\": \"هذه الدورة تعلمكم أساسيات جافا سكريبت\",\n            \"title_tr\": \"جافا سكريبت للمبتدئين\",\n            \"course_sections\": [\n                {\n                    \"_id\": \"6411dbc4d07a77d6c06a44f7\",\n                    \"title\": \"Basics\",\n                    \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                    \"order\": 1678891273798,\n                    \"contents\": [],\n                    \"__v\": 0,\n                    \"videos\": [\n                        {\n                            \"_id\": \"6411dbf5d07a77d6c06a4526\",\n                            \"type\": \"video\",\n                            \"title\": \"Python for Beginners\",\n                            \"author\": \"Jane Smith\",\n                            \"video_url\": \"https://www.youtube.com/embed/10u1_CzdmQs\",\n                            \"description\": \"This is a video about Python programming for beginners\",\n                            \"duration\": \"4\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                            \"category\": \"Python\",\n                            \"order\": 1678891273797,\n                            \"isAvailable\": true,\n                            \"__v\": 0,\n                            \"description_tr\": \"هذا فيديو حول برمجة بايثون للمبتدئين\",\n                            \"title_tr\": \"بايثون للمبتدئين\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dbf5d07a77d6c06a4526\"\n                        },\n                        {\n                            \"_id\": \"6411dbf9d07a77d6c06a452e\",\n                            \"type\": \"video\",\n                            \"title\": \"Creating Responsive Websites\",\n                            \"author\": \"Sarah Kim\",\n                            \"video_url\": \"https://www.youtube.com/embed/Rvs4d5JzCPo\",\n                            \"description\": \"This video shows you how to create responsive websites using CSS\",\n                            \"duration\": \"2\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                            \"category\": \"Web Development\",\n                            \"order\": 1678891273797,\n                            \"isAvailable\": true,\n                            \"__v\": 0,\n                            \"description_tr\": \"يظهر لك هذا الفيديو كيفية إنشاء مواقع مستجيبة باستخدام CSS\",\n                            \"title_tr\": \"إنشاء مواقع استجابة\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dbf9d07a77d6c06a452e\"\n                        },\n                        {\n                            \"_id\": \"6411dc08d07a77d6c06a453c\",\n                            \"type\": \"video\",\n                            \"title\": \"React vs Angular\",\n                            \"author\": \"Bob Johnson\",\n                            \"video_url\": \"https://www.youtube.com/embed/LybOHJfqffA\",\n                            \"description\": \"This video compares React and Angular frameworks\",\n                            \"duration\": \"9\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                            \"category\": \"Frontend\",\n                            \"order\": 1678891273797,\n                            \"isAvailable\": true,\n                            \"__v\": 0,\n                            \"description_tr\": \"يقارن هذا الفيديو بين أطر React و Angle\",\n                            \"title_tr\": \"React ضد الزاوية\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dc08d07a77d6c06a453c\"\n                        }\n                    ],\n                    \"exercises\": [\n                        {\n                            \"_id\": \"6411dbced07a77d6c06a44fc\",\n                            \"type\": \"exercise\",\n                            \"title\": \"Introduction to Python\",\n                            \"description\": \"This is an exercise on the introduction to python\",\n                            \"duration\": 10,\n                            \"date\": \"2023-03-15T14:41:13.796Z\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                            \"order\": 1678891273796,\n                            \"__v\": 0,\n                            \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                            \"title_tr\": \"مقدمة إلى بايثون\",\n                            \"questions\": [\n                                {\n                                    \"_id\": \"6411dbd8d07a77d6c06a4506\",\n                                    \"type\": \"question\",\n                                    \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                    \"question\": \"What is the difference between null and undefined in JavaScript?\",\n                                    \"correct_option\": \"null is an assigned value, while undefined is not assigned\",\n                                    \"options\": [\n                                        \"null is an assigned value\",\n                                        \" while undefined is not assigned\",\n                                        \"undefined is an assigned value\",\n                                        \" while null is not assigned\"\n                                    ],\n                                    \"__v\": 29,\n                                    \"options_tr\": [\n                                        \"فارغ هو قيمة مسندة\",\n                                        \" أثناء عدم تعيين غير معرف\",\n                                        \"غير معرف قيمة مسندة\",\n                                        \" بينما لم يتم تعيين فارغ\"\n                                    ],\n                                    \"correct_option_tr\": \"فارغ هو قيمة مسندة، بينما لم يتم تعيين غير محدد\",\n                                    \"question_tr\": \"ما هو الفرق بين الفراغ وغير المحدد في جافا سكريب؟\",\n                                    \"id\": \"6411dbd8d07a77d6c06a4506\"\n                                },\n                                {\n                                    \"_id\": \"6411dbdbd07a77d6c06a450b\",\n                                    \"type\": \"question\",\n                                    \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                    \"question\": \"What is the difference between == and === in JavaScript?\",\n                                    \"correct_option\": \"== compares values, while === compares values and types\",\n                                    \"options\": [\n                                        \"== compares values and types, while === compares values\",\n                                        \"== compares values, while === compares values and types\",\n                                        \"== compares values, while === compares values and types\",\n                                        \"== and === are not used in JavaScript\"\n                                    ],\n                                    \"__v\": 25,\n                                    \"options_tr\": [\n                                        \"== مقارنة القيم والأنواع ، في حين == مقارنة القيم\",\n                                        \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                        \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                        \"== و === لا تستخدم في JavaScript\"\n                                    ],\n                                    \"correct_option_tr\": \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                    \"question_tr\": \"ما هو الفرق بين == و === في جافا سكريب؟\",\n                                    \"id\": \"6411dbdbd07a77d6c06a450b\"\n                                },\n                                {\n                                    \"_id\": \"6411dbe2d07a77d6c06a4510\",\n                                    \"type\": \"question\",\n                                    \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                    \"question\": \"What is the difference between == and === in JavaScript?\",\n                                    \"correct_option\": \"== compares values, while === compares values and types\",\n                                    \"options\": [\n                                        \"== compares values and types, while === compares values\",\n                                        \"== compares values, while === compares values and types\",\n                                        \"== and === are deprecated\",\n                                        \"== compares values, while === compares values and types\"\n                                    ],\n                                    \"__v\": 23,\n                                    \"options_tr\": [\n                                        \"== مقارنة القيم والأنواع ، في حين == مقارنة القيم\",\n                                        \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                        \"== و === مهمل\",\n                                        \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\"\n                                    ],\n                                    \"correct_option_tr\": \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                    \"question_tr\": \"ما هو الفرق بين == و === في جافا سكريب؟\",\n                                    \"id\": \"6411dbe2d07a77d6c06a4510\"\n                                },\n                                {\n                                    \"_id\": \"6411dbe7d07a77d6c06a4515\",\n                                    \"type\": \"question\",\n                                    \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                    \"question\": \"What is the difference between == and === in JavaScript?\",\n                                    \"correct_option\": \"== compares values, while === compares values and types\",\n                                    \"options\": [\n                                        \"== compares values and types, while === compares values\",\n                                        \"== compares values, while === compares values and types\",\n                                        \"== compares values, while === compares values and types\",\n                                        \"== and === are not used in JavaScript\"\n                                    ],\n                                    \"__v\": 23,\n                                    \"options_tr\": [\n                                        \"== مقارنة القيم والأنواع ، في حين == مقارنة القيم\",\n                                        \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                        \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                        \"== و === لا تستخدم في JavaScript\"\n                                    ],\n                                    \"correct_option_tr\": \"== مقارنة القيم، في حين == مقارنة القيم والأنواع\",\n                                    \"question_tr\": \"ما هو الفرق بين == و === في جافا سكريب؟\",\n                                    \"id\": \"6411dbe7d07a77d6c06a4515\"\n                                },\n                                {\n                                    \"_id\": \"642a0691478e325985170d68\",\n                                    \"exercise\": \"6411dbced07a77d6c06a44fc\",\n                                    \"question\": \"What is the color of the sky\",\n                                    \"correct_option\": \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                    \"options\": [\n                                        \"colorless\",\n                                        \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                        \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                        \"purple\"\n                                    ],\n                                    \"__v\": 3,\n                                    \"options_tr\": [\n                                        \"بلا ألوان\",\n                                        \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                        \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                        \"أرجواني\"\n                                    ],\n                                    \"type\": \"question\",\n                                    \"correct_option_tr\": \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                    \"question_tr\": \"ما هو لون السماء\",\n                                    \"id\": \"642a0691478e325985170d68\"\n                                }\n                            ],\n                            \"id\": \"6411dbced07a77d6c06a44fc\"\n                        },\n                        {\n                            \"_id\": \"641ee2c3818b0e8c297a4c17\",\n                            \"type\": \"exercise\",\n                            \"title\": \"Introduction to Python\",\n                            \"description\": \"This is an exercise on the introduction to python\",\n                            \"duration\": 10,\n                            \"date\": \"2023-03-25T12:01:00.908Z\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                            \"order\": 1679745660908,\n                            \"__v\": 0,\n                            \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                            \"title_tr\": \"مقدمة إلى بايثون\",\n                            \"questions\": [\n                                {\n                                    \"_id\": \"641ee2c8818b0e8c297a4c1f\",\n                                    \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                    \"question\": \"What is the color of the sky\",\n                                    \"correct_option\": \"blue\",\n                                    \"options\": [\n                                        \"blue\",\n                                        \"blue\",\n                                        \"pink\",\n                                        \"purple\"\n                                    ],\n                                    \"__v\": 3,\n                                    \"options_tr\": [\n                                        \"أزرق\",\n                                        \"أزرق\",\n                                        \"وردي\",\n                                        \"أرجواني\"\n                                    ],\n                                    \"type\": \"question\",\n                                    \"correct_option_tr\": \"أزرق\",\n                                    \"question_tr\": \"ما هو لون السماء\",\n                                    \"id\": \"641ee2c8818b0e8c297a4c1f\"\n                                },\n                                {\n                                    \"_id\": \"641ee2cb818b0e8c297a4c23\",\n                                    \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                    \"question\": \"What is the color of the sky\",\n                                    \"correct_option\": \"blue\",\n                                    \"options\": [\n                                        \"colorless\",\n                                        \"blue\",\n                                        \"pink\",\n                                        \"blue\"\n                                    ],\n                                    \"__v\": 3,\n                                    \"options_tr\": [\n                                        \"بلا ألوان\",\n                                        \"أزرق\",\n                                        \"وردي\",\n                                        \"أزرق\"\n                                    ],\n                                    \"type\": \"question\",\n                                    \"correct_option_tr\": \"أزرق\",\n                                    \"question_tr\": \"ما هو لون السماء\",\n                                    \"id\": \"641ee2cb818b0e8c297a4c23\"\n                                },\n                                {\n                                    \"_id\": \"641ee2ce818b0e8c297a4c27\",\n                                    \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                    \"question\": \"What is the color of the sky\",\n                                    \"correct_option\": \"blue\",\n                                    \"options\": [\n                                        \"blue\",\n                                        \"blue\",\n                                        \"pink\",\n                                        \"purple\"\n                                    ],\n                                    \"__v\": 3,\n                                    \"options_tr\": [\n                                        \"أزرق\",\n                                        \"أزرق\",\n                                        \"وردي\",\n                                        \"أرجواني\"\n                                    ],\n                                    \"type\": \"question\",\n                                    \"correct_option_tr\": \"أزرق\",\n                                    \"question_tr\": \"ما هو لون السماء\",\n                                    \"id\": \"641ee2ce818b0e8c297a4c27\"\n                                },\n                                {\n                                    \"_id\": \"641ee2d0818b0e8c297a4c2b\",\n                                    \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                    \"question\": \"What is the color of the sky\",\n                                    \"correct_option\": \"blue\",\n                                    \"options\": [\n                                        \"blue\",\n                                        \"blue\",\n                                        \"pink\",\n                                        \"purple\"\n                                    ],\n                                    \"__v\": 3,\n                                    \"options_tr\": [\n                                        \"أزرق\",\n                                        \"أزرق\",\n                                        \"وردي\",\n                                        \"أرجواني\"\n                                    ],\n                                    \"type\": \"question\",\n                                    \"correct_option_tr\": \"أزرق\",\n                                    \"question_tr\": \"ما هو لون السماء\",\n                                    \"id\": \"641ee2d0818b0e8c297a4c2b\"\n                                },\n                                {\n                                    \"_id\": \"641ee2d1818b0e8c297a4c2f\",\n                                    \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                                    \"question\": \"What is the color of the sky\",\n                                    \"correct_option\": \"blue\",\n                                    \"options\": [\n                                        \"colorless\",\n                                        \"blue\",\n                                        \"pink\",\n                                        \"blue\"\n                                    ],\n                                    \"__v\": 3,\n                                    \"options_tr\": [\n                                        \"بلا ألوان\",\n                                        \"أزرق\",\n                                        \"وردي\",\n                                        \"أزرق\"\n                                    ],\n                                    \"type\": \"question\",\n                                    \"correct_option_tr\": \"أزرق\",\n                                    \"question_tr\": \"ما هو لون السماء\",\n                                    \"id\": \"641ee2d1818b0e8c297a4c2f\"\n                                }\n                            ],\n                            \"id\": \"641ee2c3818b0e8c297a4c17\"\n                        }\n                    ],\n                    \"textmaterials\": [\n                        {\n                            \"_id\": \"6411dbebd07a77d6c06a4519\",\n                            \"type\": \"slide\",\n                            \"title\": \"Open data.pdf\",\n                            \"description\": \"fasdfasdf\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                            \"order\": 1678891273798,\n                            \"isAvailable\": true,\n                            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678891984/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dbc4d07a77d6c06a44f7/textmaterial_6411dbebd07a77d6c06a4519_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                            \"__v\": 0,\n                            \"description_tr\": \"فاسدف\",\n                            \"title_tr\": \"فتح البيانات.pdf\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dbebd07a77d6c06a4519\"\n                        },\n                        {\n                            \"_id\": \"6411dbf1d07a77d6c06a451f\",\n                            \"type\": \"slide\",\n                            \"title\": \"Python for Data Science.pdf\",\n                            \"description\": \"fasdfasdf\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                            \"order\": 1678891273798,\n                            \"isAvailable\": true,\n                            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678891990/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dbc4d07a77d6c06a44f7/textmaterial_6411dbf1d07a77d6c06a451f_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                            \"__v\": 0,\n                            \"description_tr\": \"فاسدف\",\n                            \"title_tr\": \"Python for Data Science.pdf\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dbf1d07a77d6c06a451f\"\n                        },\n                        {\n                            \"_id\": \"6411dc01d07a77d6c06a4535\",\n                            \"type\": \"slide\",\n                            \"title\": \"OpenCV.pdf\",\n                            \"description\": \"fasdfasdf\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                            \"order\": 1678891273798,\n                            \"isAvailable\": true,\n                            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678892006/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dbc4d07a77d6c06a44f7/textmaterial_6411dc01d07a77d6c06a4535_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                            \"__v\": 0,\n                            \"description_tr\": \"فاسدف\",\n                            \"title_tr\": \"OpenCV.pdf\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dc01d07a77d6c06a4535\"\n                        }\n                    ],\n                    \"id\": \"6411dbc4d07a77d6c06a44f7\"\n                },\n                {\n                    \"_id\": \"6411dc27d07a77d6c06a454a\",\n                    \"title\": \"Basics\",\n                    \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                    \"order\": 1678891273798,\n                    \"contents\": [],\n                    \"__v\": 0,\n                    \"videos\": [\n                        {\n                            \"_id\": \"6411dc38d07a77d6c06a455f\",\n                            \"type\": \"video\",\n                            \"title\": \"Data Science for Beginners\",\n                            \"author\": \"Emily Wong\",\n                            \"video_url\": \"https://www.youtube.com/embed/VlWA7vygULcE\",\n                            \"description\": \"This is a video about data science for beginners\",\n                            \"duration\": \"1\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                            \"category\": \"Data Science\",\n                            \"order\": 1678891273797,\n                            \"isAvailable\": true,\n                            \"__v\": 0,\n                            \"description_tr\": \"هذا فيديو حول علم البيانات للمبتدئين\",\n                            \"title_tr\": \"علم البيانات للمبتدئين\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dc38d07a77d6c06a455f\"\n                        },\n                        {\n                            \"_id\": \"6411dc3ed07a77d6c06a4567\",\n                            \"type\": \"video\",\n                            \"title\": \"Creating Responsive Websites\",\n                            \"author\": \"Sarah Kim\",\n                            \"video_url\": \"https://www.youtube.com/embed/Rvs4d5JzCPo\",\n                            \"description\": \"This video shows you how to create responsive websites using CSS\",\n                            \"duration\": \"9\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                            \"category\": \"Web Development\",\n                            \"order\": 1678891273797,\n                            \"isAvailable\": true,\n                            \"__v\": 0,\n                            \"description_tr\": \"يظهر لك هذا الفيديو كيفية إنشاء مواقع مستجيبة باستخدام CSS\",\n                            \"title_tr\": \"إنشاء مواقع استجابة\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dc3ed07a77d6c06a4567\"\n                        },\n                        {\n                            \"_id\": \"6411dc43d07a77d6c06a456f\",\n                            \"type\": \"video\",\n                            \"title\": \"How to Build a Chatbot\",\n                            \"author\": \"David Wang\",\n                            \"video_url\": \"https://www.youtube.com/embed/AMliNkrJIaQ\",\n                            \"description\": \"This video teaches you how to build a chatbot using Python\",\n                            \"duration\": \"9\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                            \"category\": \"Artificial Intelligence\",\n                            \"order\": 1678891273797,\n                            \"isAvailable\": true,\n                            \"__v\": 0,\n                            \"description_tr\": \"هذا الفيديو يعلمك كيفية بناء روبوت الدردشة باستخدام بايثون\",\n                            \"title_tr\": \"كيفية بناء روبوت الدردشة\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dc43d07a77d6c06a456f\"\n                        },\n                        {\n                            \"_id\": \"6411dc4fd07a77d6c06a457c\",\n                            \"type\": \"video\",\n                            \"title\": \"Creating Responsive Websites\",\n                            \"author\": \"Sarah Kim\",\n                            \"video_url\": \"https://www.youtube.com/embed/Rvs4d5JzCPo\",\n                            \"description\": \"This video shows you how to create responsive websites using CSS\",\n                            \"duration\": \"5\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                            \"category\": \"Web Development\",\n                            \"order\": 1678891273797,\n                            \"isAvailable\": true,\n                            \"__v\": 0,\n                            \"description_tr\": \"يظهر لك هذا الفيديو كيفية إنشاء مواقع مستجيبة باستخدام CSS\",\n                            \"title_tr\": \"إنشاء مواقع استجابة\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dc4fd07a77d6c06a457c\"\n                        }\n                    ],\n                    \"exercises\": [\n                        {\n                            \"_id\": \"6411dc32d07a77d6c06a4555\",\n                            \"type\": \"exercise\",\n                            \"title\": \"Introduction to Python\",\n                            \"description\": \"This is an exercise on the introduction to python\",\n                            \"duration\": 10,\n                            \"date\": \"2023-03-15T14:41:13.796Z\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                            \"order\": 1678891273796,\n                            \"__v\": 0,\n                            \"description_tr\": \"هذا تمرين على مقدمة بايثون\",\n                            \"title_tr\": \"مقدمة إلى بايثون\",\n                            \"questions\": [\n                                {\n                                    \"_id\": \"6411dc4ad07a77d6c06a4577\",\n                                    \"type\": \"question\",\n                                    \"exercise\": \"6411dc32d07a77d6c06a4555\",\n                                    \"question\": \"What is a closure in JavaScript?\",\n                                    \"correct_option\": \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                    \"options\": [\n                                        \"A closure is an object that holds primitive values\",\n                                        \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                        \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                                        \"A closure is a function that has access to global variables\"\n                                    ],\n                                    \"__v\": 23,\n                                    \"options_tr\": [\n                                        \"الإغلاق هو جسم يحتوي على قيم بدائية\",\n                                        \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                        \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                        \"الإغلاق هو وظيفة لها إمكانية الوصول إلى المتغيرات العالمية\"\n                                    ],\n                                    \"correct_option_tr\": \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                                    \"question_tr\": \"ما هو الإغلاق في جافا سكريب؟\",\n                                    \"id\": \"6411dc4ad07a77d6c06a4577\"\n                                },\n                                {\n                                    \"_id\": \"6411dc58d07a77d6c06a4584\",\n                                    \"type\": \"question\",\n                                    \"exercise\": \"6411dc32d07a77d6c06a4555\",\n                                    \"question\": \"How do you check if a variable is an array in JavaScript?\",\n                                    \"correct_option\": \"Array.isArray()\",\n                                    \"options\": [\n                                        \"Array.isArray()\",\n                                        \"Array.isArray()\",\n                                        \"instanceof\",\n                                        \"all of the above\"\n                                    ],\n                                    \"__v\": 25,\n                                    \"options_tr\": [\n                                        \"Array.isArray()\",\n                                        \"Array.isArray()\",\n                                        \"مثال\",\n                                        \"كل ما ورد أعلاه\"\n                                    ],\n                                    \"correct_option_tr\": \"Array.isArray()\",\n                                    \"question_tr\": \"كيف يمكنك التحقق مما إذا كان المتغير عبارة عن مصفوفة في جافا سكريب؟\",\n                                    \"id\": \"6411dc58d07a77d6c06a4584\"\n                                }\n                            ],\n                            \"id\": \"6411dc32d07a77d6c06a4555\"\n                        }\n                    ],\n                    \"textmaterials\": [\n                        {\n                            \"_id\": \"6411dc2fd07a77d6c06a454e\",\n                            \"type\": \"slide\",\n                            \"title\": \"Open data.pdf\",\n                            \"description\": \"fasdfasdf\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                            \"order\": 1678891273798,\n                            \"isAvailable\": true,\n                            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678892052/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dc27d07a77d6c06a454a/textmaterial_6411dc2fd07a77d6c06a454e_RICHIE%20MOLUNO%20___%20RESUME%20%283%29.pdf.pdf\",\n                            \"__v\": 0,\n                            \"description_tr\": \"فاسدف\",\n                            \"title_tr\": \"فتح البيانات.pdf\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"6411dc2fd07a77d6c06a454e\"\n                        },\n                        {\n                            \"_id\": \"641765bcf7e6c01b997c0b42\",\n                            \"type\": \"slide\",\n                            \"title\": \"Referencing.pdf\",\n                            \"description\": \"fasdfasdf\",\n                            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                            \"course_section\": \"6411dc27d07a77d6c06a454a\",\n                            \"order\": 1679254805989,\n                            \"isAvailable\": true,\n                            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1679254945/course_6411dbb7d07a77d6c06a44f3/coursesection_6411dc27d07a77d6c06a454a/textmaterial_641765bcf7e6c01b997c0b42_resume%20test.pdf.pdf\",\n                            \"__v\": 0,\n                            \"description_tr\": \"فاسدف\",\n                            \"title_tr\": \"المرجع.pdf\",\n                            \"downloadable_resources\": [],\n                            \"id\": \"641765bcf7e6c01b997c0b42\"\n                        }\n                    ],\n                    \"id\": \"6411dc27d07a77d6c06a454a\"\n                }\n            ],\n            \"id\": \"6411dbb7d07a77d6c06a44f3\"\n        }\n    }\n}"}],"_postman_id":"9ae13a2f-0340-490f-bc37-1d7499e12760"},{"name":"Create course","event":[{"listen":"test","script":{"id":"047a6534-1947-4912-9ddd-7a7278345679","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"courseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"f9193979-2383-4b9d-9715-fc00e53e4494","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"author","value":"Batoool","type":"text"},{"key":"title","value":"Introduction to open source","type":"text"},{"key":"description","value":"This course is an introduction to opersource","type":"text"},{"key":"file","type":"file","src":"vTsT_NSF9/Banner.jpg"}]},"url":"https://moocs-test.onrender.com/api/v1/course/new","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","new"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"9a3d3b03-1567-488d-82c9-1dd4b8b05799","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"author","value":"Batoool","type":"text"},{"key":"title","value":"Introduction to open source","type":"text"},{"key":"description","value":"This course is an introduction to opersource","type":"text"},{"key":"file","type":"file","src":"vTsT_NSF9/Banner.jpg"}]},"url":"https://moocs-test.onrender.com/api/v1/course/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"425"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 Mar 2023 12:59:48 GMT"},{"key":"Etag","value":"W/\"1a9-F8oswocZ32ygU1+h0DUOQQi2nRY\""},{"key":"Ngrok-Trace-Id","value":"609699255e13487d03e4f2a898c75675"},{"key":"Set-Cookie","value":"connect.sid=s%3A6PGjOfAhJOfPK8i7aeEYl5U-Qy3lDR8m.dIK7jbfg8d1B40ddEVWiPMSCFAP8PJjs6PoVdIW2xI0; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"course\": {\n            \"author\": \"Batoool\",\n            \"title\": \"Introduction to open source\",\n            \"description\": \"This course is an introduction to opersource\",\n            \"videos\": [],\n            \"enrolled_users\": [],\n            \"isAvailable\": true,\n            \"_id\": \"6457afa6d0e661973c26ea4b\",\n            \"preview_image\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1683468182/courses/preview_images/course_preview_6457afa6d0e661973c26ea4b.jpg\",\n            \"__v\": 0,\n            \"title_tr\": \"مقدمة إلى المصدر المفتوح\",\n            \"description_tr\": \"هذه الدورة هي مقدمة لمصادر التشغيل\",\n            \"id\": \"6457afa6d0e661973c26ea4b\"\n        }\n    }\n}"}],"_postman_id":"f9193979-2383-4b9d-9715-fc00e53e4494"},{"name":"Update course","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.updated_course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"updatedCourseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"77a1b032-0060-4c4d-a71d-306a9912bf7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"JavaScript for Beginners\",\r\n    \"description\": \"This course teaches you the basics of JavaScript\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/update/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","update",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"cc98e14a-574a-47cb-9564-edc879c685cf","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"360"},{"key":"ETag","value":"W/\"168-4xFF9uETEkGxIuXTKSwWcpVXtXU\""},{"key":"Date","value":"Tue, 28 Feb 2023 13:22:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Course Updated\",\n        \"updated_course\": {\n            \"_id\": \"63fdfe9e783b136812952e41\",\n            \"author\": \"Richie\",\n            \"title\": \"Introduction to Open Source\",\n            \"description\": \"This course covers the Introduction to Open Source\",\n            \"videos\": [],\n            \"exercises\": [],\n            \"enrolled_users\": [],\n            \"createdAt\": \"2023-02-28T13:16:14.807Z\",\n            \"updatedAt\": \"2023-02-28T13:21:04.445Z\",\n            \"__v\": 0\n        }\n    }\n}"},{"id":"a9fd670e-e187-4bad-9155-4c27bb48f3c6","name":"Error - Missing required param","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-n7ez5oYM62SaG1hKfUSP6VNHtmI\""},{"key":"Set-Cookie","value":"connect.sid=s%3A9108V7M8BC2f5EeOENlZzOTHfR0tiJfF.u1XdSc85pKPFd6a54yaG%2FWTuYxJAtnXkvf7MlEhxsRQ; Path=/; HttpOnly"},{"key":"Date","value":"Tue, 28 Feb 2023 13:27:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing param `id` in request params\"\n}"}],"_postman_id":"77a1b032-0060-4c4d-a71d-306a9912bf7a"},{"name":"Delete course","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.updated_course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"updatedCourseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"db706c20-43d3-42f6-a312-cef98ebc6aa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/delete/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","delete",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"522a803d-d7a9-49b6-8ff5-d30c46da306b","type":"any","value":"","key":"id"}]}},"response":[{"id":"f3fc378a-2781-4731-b14a-bcadde478991","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"360"},{"key":"ETag","value":"W/\"168-4xFF9uETEkGxIuXTKSwWcpVXtXU\""},{"key":"Date","value":"Tue, 28 Feb 2023 13:22:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Course Updated\",\n        \"updated_course\": {\n            \"_id\": \"63fdfe9e783b136812952e41\",\n            \"author\": \"Richie\",\n            \"title\": \"Introduction to Open Source\",\n            \"description\": \"This course covers the Introduction to Open Source\",\n            \"videos\": [],\n            \"exercises\": [],\n            \"enrolled_users\": [],\n            \"createdAt\": \"2023-02-28T13:16:14.807Z\",\n            \"updatedAt\": \"2023-02-28T13:21:04.445Z\",\n            \"__v\": 0\n        }\n    }\n}"},{"id":"6aa75141-ebfd-463d-8ed2-b0ed94297d21","name":"Error - Missing required param","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-n7ez5oYM62SaG1hKfUSP6VNHtmI\""},{"key":"Set-Cookie","value":"connect.sid=s%3A9108V7M8BC2f5EeOENlZzOTHfR0tiJfF.u1XdSc85pKPFd6a54yaG%2FWTuYxJAtnXkvf7MlEhxsRQ; Path=/; HttpOnly"},{"key":"Date","value":"Tue, 28 Feb 2023 13:27:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing param `id` in request params\"\n}"}],"_postman_id":"db706c20-43d3-42f6-a312-cef98ebc6aa1"},{"name":"Upload video","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const videoId = response.data?.video?._id\r","\r","    if (videoId) {\r","        pm.collectionVariables.set(\"videoId\", videoId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"c9113362-f481-45b3-b899-ab817a687ebb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python programming essentials\",\r\n    \"author\": \"Batool\",\r\n    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\r\n    \"duration\": \"5:20\",\r\n    \"category\": \"python\",\r\n    \"description\": \"The programming with python\",\r\n    \"course_id\": \"\",\r\n    \"course_section_id\": \" \"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/video/upload","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","video","upload"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4d627f1d-85b5-4017-b297-6d098967098b","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python syntax\",\r\n    \"author\": \"Batool\",\r\n    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\r\n    \"duration\": \"5:20\",\r\n    \"category\": \"python\",\r\n    \"description\": \"Python introduction\",\r\n    \"course_id\": \"\",\r\n    \"course_section_id\": \" \"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/video/upload"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"1421"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 11 Mar 2023 22:05:06 GMT"},{"key":"Etag","value":"W/\"58d-A6PpGpzSnA4xQdHVHWhxhYrU1vk\""},{"key":"Ngrok-Trace-Id","value":"614c8614747ee2d089bc979a36cd5f5c"},{"key":"Set-Cookie","value":"connect.sid=s%3AIdNQsP57r85ASE0Sq4pIQxjtkqLsH5TZ.TS8R3WDALJM%2BJf1PQL2RUmY7qzCVgtLN5f2kh%2BIoPc8; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"video\": {\n            \"title\": \"Python syntax\",\n            \"author\": \"Batool\",\n            \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n            \"description\": \"Python introduction\",\n            \"duration\": \"5:20\",\n            \"course\": \"640cf34d80db9d86441c2f50\",\n            \"course_section\": {\n                \"_id\": \"640cf35680db9d86441c2f54\",\n                \"title\": \"Python Syntax\",\n                \"course\": {\n                    \"_id\": \"640cf34d80db9d86441c2f50\",\n                    \"author\": \"Batool\",\n                    \"title\": \"Introduction to animal biology\",\n                    \"description\": \"This course covers the Introduction to Open Source\",\n                    \"videos\": [],\n                    \"enrolled_users\": [],\n                    \"isAvailable\": true,\n                    \"__v\": 0,\n                    \"id\": \"640cf34d80db9d86441c2f50\"\n                },\n                \"__v\": 0,\n                \"videos\": [\n                    {\n                        \"_id\": \"640cfa7649a2cca12317049f\",\n                        \"title\": \"Python syntax\",\n                        \"author\": \"Batool\",\n                        \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n                        \"description\": \"Python introduction\",\n                        \"duration\": \"5:20\",\n                        \"course\": \"640cf34d80db9d86441c2f50\",\n                        \"course_section\": \"640cf35680db9d86441c2f54\",\n                        \"category\": \"python\",\n                        \"isAvailable\": true,\n                        \"__v\": 0,\n                        \"id\": \"640cfa7649a2cca12317049f\"\n                    },\n                    {\n                        \"_id\": \"640cfb12b14dcd768f8fe1b6\",\n                        \"title\": \"Python syntax\",\n                        \"author\": \"Batool\",\n                        \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n                        \"description\": \"Python introduction\",\n                        \"duration\": \"5:20\",\n                        \"course\": \"640cf34d80db9d86441c2f50\",\n                        \"course_section\": \"640cf35680db9d86441c2f54\",\n                        \"category\": \"python\",\n                        \"isAvailable\": true,\n                        \"__v\": 0,\n                        \"id\": \"640cfb12b14dcd768f8fe1b6\"\n                    }\n                ],\n                \"id\": \"640cf35680db9d86441c2f54\"\n            },\n            \"category\": \"python\",\n            \"isAvailable\": true,\n            \"_id\": \"640cfb12b14dcd768f8fe1b6\",\n            \"__v\": 0,\n            \"id\": \"640cfb12b14dcd768f8fe1b6\"\n        }\n    }\n}"}],"_postman_id":"c9113362-f481-45b3-b899-ab817a687ebb"},{"name":"Delete video","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.updated_course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"updatedCourseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"1d7b68bf-d476-4535-a9e6-c6e948911f49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/video/delete/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","video","delete",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"098ff008-c980-40aa-bd6b-df6569f3015e","type":"any","value":"","key":"id"}]}},"response":[{"id":"b4673f53-ffd6-4c65-ac90-0ce743e30214","name":"Success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/video/delete/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","video","delete",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"ETag","value":"W/\"49-kUKUvCYQ95vt0ct1BAFUHfZEt5U\""},{"key":"Set-Cookie","value":"connect.sid=s%3Ag5_DqCYvtcAPZdVYiQs7u46yoCKX_NUJ.Cq2N%2F4VU10Bc2IVozRUzIg%2FZDoX3x42XWV2c2Vd3RLU; Path=/; HttpOnly"},{"key":"Date","value":"Wed, 01 Mar 2023 13:44:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"video has been deleted successfully\"\n    }\n}"}],"_postman_id":"1d7b68bf-d476-4535-a9e6-c6e948911f49"},{"name":"Remove video from course","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const videoId = response.data?.video?._id\r","\r","    if (videoId) {\r","        pm.collectionVariables.set(\"videoId\", videoId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"91e21387-e75f-425a-afc0-00c5f36e32d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"video_id\": \"\",\r\n    \"course_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/video/removelink","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","video","removelink"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"287958da-d79d-4be5-b39f-1130fbff6a04","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python syntax\",\r\n    \"author\": \"Batool\",\r\n    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\r\n    \"duration\": \"5:20\",\r\n    \"category\": \"python\",\r\n    \"description\": \"Python introduction\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/video/upload"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"328"},{"key":"ETag","value":"W/\"148-bc3gOOCNmTAzvKXUXZlSzDpBopY\""},{"key":"Date","value":"Tue, 28 Feb 2023 14:01:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"video\": {\n            \"title\": \"Python syntax\",\n            \"author\": \"Batool\",\n            \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n            \"description\": \"Python introduction\",\n            \"duration\": \"5:20\",\n            \"category\": \"python\",\n            \"_id\": \"63fe09567c64620b5f4ac388\",\n            \"createdAt\": \"2023-02-28T14:01:58.807Z\",\n            \"updatedAt\": \"2023-02-28T14:01:58.807Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"91e21387-e75f-425a-afc0-00c5f36e32d4"},{"name":"Get downloadable resources for a course","event":[{"listen":"test","script":{"id":"0e06a704-9cca-4c11-a779-5c6c39d4be72","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const downloadable_resources = response.data?.downloadable_resources\r","    const downloadable_resource = downloadable_resources[0] ?? null\r","\r","    if (downloadable_resource) {\r","        pm.collectionVariables.set(\"downloadableResourceId\", downloadable_resource._id)\r","    }\r","}"],"type":"text/javascript"}}],"id":"eba955be-feb1-4f0f-a0c9-466a875fbedc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/?video_id=&textmaterial_id=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","downloadableresource",""],"host":["https://moocs-test.onrender.com/api/v1"],"query":[{"key":"video_id","value":""},{"key":"textmaterial_id","value":""}],"variable":[]}},"response":[{"id":"e8058519-d1d5-4e7a-b37b-1c6152acff51","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/:courseId","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","downloadableresource",":courseId"],"variable":[{"key":"courseId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1833"},{"key":"ETag","value":"W/\"729-NQHgnip3bWHvgREanpS5nmfX/+k\""},{"key":"Date","value":"Fri, 31 Mar 2023 23:16:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resources\": [\n            {\n                \"_id\": \"642765943644ce530e23e764\",\n                \"resource_type\": \"video\",\n                \"title\": \"More info on open data\",\n                \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                \"description\": \"Gives more detials on what opendata is about\",\n                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                \"order\": 1680303498233,\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"id\": \"642765943644ce530e23e764\"\n            },\n            {\n                \"_id\": \"642765b71f0b861a4cede263\",\n                \"resource_type\": \"video\",\n                \"title\": \"More info on open data\",\n                \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                \"description\": \"Gives more detials on what opendata is about\",\n                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                \"order\": 1680303529210,\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"id\": \"642765b71f0b861a4cede263\"\n            },\n            {\n                \"_id\": \"642766f607b829029bd24f98\",\n                \"resource_type\": \"video\",\n                \"title\": \"More info on open data\",\n                \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                \"description\": \"Gives more detials on what opendata is about\",\n                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                \"order\": 1680303553294,\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"id\": \"642766f607b829029bd24f98\"\n            },\n            {\n                \"_id\": \"642768216ee659375fbb187f\",\n                \"resource_type\": \"video\",\n                \"title\": \"More info on open data\",\n                \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                \"description\": \"Gives more detials on what opendata is about\",\n                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                \"order\": 1680303879211,\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"id\": \"642768216ee659375fbb187f\"\n            },\n            {\n                \"_id\": \"642768faa6625a34100463d1\",\n                \"resource_type\": \"document\",\n                \"title\": \"Open science practices\",\n                \"description\": \"This resource gives more details on open science practices\",\n                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                \"order\": 1680304371652,\n                \"isAvailable\": true,\n                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/raw/upload/v1680304353/courses/6411dbb7d07a77d6c06a44f3/downloadable_resources/642768faa6625a34100463d1_RICHIE%20MOLUNO%20___%20RESUME.docx\",\n                \"__v\": 0,\n                \"id\": \"642768faa6625a34100463d1\"\n            }\n        ]\n    }\n}"},{"id":"27100e1d-1d3b-494d-af00-d2efdf304afe","name":"Success - Textmaterial","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/?textmaterial_id=","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","downloadableresource",""],"query":[{"key":"textmaterial_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1676"},{"key":"ETag","value":"W/\"68c-gCQipgSlZt7WIu8NbgSpkp91Fx8\""},{"key":"Date","value":"Thu, 06 Apr 2023 13:19:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resources\": [\n            {\n                \"_id\": \"642ebfd0d36a9cee6086ed73\",\n                \"resource_type\": \"document\",\n                \"title\": \"Open science practices\",\n                \"description\": \"This resource gives more details on open science practices\",\n                \"course\": \"6411d957d07a77d6c06a4437\",\n                \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n                \"order\": 1680785179160,\n                \"isAvailable\": true,\n                \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1680785337/courses/undefined/downloadable_resources/642ebfd0d36a9cee6086ed73_RICHIE%20MOLUNO%20___%20RESUME%20%284%29.pdf.pdf\",\n                \"__v\": 0,\n                \"id\": \"642ebfd0d36a9cee6086ed73\"\n            },\n            {\n                \"_id\": \"642ec135865b0244d60863e4\",\n                \"resource_type\": \"video\",\n                \"title\": \"More info on open data\",\n                \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                \"description\": \"Gives more detials on what opendata is about\",\n                \"course\": \"6411d957d07a77d6c06a4437\",\n                \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n                \"order\": 1680785659539,\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"id\": \"642ec135865b0244d60863e4\"\n            },\n            {\n                \"_id\": \"642ec13a865b0244d60863e9\",\n                \"resource_type\": \"video\",\n                \"title\": \"More info on open data\",\n                \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                \"description\": \"Gives more detials on what opendata is about\",\n                \"course\": \"6411d957d07a77d6c06a4437\",\n                \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n                \"order\": 1680785659539,\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"id\": \"642ec13a865b0244d60863e9\"\n            },\n            {\n                \"_id\": \"642ec1f7865b0244d6086418\",\n                \"resource_type\": \"video\",\n                \"title\": \"More info on open data\",\n                \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n                \"description\": \"Gives more detials on what opendata is about\",\n                \"course\": \"6411d957d07a77d6c06a4437\",\n                \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n                \"order\": 1680785659539,\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"id\": \"642ec1f7865b0244d6086418\"\n            }\n        ]\n    }\n}"}],"_postman_id":"eba955be-feb1-4f0f-a0c9-466a875fbedc"},{"name":"Get data for downloadable resource","event":[{"listen":"test","script":{"id":"e47eda1f-84db-47ff-945d-9abf587e4ac5","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const downloadable_resource = response.data?.downloadable_resource\r","    if (downloadable_resource) {\r","        pm.collectionVariables.set(\"downloadableResourceId\", downloadable_resource._id)\r","    }\r","}"],"type":"text/javascript"}}],"id":"e787f433-41a6-4092-9920-750cd0d0e1f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/get-data/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","downloadableresource","get-data",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"d44e14fc-40e1-4270-93e3-ff5e76250f16","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/get-data/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","downloadableresource","get-data",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"378"},{"key":"ETag","value":"W/\"17a-8qF4S58aMOrZ8J8ikMVBgurWBLI\""},{"key":"Date","value":"Fri, 31 Mar 2023 23:18:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resource\": {\n            \"_id\": \"642765943644ce530e23e764\",\n            \"resource_type\": \"video\",\n            \"title\": \"More info on open data\",\n            \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n            \"description\": \"Gives more detials on what opendata is about\",\n            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n            \"order\": 1680303498233,\n            \"isAvailable\": true,\n            \"__v\": 0,\n            \"id\": \"642765943644ce530e23e764\"\n        }\n    }\n}"}],"_postman_id":"e787f433-41a6-4092-9920-750cd0d0e1f7"},{"name":"Upload downlodable resource","event":[{"listen":"test","script":{"id":"047a6534-1947-4912-9ddd-7a7278345679","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"courseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"9eea98d7-9de1-4d22-8ef9-ee8e6fec52c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"resource_type","value":"document","type":"text"},{"key":"title","value":"Open science practices","type":"text"},{"key":"description","value":"This resource gives more details on open science practices","type":"text"},{"key":"file","type":"file","src":"/C:/Users/ADMIN/Downloads/RICHIE MOLUNO ___ RESUME.pdf"},{"key":"course_id","value":"","type":"text"}]},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/upload","description":"<p>This is similar to the <code>Create downloadable resource</code> , the only difference is that for this request the user has to add the file to upload instead of using a url reference to the file</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","downloadableresource","upload"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e5d4bce1-0470-40f2-bf78-42185712448c","name":"Success - Text material","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"resource_type","value":"document","type":"text"},{"key":"title","value":"Open science practices","type":"text"},{"key":"description","value":"This resource gives more details on open science practices","type":"text"},{"key":"file","type":"file","src":"/C:/Users/ADMIN/Downloads/RICHIE MOLUNO ___ RESUME (4).pdf"},{"key":"text_material_id","value":"","type":"text"}]},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/upload"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"572"},{"key":"ETag","value":"W/\"23c-lV/coufW2NSog7eUPIz3UlKBeDI\""},{"key":"Date","value":"Thu, 06 Apr 2023 12:49:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resource\": {\n            \"resource_type\": \"document\",\n            \"title\": \"Open science practices\",\n            \"description\": \"This resource gives more details on open science practices\",\n            \"course\": \"6411d957d07a77d6c06a4437\",\n            \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n            \"order\": 1680785179160,\n            \"isAvailable\": true,\n            \"_id\": \"642ebfd0d36a9cee6086ed73\",\n            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1680785337/courses/undefined/downloadable_resources/642ebfd0d36a9cee6086ed73_RICHIE%20MOLUNO%20___%20RESUME%20%284%29.pdf.pdf\",\n            \"__v\": 0,\n            \"id\": \"642ebfd0d36a9cee6086ed73\"\n        }\n    }\n}"},{"id":"c9c62665-7bac-48c1-82d5-a586afe41f23","name":"Error - Missing required param","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"resource_type","value":"document","type":"text"},{"key":"title","value":"Open science practices","type":"text"},{"key":"description","value":"This resource gives more details on open science practices","type":"text"},{"key":"file","type":"file","src":"/C:/Users/ADMIN/Downloads/RICHIE MOLUNO ___ RESUME (4).pdf"}]},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/upload"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-wBKMXdxwkEU9JfCPWgKJe5GaMcM\""},{"key":"Date","value":"Thu, 06 Apr 2023 12:53:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing required params in request body\"\n}"},{"id":"3c02ed0d-803a-4a39-9fd2-e6127d315c83","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"resource_type","value":"document","type":"text"},{"key":"title","value":"Open science practices","type":"text"},{"key":"description","value":"This resource gives more details on open science practices","type":"text"},{"key":"file","type":"file","src":"/C:/Users/ADMIN/Downloads/RICHIE MOLUNO ___ RESUME.pdf"},{"key":"course_id","value":"","type":"text"}]},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/upload"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"738"},{"key":"ETag","value":"W/\"2e2-I6Pt4QpakES6pmrNDqS2BzS1eXM\""},{"key":"Date","value":"Sun, 07 May 2023 14:11:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resource\": {\n            \"resource_type\": \"document\",\n            \"title\": \"Open science practices\",\n            \"description\": \"This resource gives more details on open science practices\",\n            \"course\": \"6457afa6d0e661973c26ea4b\",\n            \"order\": 1683468494058,\n            \"isAvailable\": true,\n            \"_id\": \"6457b1908d8ae52e01acd2fc\",\n            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1683468672/courses/6457afa6d0e661973c26ea4b/downloadable_resources/6457b1908d8ae52e01acd2fc_RICHIE%20MOLUNO%20___%20RESUME.pdf.pdf\",\n            \"__v\": 0,\n            \"title_tr\": \"الممارسات العلمية المفتوحة\",\n            \"description_tr\": \"يقدم هذا المورد المزيد من التفاصيل عن الممارسات العلمية المفتوحة\",\n            \"id\": \"6457b1908d8ae52e01acd2fc\"\n        }\n    }\n}"}],"_postman_id":"9eea98d7-9de1-4d22-8ef9-ee8e6fec52c6"},{"name":"Create downloadable resource","event":[{"listen":"test","script":{"id":"047a6534-1947-4912-9ddd-7a7278345679","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"courseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"24c70a88-1850-4ae2-ba01-8cab63683fdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"More info on open data\",\r\n    \"description\": \"Gives more detials on what opendata is about\",\r\n    \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\r\n    \"course_id\": \"\",\r\n    \"resource_type\": \"video\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/new","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","downloadableresource","new"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c08c8cef-d0b7-4554-a75b-61d56342e514","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"More info on open data\",\r\n    \"description\": \"Gives more detials on what opendata is about\",\r\n    \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\r\n    \"course_id\": \"\",\r\n    \"resource_type\": \"video\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"378"},{"key":"ETag","value":"W/\"17a-adSDLIMv0RnUyZNmMgxreQRwguQ\""},{"key":"Date","value":"Fri, 31 Mar 2023 22:59:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resource\": {\n            \"resource_type\": \"video\",\n            \"title\": \"More info on open data\",\n            \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n            \"description\": \"Gives more detials on what opendata is about\",\n            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n            \"order\": 1680303529210,\n            \"isAvailable\": true,\n            \"_id\": \"642765b71f0b861a4cede263\",\n            \"__v\": 0,\n            \"id\": \"642765b71f0b861a4cede263\"\n        }\n    }\n}"},{"id":"f0d74f83-17b1-4422-ab30-0cad5fb3d2c7","name":"Success - Video","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"More info on open data\",\r\n    \"description\": \"Gives more detials on what opendata is about\",\r\n    \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\r\n    \"video_id\": \"\",\r\n    \"resource_type\": \"video\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"413"},{"key":"ETag","value":"W/\"19d-vARzjz7pyL3qnLBrRp6cEy5zATw\""},{"key":"Date","value":"Thu, 06 Apr 2023 12:57:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resource\": {\n            \"resource_type\": \"video\",\n            \"title\": \"More info on open data\",\n            \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n            \"description\": \"Gives more detials on what opendata is about\",\n            \"course\": \"6411d957d07a77d6c06a4437\",\n            \"video\": \"6411d9f9d07a77d6c06a4488\",\n            \"order\": 1680785659539,\n            \"isAvailable\": true,\n            \"_id\": \"642ec1c8865b0244d6086413\",\n            \"__v\": 0,\n            \"id\": \"642ec1c8865b0244d6086413\"\n        }\n    }\n}"},{"id":"6cb6d463-0cac-4b70-85e2-a6a5cf4065a6","name":"Success - Text material","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"More info on open data\",\r\n    \"description\": \"Gives more detials on what opendata is about\",\r\n    \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\r\n    \"text_material_id\": \"\",\r\n    \"resource_type\": \"video\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"420"},{"key":"ETag","value":"W/\"1a4-D4SCN8NyEdxRnnFjgYwD+Esa3Ec\""},{"key":"Date","value":"Thu, 06 Apr 2023 12:58:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resource\": {\n            \"resource_type\": \"video\",\n            \"title\": \"More info on open data\",\n            \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n            \"description\": \"Gives more detials on what opendata is about\",\n            \"course\": \"6411d957d07a77d6c06a4437\",\n            \"textmaterial\": \"6411d9bcd07a77d6c06a4477\",\n            \"order\": 1680785659539,\n            \"isAvailable\": true,\n            \"_id\": \"642ec1f7865b0244d6086418\",\n            \"__v\": 0,\n            \"id\": \"642ec1f7865b0244d6086418\"\n        }\n    }\n}"},{"id":"689939be-72e9-4783-810d-7308ac5115ea","name":"Success - Course","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"More info on open data\",\r\n    \"description\": \"Gives more detials on what opendata is about\",\r\n    \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\r\n    \"course_id\": \"\",\r\n    \"resource_type\": \"video\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"378"},{"key":"ETag","value":"W/\"17a-qHVE4r82PJzadpyOZCq+a8IZ2EI\""},{"key":"Date","value":"Thu, 06 Apr 2023 12:59:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resource\": {\n            \"resource_type\": \"video\",\n            \"title\": \"More info on open data\",\n            \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n            \"description\": \"Gives more detials on what opendata is about\",\n            \"course\": \"6411d957d07a77d6c06a4437\",\n            \"order\": 1680785659539,\n            \"isAvailable\": true,\n            \"_id\": \"642ec226865b0244d608641c\",\n            \"__v\": 0,\n            \"id\": \"642ec226865b0244d608641c\"\n        }\n    }\n}"}],"_postman_id":"24c70a88-1850-4ae2-ba01-8cab63683fdc"},{"name":"Update downloadable resource","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.updated_course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"updatedCourseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"a71da7b1-ca87-4334-8988-e32ddc117a50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Matlab\",\r\n    \"description\": \"This resource give more details on coding with Matlab\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/update/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","downloadableresource","update",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"5b3770d9-82fb-4ba6-8840-4ac789715628","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Matlab\",\r\n    \"description\": \"This resource give more details on coding with Matlab\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","downloadableresource","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"382"},{"key":"ETag","value":"W/\"17e-E1/thgGzNqoTfNzQoQoekMzl5tA\""},{"key":"Date","value":"Fri, 31 Mar 2023 23:22:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"updated_resource\": {\n            \"_id\": \"642765943644ce530e23e764\",\n            \"resource_type\": \"video\",\n            \"title\": \"Introduction to Matlab\",\n            \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n            \"description\": \"This resource give more details on coding with Matlab\",\n            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n            \"order\": 1680303498233,\n            \"isAvailable\": true,\n            \"__v\": 0,\n            \"id\": \"642765943644ce530e23e764\"\n        }\n    }\n}"}],"_postman_id":"a71da7b1-ca87-4334-8988-e32ddc117a50"},{"name":"Delete downloadable resource","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.updated_course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"updatedCourseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"61cb2cc5-97e0-4e8e-9c63-2904a204a8a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/delete/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","downloadableresource","delete",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"4ea49eb7-9772-4590-a7b1-3fef8ce96bff","name":"Success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/downloadableresource/delete/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","downloadableresource","delete",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"387"},{"key":"ETag","value":"W/\"183-ddvupSbDskP5EnakitR2rLJ7iUA\""},{"key":"Date","value":"Fri, 31 Mar 2023 23:31:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"downloadable_resource\": {\n            \"_id\": \"642765943644ce530e23e764\",\n            \"resource_type\": \"video\",\n            \"title\": \"Introduction to Matlab\",\n            \"file_url\": \"https://www.youtube.com/embed/desowWgV3iU\",\n            \"description\": \"This resource give more details on coding with Matlab\",\n            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n            \"order\": 1680303498233,\n            \"isAvailable\": true,\n            \"__v\": 0,\n            \"id\": \"642765943644ce530e23e764\"\n        }\n    }\n}"}],"_postman_id":"61cb2cc5-97e0-4e8e-9c63-2904a204a8a9"},{"name":"Get course videos","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const videoId = response.data?.video?._id\r","\r","    if (videoId) {\r","        pm.collectionVariables.set(\"videoId\", videoId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"c310ebdd-5b6f-4cc7-bdc0-96a7d9e19a48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python syntax\",\r\n    \"author\": \"Batool\",\r\n    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\r\n    \"duration\": \"5:20\",\r\n    \"category\": \"python\",\r\n    \"description\": \"Python introduction\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/videos/:courseId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","videos",":courseId"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"04b9f31b-7284-44bd-8751-f2734b6fe430","type":"any","value":"","key":"courseId"}]}},"response":[{"id":"2ad39e21-b23d-4af7-8ca5-a51f0a323e07","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python syntax\",\r\n    \"author\": \"Batool\",\r\n    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\r\n    \"duration\": \"5:20\",\r\n    \"category\": \"python\",\r\n    \"description\": \"Python introduction\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/videos/:courseId","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","videos",":courseId"],"variable":[{"key":"courseId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"982"},{"key":"ETag","value":"W/\"3d6-Z7gDzxyrkYdHN5SmliBT6e5zzPI\""},{"key":"Date","value":"Wed, 01 Mar 2023 13:45:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"course_videos\": {\n            \"_id\": \"63ff4f39ea274eaf1a1e6eb9\",\n            \"author\": \"Batool\",\n            \"title\": \"Introduction to animal biology\",\n            \"description\": \"This course covers the Introduction to Open Source\",\n            \"videos\": [\n                {\n                    \"isAvailable\": true,\n                    \"_id\": \"63ff4e0325015a3c758d21d2\",\n                    \"title\": \"Python syntax\",\n                    \"author\": \"Batool\",\n                    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n                    \"description\": \"Python introduction\",\n                    \"duration\": \"5:20\",\n                    \"category\": \"python\",\n                    \"createdAt\": \"2023-03-01T13:07:15.377Z\",\n                    \"updatedAt\": \"2023-03-01T13:07:15.377Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"isAvailable\": true,\n                    \"_id\": \"63ff4fdd089031139517f697\",\n                    \"title\": \"Python syntax\",\n                    \"author\": \"Batool\",\n                    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n                    \"description\": \"Python introduction\",\n                    \"duration\": \"5:20\",\n                    \"category\": \"python\",\n                    \"createdAt\": \"2023-03-01T13:15:09.145Z\",\n                    \"updatedAt\": \"2023-03-01T13:15:09.145Z\",\n                    \"__v\": 0\n                }\n            ],\n            \"exercises\": [],\n            \"enrolled_users\": [],\n            \"createdAt\": \"2023-03-01T13:12:26.050Z\",\n            \"updatedAt\": \"2023-03-01T13:28:36.647Z\",\n            \"__v\": 0,\n            \"isAvailable\": false\n        }\n    }\n}"}],"_postman_id":"c310ebdd-5b6f-4cc7-bdc0-96a7d9e19a48"},{"name":"Get video data","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const videoId = response.data?.video?._id\r","\r","    if (videoId) {\r","        pm.collectionVariables.set(\"videoId\", videoId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"e5b5b612-7793-4082-bcaf-56edff1417c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python syntax\",\r\n    \"author\": \"Batool\",\r\n    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\r\n    \"duration\": \"5:20\",\r\n    \"category\": \"python\",\r\n    \"description\": \"Python introduction\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/video/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","video",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"cf70b506-7c0a-4ad9-8b35-52f6f42610d2","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python syntax\",\r\n    \"author\": \"Batool\",\r\n    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\r\n    \"duration\": \"5:20\",\r\n    \"category\": \"python\",\r\n    \"description\": \"Python introduction\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/video/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","video",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"328"},{"key":"ETag","value":"W/\"148-Q1ew+kNMq+oR6YPJbP8E493cX3M\""},{"key":"Set-Cookie","value":"connect.sid=s%3AktlU3L468v08VXyzj6zbtPUNt6djII1p.YDWwy9En15K8mt8bU4P5fi88OyfedjrzIbzTUWE5IVY; Path=/; HttpOnly"},{"key":"Date","value":"Tue, 28 Feb 2023 14:27:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"video\": {\n            \"_id\": \"63fe09bd7c64620b5f4ac38b\",\n            \"title\": \"Python syntax\",\n            \"author\": \"Batool\",\n            \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n            \"description\": \"Python introduction\",\n            \"duration\": \"5:20\",\n            \"category\": \"python\",\n            \"createdAt\": \"2023-02-28T14:03:41.377Z\",\n            \"updatedAt\": \"2023-02-28T14:03:41.377Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"e5b5b612-7793-4082-bcaf-56edff1417c5"},{"name":"Get enrolled courses","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const videoId = response.data?.video?._id\r","\r","    if (videoId) {\r","        pm.collectionVariables.set(\"videoId\", videoId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"ec6caa34-cc94-4b70-bd65-46da9ad5d31b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"course_id\": \"\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/enrolled","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","enrolled"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"684c20b1-7506-4723-aa27-e3165318d3c5","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"course_id\": \"\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/enrolled"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"402"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 06 Mar 2023 19:58:42 GMT"},{"key":"Etag","value":"W/\"192-WCEPEcwYDOI5HURy3EF6Wez/QKY\""},{"key":"Ngrok-Trace-Id","value":"f5c9e0374b69cdd03627f041ba843662"},{"key":"Set-Cookie","value":"connect.sid=s%3A3u1rzczFHxu1qTiRu9wYWiK3wvShrphH.GpeDcPEUfGrF2E7K7eKpA5QL0L%2F7lEil%2FrtqNE%2BOaoQ; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"enrolled_courses\": [\n            {\n                \"_id\": \"6404ef5d3ff04255a24e005c\",\n                \"author\": \"Batool\",\n                \"title\": \"Introduction to animal biology\",\n                \"description\": \"This course covers the Introduction to Open Source\",\n                \"videos\": [],\n                \"enrolled_users\": [\n                    \"63d4889852d1f1ff958237a4\"\n                ],\n                \"isAvailable\": true,\n                \"createdAt\": \"2023-03-05T19:37:01.664Z\",\n                \"updatedAt\": \"2023-03-06T19:46:47.092Z\",\n                \"__v\": 0,\n                \"id\": \"6404ef5d3ff04255a24e005c\"\n            }\n        ]\n    }\n}"}],"_postman_id":"ec6caa34-cc94-4b70-bd65-46da9ad5d31b"},{"name":"Get enrolled users","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const videoId = response.data?.video?._id\r","\r","    if (videoId) {\r","        pm.collectionVariables.set(\"videoId\", videoId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"289a7335-966c-4d40-8258-d2d57200fdd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"course_id\": \"\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/enrolledusers/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","enrolledusers",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"ecf831c8-f0ae-40f9-8a60-ca32eb5a0ae0","type":"any","value":"","key":"id"}]}},"response":[{"id":"b9208b09-e983-489c-9507-8abca230c142","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"course_id\": \"\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/enrolledusers/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","enrolledusers",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"197"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 06 Mar 2023 20:15:36 GMT"},{"key":"Etag","value":"W/\"c5-nfCegb5ZF5H4y5kr2KO9J6/41LA\""},{"key":"Ngrok-Trace-Id","value":"d34c6550676e55ad97c3b24842b723ee"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"enrolled_users\": [\n            {\n                \"_id\": \"63d4889852d1f1ff958237a4\",\n                \"firstname\": \"testfirstname\",\n                \"lastname\": \"testlastname\",\n                \"email\": \"moocssuperadmin@oscsa.com\",\n                \"role\": \"SuperAdmin\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"289a7335-966c-4d40-8258-d2d57200fdd4"},{"name":"Enroll course","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const videoId = response.data?.video?._id\r","\r","    if (videoId) {\r","        pm.collectionVariables.set(\"videoId\", videoId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"b4ed0faf-9a07-4356-a94a-189e15d8f208","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/enroll/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","enroll",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"f3899f8e-78ac-430b-8b59-3812c6e2eb36","type":"any","value":"","key":"id"}]}},"response":[{"id":"7d22b41b-6095-4404-8799-004fbd90efa5","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"course_id\": \"\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/enroll/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","enroll",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"390"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 06 Mar 2023 19:46:47 GMT"},{"key":"Etag","value":"W/\"186-KfxEX5wpibfp/lGqfGY4y35YC3w\""},{"key":"Ngrok-Trace-Id","value":"05fa1c2b1cd01b96bc505bd949e0ac92"},{"key":"Set-Cookie","value":"connect.sid=s%3ABrn7IgHQjl0AGH1MltUHCA-ZTs_l0BoQ.ZU6%2BVC0Bj9efaXmeQtf6N8okkwqccV8aJ0loalr4PBU; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"course\": {\n            \"_id\": \"6404ef5d3ff04255a24e005c\",\n            \"author\": \"Batool\",\n            \"title\": \"Introduction to animal biology\",\n            \"description\": \"This course covers the Introduction to Open Source\",\n            \"videos\": [],\n            \"enrolled_users\": [\n                \"63d4889852d1f1ff958237a4\"\n            ],\n            \"isAvailable\": true,\n            \"createdAt\": \"2023-03-05T19:37:01.664Z\",\n            \"updatedAt\": \"2023-03-06T19:46:47.092Z\",\n            \"__v\": 0,\n            \"id\": \"6404ef5d3ff04255a24e005c\"\n        }\n    }\n}"}],"_postman_id":"b4ed0faf-9a07-4356-a94a-189e15d8f208"},{"name":"Cancel enrollment","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const videoId = response.data?.video?._id\r","\r","    if (videoId) {\r","        pm.collectionVariables.set(\"videoId\", videoId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"f94b76f0-b351-4eb2-8234-4bf39761f0a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"course_id\": \"\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/cancelenrollment/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","cancelenrollment",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"c8f774f2-ddc5-4544-abed-0f3b056f0863","type":"any","value":"","key":"id"}]}},"response":[{"id":"7a10b63b-5915-43e3-a2b0-090230e2b87a","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"course_id\": \"\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/cancelenrollment/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","cancelenrollment",":id"],"variable":[{"id":"c8f774f2-ddc5-4544-abed-0f3b056f0863","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"71"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 06 Mar 2023 20:06:33 GMT"},{"key":"Etag","value":"W/\"47-OGtM0BLGvz7Hw3qNXgMPPvmrD14\""},{"key":"Ngrok-Trace-Id","value":"a8f75727e10773290775e89c31545df8"},{"key":"Set-Cookie","value":"connect.sid=s%3Ar4ktwS1dJypsCFARPGpw_-q_ClJjjNX5.eLMgURS9OgkP%2BonIpaMAmFC34Lg%2FyZNXLQR2yO1ijc0; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Enrollment cancelled successfully\"\n    }\n}"}],"_postman_id":"f94b76f0-b351-4eb2-8234-4bf39761f0a8"},{"name":"Get student report for Course","id":"bb1d5a33-2686-4e62-8bae-247c51d56a45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/course/studentreport/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["course","studentreport",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"07c1dee8-c42f-4e60-9c0c-f184e05a3e1a","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/studentreport/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","studentreport",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"870"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 11 Mar 2023 22:56:06 GMT"},{"key":"Etag","value":"W/\"366-M67GfP4hSBrzAU3dHX0ThXW+QOg\""},{"key":"Ngrok-Trace-Id","value":"08b4acb891f193b32a3d7062408a7dcd"},{"key":"Set-Cookie","value":"connect.sid=s%3AyY-UYmmqoyLfQ-j4K9htRuYYYjhQ24cP.WSWVWH12Fdz17UmlmFLIC%2FFBzNmjlHR9cFTI6dr386k; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"student_course_report\": {\n            \"completed_videos\": [],\n            \"completed_sections\": [],\n            \"score\": 0,\n            \"isCompleted\": false,\n            \"_id\": \"640d0281f7f9072f615abcb8\",\n            \"course\": {\n                \"_id\": \"640cf34d80db9d86441c2f50\",\n                \"title\": \"Introduction to animal biology\",\n                \"description\": \"This course covers the Introduction to Open Source\",\n                \"id\": \"640cf34d80db9d86441c2f50\"\n            },\n            \"user\": {\n                \"_id\": \"63d4889852d1f1ff958237a4\",\n                \"firstname\": \"testfirstname\",\n                \"lastname\": \"testlastname\",\n                \"email\": \"moocssuperadmin@oscsa.com\",\n                \"role\": \"SuperAdmin\",\n                \"__v\": 0\n            },\n            \"completed_exercises\": [\n                {\n                    \"_id\": \"640d01666268d7bd6a64e27a\",\n                    \"title\": \"Introduction to Python\",\n                    \"description\": \"This is an exercise on the introduction to python\",\n                    \"duration\": 10,\n                    \"date\": \"2023-03-11T22:30:58.583Z\",\n                    \"course\": \"640cf34d80db9d86441c2f50\",\n                    \"course_section\": \"640d01466268d7bd6a64e24b\",\n                    \"__v\": 0,\n                    \"id\": \"640d01666268d7bd6a64e27a\"\n                }\n            ],\n            \"__v\": 0,\n            \"id\": \"640d0281f7f9072f615abcb8\"\n        }\n    }\n}"}],"_postman_id":"bb1d5a33-2686-4e62-8bae-247c51d56a45"}],"id":"3c0382c6-6566-4f4d-94bc-2010b047db19","event":[{"listen":"prerequest","script":{"id":"daf6efed-bed8-4604-bb4d-bab4cb684334","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d5ef9186-c02b-43d2-a51d-0604032907bd","type":"text/javascript","exec":[""]}}],"_postman_id":"3c0382c6-6566-4f4d-94bc-2010b047db19","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}}},{"name":"Course sections","item":[{"name":"Get section data","id":"7fb73095-01e3-4279-aefd-612341bc3f63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/coursesection/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["coursesection",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":" ","key":"id"}]}},"response":[{"id":"cd758d55-fed8-4c1c-a381-85f6bf2fc159","name":"Error - Missing param in request params","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course",":id"],"variable":[{"key":"id","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-n7ez5oYM62SaG1hKfUSP6VNHtmI\""},{"key":"Set-Cookie","value":"connect.sid=s%3ANbvUTymISpX1Oq2ALGnSr5sylslHhF30.6q7%2FvKGnLrM202%2BlFJ0BW8K3yP%2FSJRwyvA6rUPnCX0M; Path=/; HttpOnly"},{"key":"Date","value":"Tue, 28 Feb 2023 13:40:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing param `id` in request params\"\n}"},{"id":"77ac2302-7a72-4ab6-8abc-665252fdcad9","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/coursesection/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["coursesection",":id"],"variable":[{"key":"id","value":" "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"4590"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 10:49:44 GMT"},{"key":"Etag","value":"W/\"11ee-Tt2sfRmw9GOzAaL32RzRnQB/kb8\""},{"key":"Ngrok-Trace-Id","value":"e8490fc2c4aa24daa0cde951580957f1"},{"key":"Set-Cookie","value":"connect.sid=s%3AxFwfNpdviupXc12pnnBOsWzLX-2NKw7M.vupTcG9MQf4SE%2FVLKVE1UzfrCtjjpbAf57BAdmVe4uU; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"course_section\": {\n            \"contents\": [\n                {\n                    \"type\": \"exercise\",\n                    \"_id\": \"64107444be5a26049d889fb8\",\n                    \"title\": \"Introduction to Python\",\n                    \"description\": \"This is an exercise on the introduction to python\",\n                    \"duration\": 10,\n                    \"date\": \"2023-03-14T13:00:44.959Z\",\n                    \"course\": \"640f1e419048d55d79a95e60\",\n                    \"course_section\": \"6410740bbe5a26049d889f9e\",\n                    \"order\": 1678798844959,\n                    \"__v\": 0,\n                    \"questions\": [\n                        {\n                            \"_id\": \"64109dcd2cdd13b02b39a601\",\n                            \"type\": \"question\",\n                            \"exercise\": \"64107444be5a26049d889fb8\",\n                            \"question\": \"What is the color of the sky\",\n                            \"correct_option\": \"blue\",\n                            \"options\": [\n                                \"colorless\",\n                                \"blue\",\n                                \"pink\",\n                                \"purple\"\n                            ],\n                            \"__v\": 0,\n                            \"id\": \"64109dcd2cdd13b02b39a601\"\n                        },\n                        {\n                            \"_id\": \"64109dd32cdd13b02b39a606\",\n                            \"type\": \"question\",\n                            \"exercise\": \"64107444be5a26049d889fb8\",\n                            \"question\": \"What is the color of the sky\",\n                            \"correct_option\": \"blue\",\n                            \"options\": [\n                                \"colorless\",\n                                \"blue\",\n                                \"pink\",\n                                \"purple\"\n                            ],\n                            \"__v\": 0,\n                            \"id\": \"64109dd32cdd13b02b39a606\"\n                        }\n                    ],\n                    \"id\": \"64107444be5a26049d889fb8\"\n                },\n                {\n                    \"type\": \"textmaterial\",\n                    \"_id\": \"64107449be5a26049d889fc1\",\n                    \"title\": \"test file\",\n                    \"description\": \"fasdfasdf\",\n                    \"course\": \"640f1e419048d55d79a95e60\",\n                    \"course_section\": \"6410740bbe5a26049d889f9e\",\n                    \"order\": 1678798844965,\n                    \"isAvailable\": true,\n                    \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678799919/course_640f1e419048d55d79a95e60/coursesection_6410740bbe5a26049d889f9e/textmaterial_64107449be5a26049d889fc1_camiscope.png.png\",\n                    \"__v\": 0,\n                    \"id\": \"64107449be5a26049d889fc1\"\n                },\n                {\n                    \"type\": \"textmaterial\",\n                    \"_id\": \"641074a2be5a26049d889fca\",\n                    \"title\": \"test file\",\n                    \"description\": \"fasdfasdf\",\n                    \"course\": \"640f1e419048d55d79a95e60\",\n                    \"course_section\": \"6410740bbe5a26049d889f9e\",\n                    \"order\": 1678798844965,\n                    \"isAvailable\": true,\n                    \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678800009/course_640f1e419048d55d79a95e60/coursesection_6410740bbe5a26049d889f9e/textmaterial_641074a2be5a26049d889fca_camiscope.png.png\",\n                    \"__v\": 0,\n                    \"id\": \"641074a2be5a26049d889fca\"\n                },\n                {\n                    \"_id\": \"6411d34c7c403303d0f77c74\",\n                    \"type\": \"video\",\n                    \"title\": \"Python syntax\",\n                    \"author\": \"Batool\",\n                    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n                    \"description\": \"Python introduction\",\n                    \"duration\": \"5:20\",\n                    \"course\": \"640f1e419048d55d79a95e60\",\n                    \"course_section\": \"6410740bbe5a26049d889f9e\",\n                    \"category\": \"python\",\n                    \"order\": 1678889797899,\n                    \"isAvailable\": true,\n                    \"__v\": 0,\n                    \"id\": \"6411d34c7c403303d0f77c74\"\n                }\n            ],\n            \"_id\": \"6410740bbe5a26049d889f9e\",\n            \"title\": \"Python Syntax\",\n            \"course\": {\n                \"_id\": \"640f1e419048d55d79a95e60\",\n                \"author\": \"Batoool\",\n                \"title\": \"Introduction to open source\",\n                \"description\": \"This course is an introduction to opersource\",\n                \"id\": \"640f1e419048d55d79a95e60\"\n            },\n            \"order\": 1678798844967,\n            \"__v\": 0,\n            \"videos\": [\n                {\n                    \"_id\": \"6411d34c7c403303d0f77c74\",\n                    \"type\": \"video\",\n                    \"title\": \"Python syntax\",\n                    \"author\": \"Batool\",\n                    \"video_url\": \"https://www.youtube.com/watch?v=10u1_CzdmQs\",\n                    \"description\": \"Python introduction\",\n                    \"duration\": \"5:20\",\n                    \"course\": \"640f1e419048d55d79a95e60\",\n                    \"course_section\": \"6410740bbe5a26049d889f9e\",\n                    \"category\": \"python\",\n                    \"order\": 1678889797899,\n                    \"isAvailable\": true,\n                    \"__v\": 0,\n                    \"id\": \"6411d34c7c403303d0f77c74\"\n                }\n            ],\n            \"exercises\": [\n                {\n                    \"type\": \"exercise\",\n                    \"_id\": \"64107444be5a26049d889fb8\",\n                    \"title\": \"Introduction to Python\",\n                    \"description\": \"This is an exercise on the introduction to python\",\n                    \"duration\": 10,\n                    \"date\": \"2023-03-14T13:00:44.959Z\",\n                    \"course\": \"640f1e419048d55d79a95e60\",\n                    \"course_section\": \"6410740bbe5a26049d889f9e\",\n                    \"order\": 1678798844959,\n                    \"__v\": 0,\n                    \"questions\": [\n                        {\n                            \"_id\": \"64109dcd2cdd13b02b39a601\",\n                            \"type\": \"question\",\n                            \"exercise\": \"64107444be5a26049d889fb8\",\n                            \"question\": \"What is the color of the sky\",\n                            \"correct_option\": \"blue\",\n                            \"options\": [\n                                \"colorless\",\n                                \"blue\",\n                                \"pink\",\n                                \"purple\"\n                            ],\n                            \"__v\": 0,\n                            \"id\": \"64109dcd2cdd13b02b39a601\"\n                        },\n                        {\n                            \"_id\": \"64109dd32cdd13b02b39a606\",\n                            \"type\": \"question\",\n                            \"exercise\": \"64107444be5a26049d889fb8\",\n                            \"question\": \"What is the color of the sky\",\n                            \"correct_option\": \"blue\",\n                            \"options\": [\n                                \"colorless\",\n                                \"blue\",\n                                \"pink\",\n                                \"purple\"\n                            ],\n                            \"__v\": 0,\n                            \"id\": \"64109dd32cdd13b02b39a606\"\n                        }\n                    ],\n                    \"id\": \"64107444be5a26049d889fb8\"\n                }\n            ],\n            \"textmaterials\": [\n                {\n                    \"type\": \"textmaterial\",\n                    \"_id\": \"64107449be5a26049d889fc1\",\n                    \"title\": \"test file\",\n                    \"description\": \"fasdfasdf\",\n                    \"course\": \"640f1e419048d55d79a95e60\",\n                    \"course_section\": \"6410740bbe5a26049d889f9e\",\n                    \"order\": 1678798844965,\n                    \"isAvailable\": true,\n                    \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678799919/course_640f1e419048d55d79a95e60/coursesection_6410740bbe5a26049d889f9e/textmaterial_64107449be5a26049d889fc1_camiscope.png.png\",\n                    \"__v\": 0,\n                    \"id\": \"64107449be5a26049d889fc1\"\n                },\n                {\n                    \"type\": \"textmaterial\",\n                    \"_id\": \"641074a2be5a26049d889fca\",\n                    \"title\": \"test file\",\n                    \"description\": \"fasdfasdf\",\n                    \"course\": \"640f1e419048d55d79a95e60\",\n                    \"course_section\": \"6410740bbe5a26049d889f9e\",\n                    \"order\": 1678798844965,\n                    \"isAvailable\": true,\n                    \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678800009/course_640f1e419048d55d79a95e60/coursesection_6410740bbe5a26049d889f9e/textmaterial_641074a2be5a26049d889fca_camiscope.png.png\",\n                    \"__v\": 0,\n                    \"id\": \"641074a2be5a26049d889fca\"\n                }\n            ],\n            \"id\": \"6410740bbe5a26049d889f9e\"\n        }\n    }\n}"}],"_postman_id":"7fb73095-01e3-4279-aefd-612341bc3f63"},{"name":"Add course section","event":[{"listen":"test","script":{"id":"047a6534-1947-4912-9ddd-7a7278345679","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseSectionId = response.data?.course_section?._id\r","\r","    if (courseSectionId) {\r","        pm.collectionVariables.set(\"courseSectionId\", courseSectionId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"0005529b-8739-44b8-920e-a066d476b2c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python Syntax\",\r\n    \"course_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/coursesection/new","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["coursesection","new"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"2b73a97a-a9b5-4084-916a-0b70487c5ea1","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Python Syntax\",\r\n    \"course_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/coursesection/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"177"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 10 Mar 2023 20:07:42 GMT"},{"key":"Etag","value":"W/\"b1-7Dh5VYe1mke0CYWeknhYWlTqvAU\""},{"key":"Ngrok-Trace-Id","value":"6af98702a7f2b8ddd403c70b042b9976"},{"key":"Set-Cookie","value":"connect.sid=s%3AshfN2w-iWUTDjI3Sj3HI43XwRsovaAce.PMqyjIB1Jjgm6MU4ZeawHfZX8cMFAiOhSn%2FYy7PBMjs; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"course_section\": {\n            \"title\": \"Python Syntax\",\n            \"course\": \"640b8b49b92cd83d6ccb549a\",\n            \"_id\": \"640b8e0d7272760dd2a208fc\",\n            \"__v\": 0,\n            \"id\": \"640b8e0d7272760dd2a208fc\"\n        }\n    }\n}"}],"_postman_id":"0005529b-8739-44b8-920e-a066d476b2c6"},{"name":"Update course section","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.updated_course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"updatedCourseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"f2685d2b-b4fc-4cee-8e09-a58fb7f80270","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Open Source\",\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/coursesection/update/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["coursesection","update",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":" ","key":"id"}]}},"response":[{"id":"101d76f2-07d7-426c-98e3-b16be8b8345c","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"360"},{"key":"ETag","value":"W/\"168-4xFF9uETEkGxIuXTKSwWcpVXtXU\""},{"key":"Date","value":"Tue, 28 Feb 2023 13:22:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Course Updated\",\n        \"updated_course\": {\n            \"_id\": \"63fdfe9e783b136812952e41\",\n            \"author\": \"Richie\",\n            \"title\": \"Introduction to Open Source\",\n            \"description\": \"This course covers the Introduction to Open Source\",\n            \"videos\": [],\n            \"exercises\": [],\n            \"enrolled_users\": [],\n            \"createdAt\": \"2023-02-28T13:16:14.807Z\",\n            \"updatedAt\": \"2023-02-28T13:21:04.445Z\",\n            \"__v\": 0\n        }\n    }\n}"},{"id":"9e71cd24-5b07-46ea-939c-79c31a33e985","name":"Error - Missing required param","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/course/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["course","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-n7ez5oYM62SaG1hKfUSP6VNHtmI\""},{"key":"Set-Cookie","value":"connect.sid=s%3A9108V7M8BC2f5EeOENlZzOTHfR0tiJfF.u1XdSc85pKPFd6a54yaG%2FWTuYxJAtnXkvf7MlEhxsRQ; Path=/; HttpOnly"},{"key":"Date","value":"Tue, 28 Feb 2023 13:27:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing param `id` in request params\"\n}"}],"_postman_id":"f2685d2b-b4fc-4cee-8e09-a58fb7f80270"},{"name":"Delete course section","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const courseId = response.data?.updated_course?._id\r","\r","    if (courseId) {\r","        pm.collectionVariables.set(\"updatedCourseId\", courseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"12b3a45d-0a9a-4521-9f7b-153e3f28d40f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/coursesection/delete/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["coursesection","delete",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":" ","key":"id"}]}},"response":[{"id":"abdbd249-d058-4272-8cb6-267c382d3a51","name":"Success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/coursesection/delete/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["coursesection","delete",":id"],"variable":[{"key":"id","value":" "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"73"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 10 Mar 2023 20:22:29 GMT"},{"key":"Etag","value":"W/\"49-tIKKISbNkh1sglyYj1vGapsPHtE\""},{"key":"Ngrok-Trace-Id","value":"ce50dce95c37e972e7f8145cd3c62fa9"},{"key":"Set-Cookie","value":"connect.sid=s%3As_zIXUe71rta51VrI9HqvMj6TYRrXJNU.LRW7lGsnGI30ZOZr31OfHRy0PMnyCcp1Aa5s8vCLtVA; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Course content deleted successfully\"\n    }\n}"}],"_postman_id":"12b3a45d-0a9a-4521-9f7b-153e3f28d40f"}],"id":"3ab1b5a3-55ed-4c3f-bd41-d4710125702d","event":[{"listen":"prerequest","script":{"id":"daf6efed-bed8-4604-bb4d-bab4cb684334","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d5ef9186-c02b-43d2-a51d-0604032907bd","type":"text/javascript","exec":[""]}}],"_postman_id":"3ab1b5a3-55ed-4c3f-bd41-d4710125702d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}}},{"name":"Exercise","item":[{"name":"Get exercises","event":[{"listen":"test","script":{"id":"51e26a73-7645-4a58-a386-3909962c766d","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const exercises = response.data?.exercises\r","\r","    if (exercises) {\r","        pm.collectionVariables.set(\"exerciseId\", exercises[0]._id)\r","    }\r","}"],"type":"text/javascript"}}],"id":"579b6fad-f063-4dc8-a811-8e63ef64606b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"course\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["exercise"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f02d4a0f-6241-4c8a-a985-396732f5c001","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2048"},{"key":"ETag","value":"W/\"800-schRz1qKEusLj36fqqdJ8txgDXQ\""},{"key":"Date","value":"Sun, 05 Mar 2023 00:14:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"exercises\": [\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640907cc35ab6f0b7a4a5a85\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-08T22:03:32.566Z\",\n                \"course\": \"6404ef5d3ff04255a24e005c\",\n                \"isAvailable\": true,\n                \"createdAt\": \"2023-03-08T22:10:20.252Z\",\n                \"updatedAt\": \"2023-03-08T22:10:20.252Z\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640907cf35ab6f0b7a4a5a89\",\n                        \"exercise\": \"640907cc35ab6f0b7a4a5a85\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:23.957Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:23.957Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907cf35ab6f0b7a4a5a89\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640907d235ab6f0b7a4a5a8d\",\n                        \"exercise\": \"640907cc35ab6f0b7a4a5a85\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:26.670Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:26.670Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907d235ab6f0b7a4a5a8d\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640907d535ab6f0b7a4a5a91\",\n                        \"exercise\": \"640907cc35ab6f0b7a4a5a85\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:29.188Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:29.188Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907d535ab6f0b7a4a5a91\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640907d735ab6f0b7a4a5a95\",\n                        \"exercise\": \"640907cc35ab6f0b7a4a5a85\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:31.984Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:31.984Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907d735ab6f0b7a4a5a95\"\n                    }\n                ],\n                \"id\": \"640907cc35ab6f0b7a4a5a85\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640907ec35ab6f0b7a4a5a9d\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-08T22:03:32.566Z\",\n                \"course\": \"6404ef5d3ff04255a24e005c\",\n                \"isAvailable\": true,\n                \"createdAt\": \"2023-03-08T22:10:52.904Z\",\n                \"updatedAt\": \"2023-03-08T22:10:52.904Z\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640907f035ab6f0b7a4a5aa1\",\n                        \"exercise\": \"640907ec35ab6f0b7a4a5a9d\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:56.716Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:56.716Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907f035ab6f0b7a4a5aa1\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640907f335ab6f0b7a4a5aa5\",\n                        \"exercise\": \"640907ec35ab6f0b7a4a5a9d\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:59.283Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:59.283Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907f335ab6f0b7a4a5aa5\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640907f535ab6f0b7a4a5aa9\",\n                        \"exercise\": \"640907ec35ab6f0b7a4a5a9d\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:11:01.807Z\",\n                        \"updatedAt\": \"2023-03-08T22:11:01.807Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907f535ab6f0b7a4a5aa9\"\n                    }\n                ],\n                \"id\": \"640907ec35ab6f0b7a4a5a9d\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640908a235ab6f0b7a4a5abe\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-08T22:03:32.566Z\",\n                \"course\": \"6404ef5d3ff04255a24e005c\",\n                \"isAvailable\": true,\n                \"createdAt\": \"2023-03-08T22:13:54.301Z\",\n                \"updatedAt\": \"2023-03-08T22:13:54.301Z\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908a935ab6f0b7a4a5ac2\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:01.200Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:01.200Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908a935ab6f0b7a4a5ac2\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908b035ab6f0b7a4a5ac6\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:08.047Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:08.047Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908b035ab6f0b7a4a5ac6\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908b235ab6f0b7a4a5aca\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:10.937Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:10.937Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908b235ab6f0b7a4a5aca\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908b535ab6f0b7a4a5ace\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:13.433Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:13.433Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908b535ab6f0b7a4a5ace\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908b735ab6f0b7a4a5ad2\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:15.583Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:15.583Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908b735ab6f0b7a4a5ad2\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908c035ab6f0b7a4a5ad6\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:24.120Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:24.120Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908c035ab6f0b7a4a5ad6\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908d935ab6f0b7a4a5add\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:49.484Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:49.484Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908d935ab6f0b7a4a5add\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908db35ab6f0b7a4a5ae1\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:51.971Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:51.971Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908db35ab6f0b7a4a5ae1\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908de35ab6f0b7a4a5ae5\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:54.170Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:54.170Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908de35ab6f0b7a4a5ae5\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908e035ab6f0b7a4a5ae9\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:56.391Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:56.391Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908e035ab6f0b7a4a5ae9\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908e335ab6f0b7a4a5aed\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:14:59.162Z\",\n                        \"updatedAt\": \"2023-03-08T22:14:59.162Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908e335ab6f0b7a4a5aed\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640908e635ab6f0b7a4a5af1\",\n                        \"exercise\": \"640908a235ab6f0b7a4a5abe\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:15:02.124Z\",\n                        \"updatedAt\": \"2023-03-08T22:15:02.124Z\",\n                        \"__v\": 0,\n                        \"id\": \"640908e635ab6f0b7a4a5af1\"\n                    }\n                ],\n                \"id\": \"640908a235ab6f0b7a4a5abe\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"64090a3b8d75e8a4452bd4ca\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-08T22:17:58.666Z\",\n                \"course\": \"6404ef5d3ff04255a24e005c\",\n                \"isAvailable\": true,\n                \"createdAt\": \"2023-03-08T22:20:43.984Z\",\n                \"updatedAt\": \"2023-03-08T22:20:43.984Z\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090a408d75e8a4452bd4ce\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:20:48.470Z\",\n                        \"updatedAt\": \"2023-03-08T22:20:48.470Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090a408d75e8a4452bd4ce\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090a845690fb280a99742a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:21:56.590Z\",\n                        \"updatedAt\": \"2023-03-08T22:21:56.590Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090a845690fb280a99742a\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090abe5690fb280a997443\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:54.864Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:54.864Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090abe5690fb280a997443\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ac05690fb280a997447\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:56.894Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:56.894Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ac05690fb280a997447\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ac35690fb280a99744b\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:59.778Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:59.778Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ac35690fb280a99744b\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ad55690fb280a99745e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:17.184Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:17.184Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ad55690fb280a99745e\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ad75690fb280a997462\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:19.996Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:19.996Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ad75690fb280a997462\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ada5690fb280a997466\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:22.140Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:22.140Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ada5690fb280a997466\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090adc5690fb280a99746a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:24.368Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:24.368Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090adc5690fb280a99746a\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ade5690fb280a99746e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:26.351Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:26.351Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ade5690fb280a99746e\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ae05690fb280a997472\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:28.786Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:28.786Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae05690fb280a997472\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ae35690fb280a997476\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:31.224Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:31.224Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae35690fb280a997476\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ae55690fb280a99747a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:33.471Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:33.471Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae55690fb280a99747a\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090ae75690fb280a99747e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:35.979Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:35.979Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae75690fb280a99747e\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090aea5690fb280a997482\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:38.016Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:38.016Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090aea5690fb280a997482\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64090aef5690fb280a997486\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:43.066Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:43.066Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090aef5690fb280a997486\"\n                    }\n                ],\n                \"id\": \"64090a3b8d75e8a4452bd4ca\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640b95304207b0ae405e5bb7\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-10T20:37:56.214Z\",\n                \"course\": \"640b8b49b92cd83d6ccb549a\",\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"course_section\": \"640b93121cafdc0f3698df9b\",\n                \"questions\": [],\n                \"id\": \"640b95304207b0ae405e5bb7\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640b96e37ac3b4cddaf07c2e\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-10T20:44:27.489Z\",\n                \"course\": \"640b96ca7ac3b4cddaf07c20\",\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"course_section\": \"640b96d97ac3b4cddaf07c27\",\n                \"questions\": [],\n                \"id\": \"640b96e37ac3b4cddaf07c2e\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640cf60015cf559f7b808926\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T21:43:18.636Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640cf35680db9d86441c2f54\",\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"questions\": [],\n                \"id\": \"640cf60015cf559f7b808926\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640cf62a8db5ac9f682d331e\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T21:43:59.864Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640cf35680db9d86441c2f54\",\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"questions\": [],\n                \"id\": \"640cf62a8db5ac9f682d331e\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640cf64f9106c4242fca8372\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T21:44:38.270Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640cf35680db9d86441c2f54\",\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"questions\": [],\n                \"id\": \"640cf64f9106c4242fca8372\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640cf66668f888e73a897a93\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T21:44:56.440Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640cf35680db9d86441c2f54\",\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"questions\": [],\n                \"id\": \"640cf66668f888e73a897a93\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640cf6b79c655fc0909e0595\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T21:46:22.380Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640cf35680db9d86441c2f54\",\n                \"isAvailable\": true,\n                \"__v\": 0,\n                \"questions\": [],\n                \"id\": \"640cf6b79c655fc0909e0595\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640cfbb142730b6ac51b75f9\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T22:06:58.796Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640cf35680db9d86441c2f54\",\n                \"__v\": 0,\n                \"questions\": [],\n                \"id\": \"640cfbb142730b6ac51b75f9\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640cfdfd42730b6ac51b7605\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T22:06:58.796Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640cf35680db9d86441c2f54\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640cfefc15a1917fbfa8dc3d\",\n                        \"exercise\": \"640cfdfd42730b6ac51b7605\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640cfefc15a1917fbfa8dc3d\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640cff1315a1917fbfa8dc44\",\n                        \"exercise\": \"640cfdfd42730b6ac51b7605\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640cff1315a1917fbfa8dc44\"\n                    }\n                ],\n                \"id\": \"640cfdfd42730b6ac51b7605\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640d015f6268d7bd6a64e268\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T22:30:58.583Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640d01466268d7bd6a64e24b\",\n                \"__v\": 0,\n                \"questions\": [],\n                \"id\": \"640d015f6268d7bd6a64e268\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640d01626268d7bd6a64e271\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T22:30:58.583Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640d01466268d7bd6a64e24b\",\n                \"__v\": 0,\n                \"questions\": [],\n                \"id\": \"640d01626268d7bd6a64e271\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640d01666268d7bd6a64e27a\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T22:30:58.583Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640d01466268d7bd6a64e24b\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640cff1915a1917fbfa8dc48\",\n                        \"exercise\": \"640d01666268d7bd6a64e27a\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640cff1915a1917fbfa8dc48\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d02bff7f9072f615abcc9\",\n                        \"exercise\": \"640d01666268d7bd6a64e27a\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d02bff7f9072f615abcc9\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d02c2f7f9072f615abccd\",\n                        \"exercise\": \"640d01666268d7bd6a64e27a\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d02c2f7f9072f615abccd\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d02c6f7f9072f615abcd1\",\n                        \"exercise\": \"640d01666268d7bd6a64e27a\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d02c6f7f9072f615abcd1\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d02cff7f9072f615abcd5\",\n                        \"exercise\": \"640d01666268d7bd6a64e27a\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d02cff7f9072f615abcd5\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d02d3f7f9072f615abcd9\",\n                        \"exercise\": \"640d01666268d7bd6a64e27a\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d02d3f7f9072f615abcd9\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d02d5f7f9072f615abcdd\",\n                        \"exercise\": \"640d01666268d7bd6a64e27a\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d02d5f7f9072f615abcdd\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d02dff7f9072f615abce1\",\n                        \"exercise\": \"640d01666268d7bd6a64e27a\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d02dff7f9072f615abce1\"\n                    }\n                ],\n                \"id\": \"640d01666268d7bd6a64e27a\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"order\": 1678810748753,\n                \"_id\": \"640d06ba41acb45155fec500\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-11T22:53:54.893Z\",\n                \"course\": \"640cf34d80db9d86441c2f50\",\n                \"course_section\": \"640d01466268d7bd6a64e24b\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d06c341acb45155fec508\",\n                        \"exercise\": \"640d06ba41acb45155fec500\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d06c341acb45155fec508\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640d06c641acb45155fec50c\",\n                        \"exercise\": \"640d06ba41acb45155fec500\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640d06c641acb45155fec50c\"\n                    }\n                ],\n                \"id\": \"640d06ba41acb45155fec500\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"_id\": \"640e43008cbd245d3f3e88e8\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-12T21:22:13.199Z\",\n                \"course\": \"640e42e48cbd245d3f3e88df\",\n                \"course_section\": \"640e42f88cbd245d3f3e88e3\",\n                \"order\": 1678656133199,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640e430d8cbd245d3f3e88f0\",\n                        \"exercise\": \"640e43008cbd245d3f3e88e8\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640e430d8cbd245d3f3e88f0\"\n                    }\n                ],\n                \"id\": \"640e43008cbd245d3f3e88e8\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"_id\": \"640e48d51959f34643be0303\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-12T21:48:11.987Z\",\n                \"course\": \"640e48c51959f34643be02f6\",\n                \"course_section\": \"640e48d11959f34643be02fe\",\n                \"order\": 1678657691987,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640e48da1959f34643be030b\",\n                        \"exercise\": \"640e48d51959f34643be0303\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640e48da1959f34643be030b\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640e48dd1959f34643be030f\",\n                        \"exercise\": \"640e48d51959f34643be0303\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640e48dd1959f34643be030f\"\n                    }\n                ],\n                \"id\": \"640e48d51959f34643be0303\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"_id\": \"640f15e0e417e5c3e9453140\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-13T11:39:29.138Z\",\n                \"course\": \"640f15aee417e5c3e9453117\",\n                \"course_section\": \"640f15b8e417e5c3e945311b\",\n                \"order\": 1678707569138,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640f15e8e417e5c3e9453148\",\n                        \"exercise\": \"640f15e0e417e5c3e9453140\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640f15e8e417e5c3e9453148\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640f15eae417e5c3e945314c\",\n                        \"exercise\": \"640f15e0e417e5c3e9453140\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640f15eae417e5c3e945314c\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640f15eee417e5c3e9453150\",\n                        \"exercise\": \"640f15e0e417e5c3e9453140\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640f15eee417e5c3e9453150\"\n                    }\n                ],\n                \"id\": \"640f15e0e417e5c3e9453140\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"_id\": \"640f15f3e417e5c3e9453155\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-13T11:39:29.138Z\",\n                \"course\": \"640f15aee417e5c3e9453117\",\n                \"course_section\": \"640f15b8e417e5c3e945311b\",\n                \"order\": 1678707569138,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640f15f9e417e5c3e945315d\",\n                        \"exercise\": \"640f15f3e417e5c3e9453155\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640f15f9e417e5c3e945315d\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640f15fce417e5c3e9453161\",\n                        \"exercise\": \"640f15f3e417e5c3e9453155\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640f15fce417e5c3e9453161\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640f1600e417e5c3e9453165\",\n                        \"exercise\": \"640f15f3e417e5c3e9453155\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640f1600e417e5c3e9453165\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"640f1603e417e5c3e9453169\",\n                        \"exercise\": \"640f15f3e417e5c3e9453155\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"640f1603e417e5c3e9453169\"\n                    }\n                ],\n                \"id\": \"640f15f3e417e5c3e9453155\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"_id\": \"641072d3be5a26049d889f29\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-14T13:00:44.959Z\",\n                \"course\": \"640f1e419048d55d79a95e60\",\n                \"course_section\": \"641072c5be5a26049d889f24\",\n                \"order\": 1678798844959,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"641072dfbe5a26049d889f31\",\n                        \"exercise\": \"641072d3be5a26049d889f29\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641072dfbe5a26049d889f31\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"641072e3be5a26049d889f35\",\n                        \"exercise\": \"641072d3be5a26049d889f29\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641072e3be5a26049d889f35\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"641072e8be5a26049d889f39\",\n                        \"exercise\": \"641072d3be5a26049d889f29\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641072e8be5a26049d889f39\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"641072eebe5a26049d889f3d\",\n                        \"exercise\": \"641072d3be5a26049d889f29\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641072eebe5a26049d889f3d\"\n                    }\n                ],\n                \"id\": \"641072d3be5a26049d889f29\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"_id\": \"64107370be5a26049d889f62\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-14T13:00:44.959Z\",\n                \"course\": \"640f1e419048d55d79a95e60\",\n                \"course_section\": \"641072c5be5a26049d889f24\",\n                \"order\": 1678798844959,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"641073abbe5a26049d889f85\",\n                        \"exercise\": \"64107370be5a26049d889f62\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641073abbe5a26049d889f85\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"641073bebe5a26049d889f8e\",\n                        \"exercise\": \"64107370be5a26049d889f62\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641073bebe5a26049d889f8e\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"6410741cbe5a26049d889fab\",\n                        \"exercise\": \"64107370be5a26049d889f62\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"6410741cbe5a26049d889fab\"\n                    }\n                ],\n                \"id\": \"64107370be5a26049d889f62\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"_id\": \"6410740fbe5a26049d889fa3\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-14T13:00:44.959Z\",\n                \"course\": \"640f1e419048d55d79a95e60\",\n                \"course_section\": \"641072c5be5a26049d889f24\",\n                \"order\": 1678798844959,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"64107424be5a26049d889faf\",\n                        \"exercise\": \"6410740fbe5a26049d889fa3\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"64107424be5a26049d889faf\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"6410742dbe5a26049d889fb3\",\n                        \"exercise\": \"6410740fbe5a26049d889fa3\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"6410742dbe5a26049d889fb3\"\n                    },\n                    {\n                        \"type\": \"question\",\n                        \"_id\": \"6410744abe5a26049d889fc3\",\n                        \"exercise\": \"6410740fbe5a26049d889fa3\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"6410744abe5a26049d889fc3\"\n                    }\n                ],\n                \"id\": \"6410740fbe5a26049d889fa3\"\n            },\n            {\n                \"type\": \"exercise\",\n                \"_id\": \"64107444be5a26049d889fb8\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-14T13:00:44.959Z\",\n                \"course\": \"640f1e419048d55d79a95e60\",\n                \"course_section\": \"6410740bbe5a26049d889f9e\",\n                \"order\": 1678798844959,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"_id\": \"64109dcd2cdd13b02b39a601\",\n                        \"type\": \"question\",\n                        \"exercise\": \"64107444be5a26049d889fb8\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"64109dcd2cdd13b02b39a601\"\n                    },\n                    {\n                        \"_id\": \"64109dd32cdd13b02b39a606\",\n                        \"type\": \"question\",\n                        \"exercise\": \"64107444be5a26049d889fb8\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"64109dd32cdd13b02b39a606\"\n                    }\n                ],\n                \"id\": \"64107444be5a26049d889fb8\"\n            }\n        ]\n    }\n}"}],"_postman_id":"579b6fad-f063-4dc8-a811-8e63ef64606b"},{"name":"Get exercise data","event":[{"listen":"test","script":{"id":"c8a3a6ec-46e3-4921-9af5-ff3f27f2f6a4","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const exerciseId = response.data?.exercise?._id\r","\r","    if (exerciseId) {\r","        pm.collectionVariables.set(\"exerciseId\", exerciseId)\r","    }\r","\r","    const exercise = response.data.exercise\r","    const questions = exercise.questions\r","\r","    let count = 0\r","    questions.forEach((question) => {\r","        pm.collectionVariables.set('questionId' + `_${count}`, question._id)\r","        count ++\r","    })\r","}"],"type":"text/javascript"}}],"id":"2c0a1357-84f2-442a-8ef7-5694416f3dcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["exercise",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"9679d94b-ef1f-4bde-afd6-1e9a2d268520","type":"any","value":"","key":"id"}]}},"response":[{"id":"cc8b5c76-59c6-4af2-9b67-3abb702a2e06","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/exercise/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["exercise",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1042"},{"key":"ETag","value":"W/\"412-uaIrkNcEqjH4OGqIThyNuHni3Qc\""},{"key":"Set-Cookie","value":"connect.sid=s%3ADN9d-HG1PEwIzSo8QX4ETBTgTItNUqRv.8lqC2Uwp9XydsVpvjlvap%2Ba3yJIuwPO3SKsfdoqBDiI; Path=/; HttpOnly"},{"key":"Date","value":"Sun, 05 Mar 2023 00:00:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"exercise\": {\n            \"_id\": \"6411dc32d07a77d6c06a4555\",\n            \"type\": \"exercise\",\n            \"title\": \"Introduction to Python\",\n            \"description\": \"This is an exercise on the introduction to python\",\n            \"duration\": 10,\n            \"date\": \"2023-03-15T14:41:13.796Z\",\n            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n            \"course_section\": \"6411dc27d07a77d6c06a454a\",\n            \"order\": 1678891273796,\n            \"__v\": 0,\n            \"questions\": [\n                {\n                    \"_id\": \"6411dc4ad07a77d6c06a4577\",\n                    \"type\": \"question\",\n                    \"exercise\": \"6411dc32d07a77d6c06a4555\",\n                    \"question\": \"What is a closure in JavaScript?\",\n                    \"correct_option\": \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                    \"options\": [\n                        \"A closure is an object that holds primitive values\",\n                        \"A closure is a function that can only be called once\",\n                        \"A closure is a function that has access to its outer function scope only while the outer function is executing\",\n                        \"A closure is a function that has access to global variables\"\n                    ],\n                    \"__v\": 22,\n                    \"id\": \"6411dc4ad07a77d6c06a4577\"\n                },\n                {\n                    \"_id\": \"6411dc58d07a77d6c06a4584\",\n                    \"type\": \"question\",\n                    \"exercise\": \"6411dc32d07a77d6c06a4555\",\n                    \"question\": \"How do you check if a variable is an array in JavaScript?\",\n                    \"correct_option\": \"Array.isArray()\",\n                    \"options\": [\n                        \"typeof\",\n                        \"Array.isArray()\",\n                        \"instanceof\",\n                        \"all of the above\"\n                    ],\n                    \"__v\": 22,\n                    \"id\": \"6411dc58d07a77d6c06a4584\"\n                }\n            ],\n            \"id\": \"6411dc32d07a77d6c06a4555\",\n            \"isCompleted\": true\n        }\n    }\n}"}],"_postman_id":"2c0a1357-84f2-442a-8ef7-5694416f3dcb"},{"name":"Create exercise","event":[{"listen":"test","script":{"id":"c3ff6d1d-79a5-492a-bd8c-998b27fd57f0","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const exerciseId = response.data?.exercise?._id\r","\r","    if (exerciseId) {\r","        pm.collectionVariables.set(\"exerciseId\", exerciseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"7d943573-9bd7-4c1d-bd86-d77b6f4e7501","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Python\",\r\n    \"description\": \"This is an exercise on the introduction to python\",\r\n    \"duration\": 10,\r\n    \"course_id\": \"\",\r\n    \"course_section_id\": \" \"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise/new","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["exercise","new"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f639dc54-90f4-4540-8c21-bea9686bf90f","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Python\",\r\n    \"description\": \"This is an exercise on the introduction to python\",\r\n    \"duration\": 10,\r\n    \"course_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"391"},{"key":"ETag","value":"W/\"187-5H1z3RTypbiLrFKmYS+JqvvQrUo\""},{"key":"Set-Cookie","value":"connect.sid=s%3Arv33Od8T_a6qt9PhpGTLuv0DEZpew7Jh.fqhWpqVHfkdZCfg5ORYwAk0UtZBvgC7oRezyJfd9fDU; Path=/; HttpOnly"},{"key":"Date","value":"Sat, 04 Mar 2023 23:30:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"exercise\": {\n            \"title\": \"Introduction to Python\",\n            \"description\": \"This is an exercise on the introduction to python\",\n            \"duration\": 10,\n            \"date\": \"2023-03-04T23:30:06.440Z\",\n            \"course\": \"63ff4f39ea274eaf1a1e6eb9\",\n            \"isAvailable\": true,\n            \"_id\": \"6403d4876ee7aed3b67ff2e2\",\n            \"createdAt\": \"2023-03-04T23:30:15.755Z\",\n            \"updatedAt\": \"2023-03-04T23:30:15.755Z\",\n            \"__v\": 0,\n            \"id\": \"6403d4876ee7aed3b67ff2e2\"\n        }\n    }\n}"}],"_postman_id":"7d943573-9bd7-4c1d-bd86-d77b6f4e7501"},{"name":"Update exercise","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const exerciseId = response.data?.exercise?._id\r","\r","    if (exerciseId) {\r","        pm.collectionVariables.set(\"exerciseId\", exerciseId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"ade7723e-d34b-4bd7-b230-30a4af608e41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Open Source a\",\r\n    \"description\": \"This course covers the Introduction to Open Source\",\r\n    \"duration\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise/update/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["exercise","update",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"5d7e9751-7026-4659-a0be-75fef062fe05","type":"any","value":"","key":"id"}]}},"response":[{"id":"97c82b8e-21a8-4c84-8c24-238057f5466b","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\",\r\n    \"duration\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/exercise/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["exercise","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"425"},{"key":"ETag","value":"W/\"1a9-uR4hp8zN1rdYB90sSOucMBlwFgU\""},{"key":"Date","value":"Sun, 05 Mar 2023 00:15:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Exercise Updated\",\n        \"exercise\": {\n            \"_id\": \"6403def679b959e77aa75add\",\n            \"title\": \"Introduction to Open Source\",\n            \"description\": \"This course covers the Introduction to Open Source\",\n            \"duration\": 2,\n            \"date\": \"2023-03-05T00:13:24.322Z\",\n            \"course\": \"63ff4f39ea274eaf1a1e6eb9\",\n            \"isAvailable\": true,\n            \"createdAt\": \"2023-03-05T00:14:46.083Z\",\n            \"updatedAt\": \"2023-03-05T00:15:34.931Z\",\n            \"__v\": 0,\n            \"id\": \"6403def679b959e77aa75add\"\n        }\n    }\n}"}],"_postman_id":"ade7723e-d34b-4bd7-b230-30a4af608e41"},{"name":"Delete exercise","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":[""],"type":"text/javascript"}}],"id":"848545fc-87f9-4b81-914e-d2bd1938e84d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise/delete/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["exercise","delete",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"d5f7f77b-93ed-45d6-b23e-c6f455f79387","type":"any","value":"","key":"id"}]}},"response":[{"id":"1a130c94-8121-485d-a450-a426bf8fa2a6","name":"Success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/exercise/delete/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["exercise","delete",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-fUyKzmsDrCKPFA3HGJ2xTbLkGUo\""},{"key":"Date","value":"Sun, 05 Mar 2023 00:14:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Exercise deleted successfully\"\n    }\n}"}],"_postman_id":"848545fc-87f9-4b81-914e-d2bd1938e84d"},{"name":"Score Exercise","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const quiz_report = response.data?.report\r","\r","    if (quiz_report) {\r","        pm.collectionVariables.set(\"submittedExerciseId\", quiz_report._id)\r","    }\r","}"],"type":"text/javascript"}}],"id":"9c7bcca5-b8a7-4c6f-adab-665ea6afd10d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"submission\": {\r\n        \"\": \"blue\",\r\n        \"\": \"blue\",\r\n        \"\": \"blue\",\r\n        \"\": \"blue\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise/score/:id","description":"<p>The keys for the <code>submission</code> property should be the <code>id</code> of the questions answered,</p>\n<p>The values should be the option chosen by the student for that particular question.</p>\n<h4 id=\"note\">NOTE:</h4>\n<p>All options should be in Upper case</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["exercise","score",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"25a6c344-7276-452b-9063-52420654d0d0","type":"any","value":"","key":"id"}]}},"response":[{"id":"a4f85ef5-cfcc-4333-ae62-1c04aaef01cb","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"submission\": {\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"D\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/exercise/score/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["exercise","score",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"4166"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 05 Mar 2023 19:42:51 GMT"},{"key":"Etag","value":"W/\"1046-jpK3b3IjzdOoPTO/HOFSkC3+MUc\""},{"key":"Ngrok-Trace-Id","value":"5515f70815a0e453cc00900ba37fcfd0"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"report\": {\n            \"exercise\": {\n                \"_id\": \"641ee2c3818b0e8c297a4c17\",\n                \"type\": \"exercise\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-25T12:01:00.908Z\",\n                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                \"order\": 1679745660908,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"_id\": \"641ee2c8818b0e8c297a4c1f\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2c8818b0e8c297a4c1f\"\n                    },\n                    {\n                        \"_id\": \"641ee2cb818b0e8c297a4c23\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2cb818b0e8c297a4c23\"\n                    },\n                    {\n                        \"_id\": \"641ee2ce818b0e8c297a4c27\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2ce818b0e8c297a4c27\"\n                    },\n                    {\n                        \"_id\": \"641ee2d0818b0e8c297a4c2b\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2d0818b0e8c297a4c2b\"\n                    },\n                    {\n                        \"_id\": \"641ee2d1818b0e8c297a4c2f\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2d1818b0e8c297a4c2f\"\n                    }\n                ],\n                \"id\": \"641ee2c3818b0e8c297a4c17\"\n            },\n            \"user\": \"63d4889852d1f1ff958237a4\",\n            \"score\": 5,\n            \"percentage_passed\": 100,\n            \"_id\": \"6424a2bfe4580f026bfd0347\",\n            \"submission\": [\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2c8818b0e8c297a4c1f\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2c8818b0e8c297a4c1f\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd0348\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2cb818b0e8c297a4c23\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2cb818b0e8c297a4c23\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd0349\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2ce818b0e8c297a4c27\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2ce818b0e8c297a4c27\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd034a\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2d0818b0e8c297a4c2b\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2d0818b0e8c297a4c2b\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd034b\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2d1818b0e8c297a4c2f\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2d1818b0e8c297a4c2f\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd034c\"\n                }\n            ],\n            \"report\": \"641ee5852f70d0526070bdb3\",\n            \"__v\": 0,\n            \"id\": \"6424a2bfe4580f026bfd0347\",\n            \"best_score\": 5,\n            \"best_percentage_passed\": 100,\n            \"course_progress\": 100\n        },\n        \"certificate\": {\n            \"_id\": \"6419a59757f322597e2589b4\",\n            \"user\": \"63d4889852d1f1ff958237a4\",\n            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n            \"course_report\": \"6419a54807ca71cacef738df\",\n            \"serial_number\": 1679402391767,\n            \"certificate_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1679402367/course_6411dbb7d07a77d6c06a44f3/user_63d4889852d1f1ff958237a4/certificate_6419a59757f322597e2589b4.png\",\n            \"createdAt\": \"2023-03-21T12:39:56.918Z\",\n            \"updatedAt\": \"2023-03-21T12:39:56.918Z\",\n            \"__v\": 0,\n            \"id\": \"6419a59757f322597e2589b4\"\n        }\n    }\n}"},{"id":"aa22dc8f-2815-4c39-aedd-c25da6e52559","name":"Success - Compleed Course","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"submission\": {\r\n        \"\": \"blue\",\r\n        \"\": \"blue\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/exercise/score/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["exercise","score",":id"],"variable":[{"id":"25a6c344-7276-452b-9063-52420654d0d0","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"1591"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 23:17:41 GMT"},{"key":"Etag","value":"W/\"637-tzlsxscUaomsIWOg/Xx3M8Q28+8\""},{"key":"Ngrok-Trace-Id","value":"7d6672fe013aa2468835e126f9d63657"},{"key":"Set-Cookie","value":"connect.sid=s%3Axe2gbGX-Hiil07pgIS-ikBqVHPAhZPeG.ezGNCLkpSLfn8IHERrHPd8AP%2FmPGly6MffxaLSy%2B%2Fw0; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"report\": {\n            \"exercise\": {\n                \"_id\": \"641ee2c3818b0e8c297a4c17\",\n                \"type\": \"exercise\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-25T12:01:00.908Z\",\n                \"course\": \"6411dbb7d07a77d6c06a44f3\",\n                \"course_section\": \"6411dbc4d07a77d6c06a44f7\",\n                \"order\": 1679745660908,\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"_id\": \"641ee2c8818b0e8c297a4c1f\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2c8818b0e8c297a4c1f\"\n                    },\n                    {\n                        \"_id\": \"641ee2cb818b0e8c297a4c23\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2cb818b0e8c297a4c23\"\n                    },\n                    {\n                        \"_id\": \"641ee2ce818b0e8c297a4c27\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2ce818b0e8c297a4c27\"\n                    },\n                    {\n                        \"_id\": \"641ee2d0818b0e8c297a4c2b\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2d0818b0e8c297a4c2b\"\n                    },\n                    {\n                        \"_id\": \"641ee2d1818b0e8c297a4c2f\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2d1818b0e8c297a4c2f\"\n                    }\n                ],\n                \"id\": \"641ee2c3818b0e8c297a4c17\"\n            },\n            \"user\": \"63d4889852d1f1ff958237a4\",\n            \"score\": 5,\n            \"percentage_passed\": 100,\n            \"_id\": \"6424a2bfe4580f026bfd0347\",\n            \"submission\": [\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2c8818b0e8c297a4c1f\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2c8818b0e8c297a4c1f\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd0348\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2cb818b0e8c297a4c23\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2cb818b0e8c297a4c23\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd0349\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2ce818b0e8c297a4c27\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2ce818b0e8c297a4c27\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd034a\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2d0818b0e8c297a4c2b\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2d0818b0e8c297a4c2b\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd034b\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"641ee2d1818b0e8c297a4c2f\",\n                        \"exercise\": \"641ee2c3818b0e8c297a4c17\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"__v\": 0,\n                        \"id\": \"641ee2d1818b0e8c297a4c2f\"\n                    },\n                    \"submitted_option\": \"blue\",\n                    \"_id\": \"6424a2bfe4580f026bfd034c\"\n                }\n            ],\n            \"report\": \"641ee5852f70d0526070bdb3\",\n            \"__v\": 0,\n            \"id\": \"6424a2bfe4580f026bfd0347\",\n            \"best_score\": 5,\n            \"best_percentage_passed\": 100,\n            \"course_progress\": 100\n        },\n        \"certificate\": {\n            \"_id\": \"6419a59757f322597e2589b4\",\n            \"user\": \"63d4889852d1f1ff958237a4\",\n            \"course\": \"6411dbb7d07a77d6c06a44f3\",\n            \"course_report\": \"6419a54807ca71cacef738df\",\n            \"serial_number\": 1679402391767,\n            \"certificate_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1679402367/course_6411dbb7d07a77d6c06a44f3/user_63d4889852d1f1ff958237a4/certificate_6419a59757f322597e2589b4.png\",\n            \"createdAt\": \"2023-03-21T12:39:56.918Z\",\n            \"updatedAt\": \"2023-03-21T12:39:56.918Z\",\n            \"__v\": 0,\n            \"id\": \"6419a59757f322597e2589b4\"\n        }\n    }\n}"}],"_postman_id":"9c7bcca5-b8a7-4c6f-adab-665ea6afd10d"},{"name":"Get previous submissions","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":[""],"type":"text/javascript"}}],"id":"f83dea7e-3031-4ed1-aafd-cdc29f2508bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"submission\": {\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"D\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise/submission/prev/:exerciseId","description":"<p>The keys for the <code>submission</code> property should be the <code>id</code> of the questions answered,</p>\n<p>The values should be the option chosen by the student for that particular question.</p>\n<h4 id=\"note\">NOTE:</h4>\n<p>All options should be in Upper case</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["exercise","submission","prev",":exerciseId"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"600f9ec9-4177-4483-a46d-9656756b2954","type":"any","value":"","key":"exerciseId"}]}},"response":[{"id":"3b3c23b8-fcb4-4bde-9f01-a8937a4407ab","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"submission\": {\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"D\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/exercise/submission/prev/:exerciseId","host":["https://moocs-test.onrender.com/api/v1"],"path":["exercise","submission","prev",":exerciseId"],"variable":[{"key":"exerciseId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"8389"},{"key":"ETag","value":"W/\"20c5-JdjjMZtnv3xwYJ25c7YFN3XMfNI\""},{"key":"Set-Cookie","value":"connect.sid=s%3AljghSBFxzJIxSV515YaESgoO9_Non2PY.k1GoygLRZii%2F%2B%2FVP0OEQWMv%2FyQpNxxtT6IOg0I9C6%2B0; Path=/; HttpOnly"},{"key":"Date","value":"Sun, 05 Mar 2023 22:10:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"report\": {\n            \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n            \"user\": \"63d4889852d1f1ff958237a4\",\n            \"score\": 0,\n            \"_id\": \"64090b8ad2aaef9006fe9867\",\n            \"submission\": [\n                {\n                    \"question\": {\n                        \"_id\": \"64090a408d75e8a4452bd4ce\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:20:48.470Z\",\n                        \"updatedAt\": \"2023-03-08T22:20:48.470Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090a408d75e8a4452bd4ce\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe9868\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090a845690fb280a99742a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:21:56.590Z\",\n                        \"updatedAt\": \"2023-03-08T22:21:56.590Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090a845690fb280a99742a\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe9869\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090abe5690fb280a997443\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:54.864Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:54.864Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090abe5690fb280a997443\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986a\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ac05690fb280a997447\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:56.894Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:56.894Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ac05690fb280a997447\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986b\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ac35690fb280a99744b\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:59.778Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:59.778Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ac35690fb280a99744b\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986c\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ad55690fb280a99745e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:17.184Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:17.184Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ad55690fb280a99745e\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986d\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ad75690fb280a997462\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:19.996Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:19.996Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ad75690fb280a997462\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986e\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ada5690fb280a997466\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:22.140Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:22.140Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ada5690fb280a997466\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe986f\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090adc5690fb280a99746a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:24.368Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:24.368Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090adc5690fb280a99746a\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe9870\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ade5690fb280a99746e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:26.351Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:26.351Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ade5690fb280a99746e\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe9871\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ae05690fb280a997472\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:28.786Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:28.786Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae05690fb280a997472\"\n                    },\n                    \"submitted_option\": \"D\",\n                    \"_id\": \"64090b8ad2aaef9006fe9872\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ae35690fb280a997476\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:31.224Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:31.224Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae35690fb280a997476\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9873\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ae55690fb280a99747a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:33.471Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:33.471Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae55690fb280a99747a\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9874\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ae75690fb280a99747e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:35.979Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:35.979Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae75690fb280a99747e\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9875\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090aea5690fb280a997482\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:38.016Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:38.016Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090aea5690fb280a997482\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9876\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090aef5690fb280a997486\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:43.066Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:43.066Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090aef5690fb280a997486\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9877\"\n                }\n            ],\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"f83dea7e-3031-4ed1-aafd-cdc29f2508bf"},{"name":"Get submission data","event":[{"listen":"test","script":{"id":"ca6e40b2-df60-48b9-b687-e80ec7b0cbc1","exec":[""],"type":"text/javascript"}}],"id":"a5d3d94d-b10c-4002-af3b-2fd32f078834","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"submission\": {\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"D\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise/submission/:id","description":"<p>The keys for the <code>submission</code> property should be the <code>id</code> of the questions answered,</p>\n<p>The values should be the option chosen by the student for that particular question.</p>\n<h4 id=\"note\">NOTE:</h4>\n<p>All options should be in Upper case</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["exercise","submission",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"b56feaab-0370-4356-8d98-6b29a0e93348","type":"any","value":"","key":"id"}]}},"response":[{"id":"c298ab87-93b7-48b1-b5c3-20af4d9533ae","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"submission\": {\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"B\",\r\n        \"\": \"D\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/exercise/submission/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["exercise","submission",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"4170"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 05 Mar 2023 22:37:57 GMT"},{"key":"Etag","value":"W/\"104a-kXlPexiVBxvazZQekdZe2DQfXzY\""},{"key":"Ngrok-Trace-Id","value":"4617da3ec4549124fd7b4ff1f9f8e439"},{"key":"Set-Cookie","value":"connect.sid=s%3AZVtmFaYfa0Ihh7eoPWBkpoMs6xUakp-A.mD8uoMYsQ%2B2pb3INWlYlkRUK4uqzyufvcDkX4U1Nupw; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"submission\": {\n            \"_id\": \"64090b8ad2aaef9006fe9867\",\n            \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n            \"user\": \"63d4889852d1f1ff958237a4\",\n            \"score\": 0,\n            \"submission\": [\n                {\n                    \"question\": {\n                        \"_id\": \"64090a408d75e8a4452bd4ce\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:20:48.470Z\",\n                        \"updatedAt\": \"2023-03-08T22:20:48.470Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090a408d75e8a4452bd4ce\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe9868\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090a845690fb280a99742a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:21:56.590Z\",\n                        \"updatedAt\": \"2023-03-08T22:21:56.590Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090a845690fb280a99742a\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe9869\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090abe5690fb280a997443\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:54.864Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:54.864Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090abe5690fb280a997443\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986a\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ac05690fb280a997447\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:56.894Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:56.894Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ac05690fb280a997447\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986b\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ac35690fb280a99744b\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:22:59.778Z\",\n                        \"updatedAt\": \"2023-03-08T22:22:59.778Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ac35690fb280a99744b\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986c\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ad55690fb280a99745e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:17.184Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:17.184Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ad55690fb280a99745e\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986d\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ad75690fb280a997462\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:19.996Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:19.996Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ad75690fb280a997462\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe986e\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ada5690fb280a997466\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:22.140Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:22.140Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ada5690fb280a997466\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe986f\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090adc5690fb280a99746a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:24.368Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:24.368Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090adc5690fb280a99746a\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe9870\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ade5690fb280a99746e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:26.351Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:26.351Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ade5690fb280a99746e\"\n                    },\n                    \"submitted_option\": \"B\",\n                    \"_id\": \"64090b8ad2aaef9006fe9871\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ae05690fb280a997472\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:28.786Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:28.786Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae05690fb280a997472\"\n                    },\n                    \"submitted_option\": \"D\",\n                    \"_id\": \"64090b8ad2aaef9006fe9872\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ae35690fb280a997476\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:31.224Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:31.224Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae35690fb280a997476\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9873\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ae55690fb280a99747a\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:33.471Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:33.471Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae55690fb280a99747a\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9874\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090ae75690fb280a99747e\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:35.979Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:35.979Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090ae75690fb280a99747e\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9875\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090aea5690fb280a997482\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:38.016Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:38.016Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090aea5690fb280a997482\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9876\"\n                },\n                {\n                    \"question\": {\n                        \"_id\": \"64090aef5690fb280a997486\",\n                        \"exercise\": \"64090a3b8d75e8a4452bd4ca\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:23:43.066Z\",\n                        \"updatedAt\": \"2023-03-08T22:23:43.066Z\",\n                        \"__v\": 0,\n                        \"id\": \"64090aef5690fb280a997486\"\n                    },\n                    \"_id\": \"64090b8ad2aaef9006fe9877\"\n                }\n            ],\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"a5d3d94d-b10c-4002-af3b-2fd32f078834"}],"id":"e5524527-6fd5-4124-9396-2cf0449b5b2d","event":[{"listen":"prerequest","script":{"id":"daf6efed-bed8-4604-bb4d-bab4cb684334","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d5ef9186-c02b-43d2-a51d-0604032907bd","type":"text/javascript","exec":[""]}}],"_postman_id":"e5524527-6fd5-4124-9396-2cf0449b5b2d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}}},{"name":"Question","item":[{"name":"Get questions","id":"cdc5038c-ef6d-4602-8a28-c447f98644b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"exercise\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/question/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["question",""],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4f0cd11b-2ed2-40de-b365-0d911f1f1797","name":"Success - All questions","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/question/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"669"},{"key":"ETag","value":"W/\"29d-Q1INlca8TXxCNnAU4qZshiYScAY\""},{"key":"Set-Cookie","value":"connect.sid=s%3AsHu2gE8Nf4ezE6ceXlKQY7dkyM4nuuRc.awchpxFK5NYvUxLXq%2BbqbvASXMCs4ZOmJBCKZxyipd0; Path=/; HttpOnly"},{"key":"Date","value":"Sat, 04 Mar 2023 23:41:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"questions\": [\n            {\n                \"_id\": \"6403d64dfc18760d66584422\",\n                \"exercise\": \"6403d4e9c6cf29346f18d2bf\",\n                \"question\": \"What is the color of water\",\n                \"correct_option\": \"A\",\n                \"options\": {\n                    \"A\": \"colorless\",\n                    \"B\": \"blue\",\n                    \"C\": \"pink\",\n                    \"D\": \"purple\"\n                },\n                \"createdAt\": \"2023-03-04T23:37:49.681Z\",\n                \"updatedAt\": \"2023-03-04T23:37:49.681Z\",\n                \"__v\": 0,\n                \"id\": \"6403d64dfc18760d66584422\"\n            },\n            {\n                \"_id\": \"6403d6626402fd8ae98f13f9\",\n                \"exercise\": \"6403d4e9c6cf29346f18d2bf\",\n                \"question\": \"What is the color of water\",\n                \"correct_option\": \"A\",\n                \"options\": {\n                    \"A\": \"colorless\",\n                    \"B\": \"blue\",\n                    \"C\": \"pink\",\n                    \"D\": \"purple\"\n                },\n                \"createdAt\": \"2023-03-04T23:38:10.668Z\",\n                \"updatedAt\": \"2023-03-04T23:38:10.668Z\",\n                \"__v\": 0,\n                \"id\": \"6403d6626402fd8ae98f13f9\"\n            }\n        ]\n    }\n}"},{"id":"a23d0cd1-7e11-4da3-952e-997578f6953c","name":"Success - Linked to exercise","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"exercise\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/question/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"669"},{"key":"ETag","value":"W/\"29d-Q1INlca8TXxCNnAU4qZshiYScAY\""},{"key":"Date","value":"Sat, 04 Mar 2023 23:42:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"questions\": [\n            {\n                \"_id\": \"6403d64dfc18760d66584422\",\n                \"exercise\": \"6403d4e9c6cf29346f18d2bf\",\n                \"question\": \"What is the color of water\",\n                \"correct_option\": \"A\",\n                \"options\": {\n                    \"A\": \"colorless\",\n                    \"B\": \"blue\",\n                    \"C\": \"pink\",\n                    \"D\": \"purple\"\n                },\n                \"createdAt\": \"2023-03-04T23:37:49.681Z\",\n                \"updatedAt\": \"2023-03-04T23:37:49.681Z\",\n                \"__v\": 0,\n                \"id\": \"6403d64dfc18760d66584422\"\n            },\n            {\n                \"_id\": \"6403d6626402fd8ae98f13f9\",\n                \"exercise\": \"6403d4e9c6cf29346f18d2bf\",\n                \"question\": \"What is the color of water\",\n                \"correct_option\": \"A\",\n                \"options\": {\n                    \"A\": \"colorless\",\n                    \"B\": \"blue\",\n                    \"C\": \"pink\",\n                    \"D\": \"purple\"\n                },\n                \"createdAt\": \"2023-03-04T23:38:10.668Z\",\n                \"updatedAt\": \"2023-03-04T23:38:10.668Z\",\n                \"__v\": 0,\n                \"id\": \"6403d6626402fd8ae98f13f9\"\n            }\n        ]\n    }\n}"}],"_postman_id":"cdc5038c-ef6d-4602-8a28-c447f98644b7"},{"name":"Get question data","event":[{"listen":"test","script":{"id":"6f45bbc5-d855-40ec-9f9c-20f2bd52bbe4","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const questionId = response.data?.question?._id\r","\r","    if (questionId) {\r","        pm.collectionVariables.set(\"questionId\", questionId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"da5acbc6-3efa-4d7a-8b43-1a0d2cd267b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/question/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["question",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"4c014c05-3d25-4a29-a53f-9c647154e795","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/question/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["question",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"351"},{"key":"ETag","value":"W/\"15f-d4sqxernUJ66dPauTPrNaVnijq0\""},{"key":"Date","value":"Sat, 04 Mar 2023 23:43:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"question\": {\n            \"_id\": \"6457b53b000d4b6878f627c3\",\n            \"exercise\": \"6457b32ede8dc93b9bc4c96a\",\n            \"question\": \"What is the color of the sky\",\n            \"correct_option\": \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n            \"options\": [\n                \"colorless\",\n                \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                \"pink\",\n                \"purple\"\n            ],\n            \"options_tr\": [\n                \"بلا ألوان\",\n                \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                \"وردي\",\n                \"أرجواني\"\n            ],\n            \"type\": \"question\",\n            \"__v\": 0,\n            \"correct_option_tr\": \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n            \"question_tr\": \"ما هو لون السماء\",\n            \"id\": \"6457b53b000d4b6878f627c3\"\n        }\n    }\n}"}],"_postman_id":"da5acbc6-3efa-4d7a-8b43-1a0d2cd267b7"},{"name":"Create question","event":[{"listen":"test","script":{"id":"53fc1d45-d2b1-4f7c-99bc-83fcac8ae12c","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const questionId = response.data?.question?._id\r","\r","    if (questionId) {\r","        pm.collectionVariables.set(\"questionId\", questionId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"f73db28d-5a67-4d5c-bd6b-89a23bf0637e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"question\": \"What is the color of the sky\",\r\n    \"options\": [\r\n        \"colorless\", \"blue\", \"pink\", \"purple\"\r\n    ],\r\n    \"correct_answer\": \"blue\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/question/new","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["question","new"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3f0a0671-ac7d-40bb-b898-5c3817b7b5d2","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"question\": \"What is the color of water\",\r\n    \"options\": [\r\n        \"colorless\", \"blue\", \"pink\", \"purple\"\r\n    ],\r\n    \"correct_answer\": \"colorless\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/question/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"351"},{"key":"ETag","value":"W/\"15f-S6bTW0aBseVM+FWc/mrtTxPvlaY\""},{"key":"Set-Cookie","value":"connect.sid=s%3A3Oo1YavEvC6TFR-DB8ioA0llOInWQABr.LeAWgDu0sXGIjZk25AS8NJEEj07DdlZ4Qko0WHbPLnU; Path=/; HttpOnly"},{"key":"Date","value":"Sat, 04 Mar 2023 23:38:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"question\": {\n            \"exercise\": \"6457b32ede8dc93b9bc4c96a\",\n            \"question\": \"What is the color of the sky\",\n            \"correct_option\": \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n            \"options\": [\n                \"colorless\",\n                \"A closure is a function that has access to its outer function scope even after the outer function has returned\",\n                \"pink\",\n                \"purple\"\n            ],\n            \"options_tr\": [\n                \"بلا ألوان\",\n                \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n                \"وردي\",\n                \"أرجواني\"\n            ],\n            \"type\": \"question\",\n            \"_id\": \"6457b53b000d4b6878f627c3\",\n            \"__v\": 0,\n            \"question_tr\": \"ما هو لون السماء\",\n            \"correct_option_tr\": \"الإغلاق وظيفة لها إمكانية الوصول إلى نطاق وظيفتها الخارجية حتى بعد عودة الوظيفة الخارجية\",\n            \"id\": \"6457b53b000d4b6878f627c3\"\n        }\n    }\n}"}],"_postman_id":"f73db28d-5a67-4d5c-bd6b-89a23bf0637e"},{"name":"Update question","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const questionId = response.data?.question?._id\r","\r","    if (questionId) {\r","        pm.collectionVariables.set(\"questionId\", questionId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"20cae6ba-40f9-43cc-9509-cbc049acab3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"question\": \"Why is water wet\",\r\n    \"correct_option\": \"D\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/question/update/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["question","update",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"1fe6e5af-3642-404c-9571-a29e49d677f1","type":"any","value":"","key":"id"}]}},"response":[{"id":"17561b3a-2930-40dd-bc72-e6bbeb06c0ac","name":"Success - question","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"question\": \"Why is water wet\",\r\n    \"correct_option\": \"D\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/question/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["question","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"370"},{"key":"ETag","value":"W/\"172-hkZot6KTliU//DoA5GURVWTrdSs\""},{"key":"Date","value":"Sat, 04 Mar 2023 23:46:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Question Updated\",\n        \"question\": {\n            \"_id\": \"6403d6626402fd8ae98f13f9\",\n            \"exercise\": \"6403d4e9c6cf29346f18d2bf\",\n            \"question\": \"Why is water wet\",\n            \"correct_option\": \"D\",\n            \"options\": {\n                \"A\": \"colorless\",\n                \"B\": \"blue\",\n                \"C\": \"pink\",\n                \"D\": \"purple\"\n            },\n            \"createdAt\": \"2023-03-04T23:38:10.668Z\",\n            \"updatedAt\": \"2023-03-04T23:46:47.246Z\",\n            \"__v\": 0,\n            \"id\": \"6403d6626402fd8ae98f13f9\"\n        }\n    }\n}"}],"_postman_id":"20cae6ba-40f9-43cc-9509-cbc049acab3d"},{"name":"Delete question","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":[""],"type":"text/javascript"}}],"id":"27d33b75-d836-46ac-baa1-092312b8c1ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/question/delete/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["question","delete",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"b3185341-1aeb-494a-96ba-bec4ebb15d4c","type":"any","value":"","key":"id"}]}},"response":[{"id":"3e001d7b-0da2-429d-802f-6f98c883a602","name":"Success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Richie\",\r\n    \"title\": \"Introduction to Open Source\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/question/delete/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["question","delete",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"392"},{"key":"ETag","value":"W/\"188-tFoC+9Qd9bq4Aw4jdpNxLqmTC7E\""},{"key":"Set-Cookie","value":"connect.sid=s%3AE9lXzfAP2ZmP4WJAMT9xVKSxZBQ9vLGB.XZ76sD0IObr7pQxZbKlVOQmU6vcfp6D222zmdB%2BIPOI; Path=/; HttpOnly"},{"key":"Date","value":"Sat, 04 Mar 2023 23:52:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Question has been deleted successfully\",\n        \"question\": {\n            \"_id\": \"6403d6626402fd8ae98f13f9\",\n            \"exercise\": \"6403d4e9c6cf29346f18d2bf\",\n            \"question\": \"Why is water wet\",\n            \"correct_option\": \"D\",\n            \"options\": {\n                \"A\": \"colorless\",\n                \"B\": \"blue\",\n                \"C\": \"pink\",\n                \"D\": \"purple\"\n            },\n            \"createdAt\": \"2023-03-04T23:38:10.668Z\",\n            \"updatedAt\": \"2023-03-04T23:46:47.246Z\",\n            \"__v\": 0,\n            \"id\": \"6403d6626402fd8ae98f13f9\"\n        }\n    }\n}"}],"_postman_id":"27d33b75-d836-46ac-baa1-092312b8c1ca"}],"id":"4be7d193-c85e-4be2-b0e9-d9f76218639b","event":[{"listen":"prerequest","script":{"id":"daf6efed-bed8-4604-bb4d-bab4cb684334","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d5ef9186-c02b-43d2-a51d-0604032907bd","type":"text/javascript","exec":[""]}}],"_postman_id":"4be7d193-c85e-4be2-b0e9-d9f76218639b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}}},{"name":"Text materials","item":[{"name":"Get text materials","id":"e9d19d82-2c17-4f4a-ad4b-3a1e6af16843","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/textmaterial","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["textmaterial"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"45cacc8c-78a3-4153-9f2c-f9638d722ce9","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/exercise"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2048"},{"key":"ETag","value":"W/\"800-schRz1qKEusLj36fqqdJ8txgDXQ\""},{"key":"Date","value":"Sun, 05 Mar 2023 00:14:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"exercises\": [\n            {\n                \"_id\": \"640907cc35ab6f0b7a4a5a85\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-08T22:03:32.566Z\",\n                \"course\": \"6404ef5d3ff04255a24e005c\",\n                \"isAvailable\": true,\n                \"createdAt\": \"2023-03-08T22:10:20.252Z\",\n                \"updatedAt\": \"2023-03-08T22:10:20.252Z\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"_id\": \"640907cf35ab6f0b7a4a5a89\",\n                        \"exercise\": \"640907cc35ab6f0b7a4a5a85\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:23.957Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:23.957Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907cf35ab6f0b7a4a5a89\"\n                    },\n                    {\n                        \"_id\": \"640907d235ab6f0b7a4a5a8d\",\n                        \"exercise\": \"640907cc35ab6f0b7a4a5a85\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:26.670Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:26.670Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907d235ab6f0b7a4a5a8d\"\n                    },\n                    {\n                        \"_id\": \"640907d535ab6f0b7a4a5a91\",\n                        \"exercise\": \"640907cc35ab6f0b7a4a5a85\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:29.188Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:29.188Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907d535ab6f0b7a4a5a91\"\n                    },\n                    {\n                        \"_id\": \"640907d735ab6f0b7a4a5a95\",\n                        \"exercise\": \"640907cc35ab6f0b7a4a5a85\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:31.984Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:31.984Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907d735ab6f0b7a4a5a95\"\n                    }\n                ],\n                \"id\": \"640907cc35ab6f0b7a4a5a85\"\n            },\n            {\n                \"_id\": \"640907ec35ab6f0b7a4a5a9d\",\n                \"title\": \"Introduction to Python\",\n                \"description\": \"This is an exercise on the introduction to python\",\n                \"duration\": 10,\n                \"date\": \"2023-03-08T22:03:32.566Z\",\n                \"course\": \"6404ef5d3ff04255a24e005c\",\n                \"isAvailable\": true,\n                \"createdAt\": \"2023-03-08T22:10:52.904Z\",\n                \"updatedAt\": \"2023-03-08T22:10:52.904Z\",\n                \"__v\": 0,\n                \"questions\": [\n                    {\n                        \"_id\": \"640907f035ab6f0b7a4a5aa1\",\n                        \"exercise\": \"640907ec35ab6f0b7a4a5a9d\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:56.716Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:56.716Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907f035ab6f0b7a4a5aa1\"\n                    },\n                    {\n                        \"_id\": \"640907f335ab6f0b7a4a5aa5\",\n                        \"exercise\": \"640907ec35ab6f0b7a4a5a9d\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:10:59.283Z\",\n                        \"updatedAt\": \"2023-03-08T22:10:59.283Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907f335ab6f0b7a4a5aa5\"\n                    },\n                    {\n                        \"_id\": \"640907f535ab6f0b7a4a5aa9\",\n                        \"exercise\": \"640907ec35ab6f0b7a4a5a9d\",\n                        \"question\": \"What is the color of the sky\",\n                        \"correct_option\": \"blue\",\n                        \"options\": [\n                            \"colorless\",\n                            \"blue\",\n                            \"pink\",\n                            \"purple\"\n                        ],\n                        \"createdAt\": \"2023-03-08T22:11:01.807Z\",\n                        \"updatedAt\": \"2023-03-08T22:11:01.807Z\",\n                        \"__v\": 0,\n                        \"id\": \"640907f535ab6f0b7a4a5aa9\"\n                    }\n                ],\n                \"id\": \"640907ec35ab6f0b7a4a5a9d\"\n            }\n        ]\n    }\n}"}],"_postman_id":"e9d19d82-2c17-4f4a-ad4b-3a1e6af16843"},{"name":"Get textmaterial data","event":[{"listen":"test","script":{"id":"c8a3a6ec-46e3-4921-9af5-ff3f27f2f6a4","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const textmaterialId = response.data?.textmaterial?._id\r","\r","    if (textmaterialId) {\r","        pm.collectionVariables.set(\"textmaterialId\", textmaterialId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"7158363f-9f2b-4742-ae80-c16218acb8f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/textmaterial/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["textmaterial",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"689b65b4-1a80-4bbd-8fa3-6c467df78a1a","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/textmaterial/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["textmaterial",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"733"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 10:43:44 GMT"},{"key":"Etag","value":"W/\"2dd-JfmZkCmtlmjoFxLFvJJnYpiEISw\""},{"key":"Ngrok-Trace-Id","value":"6e8b1b518be2fd59e566cec49a55008b"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"text_material\": {\n            \"_id\": \"640dacd1416cd4aef8fb427f\",\n            \"title\": \"test file\",\n            \"description\": \"fasdfasdf\",\n            \"course\": \"640cf34d80db9d86441c2f50\",\n            \"course_section\": {\n                \"_id\": \"640d01466268d7bd6a64e24b\",\n                \"title\": \"Python Syntax\",\n                \"course\": {\n                    \"_id\": \"640cf34d80db9d86441c2f50\",\n                    \"title\": \"Introduction to animal biology\",\n                    \"description\": \"This course covers the Introduction to Open Source\",\n                    \"id\": \"640cf34d80db9d86441c2f50\"\n                },\n                \"id\": \"640d01466268d7bd6a64e24b\"\n            },\n            \"order\": 1678617758486,\n            \"isAvailable\": true,\n            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678617783/course_640cf34d80db9d86441c2f50/coursesection_640d01466268d7bd6a64e24b/textmaterial_640dacd1416cd4aef8fb427f_camiscope.jpg.jpg\",\n            \"__v\": 0,\n            \"id\": \"640dacd1416cd4aef8fb427f\"\n        }\n    }\n}"}],"_postman_id":"7158363f-9f2b-4742-ae80-c16218acb8f0"},{"name":"Upload text material","event":[{"listen":"test","script":{"id":"c3ff6d1d-79a5-492a-bd8c-998b27fd57f0","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const textmaterialId = response.data?.text_material?._id\r","\r","    if (textmaterialId) {\r","        pm.collectionVariables.set(\"textmaterialId\", textmaterialId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"34c6b0a7-d5be-4e4b-9931-0a0f3c2e900e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"Ww9eSki09/camiscope.jpg"},{"key":"course_section_id","value":" ","type":"text"},{"key":"course_id","value":"","type":"text"},{"key":"title","value":"test file","type":"text"},{"key":"description","value":"fasdfasdf","type":"text"}]},"url":"https://moocs-test.onrender.com/api/v1/textmaterial/new","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["textmaterial","new"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"da2f8d3e-cc6b-4e03-b0ce-9b95ac1e7536","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"Ww9eSki09/camiscope.jpg"},{"key":"course_section_id","value":" ","type":"text"},{"key":"course_id","value":"","type":"text"},{"key":"title","value":"test file","type":"text"},{"key":"description","value":"fasdfasdf","type":"text"}]},"url":"https://moocs-test.onrender.com/api/v1/textmaterial/new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"733"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 10:34:32 GMT"},{"key":"Etag","value":"W/\"2dd-zhatFixHhCsIA6wR3Ntn+3PzB/0\""},{"key":"Ngrok-Trace-Id","value":"3fc2bc67b19813f8675b39cf67aec189"},{"key":"Set-Cookie","value":"connect.sid=s%3AaHFfP46aOfBcTmJ_0ntuNB1E-4lNw8h8.mNiXMh%2B0Fafqd0FwBYens5OgAKstZoUy%2FYZ7HNsx4%2Bk; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"text_material\": {\n            \"type\": \"slide\",\n            \"title\": \"test file\",\n            \"description\": \"fasdfasdf\",\n            \"course\": \"6457afa6d0e661973c26ea4b\",\n            \"course_section\": {\n                \"_id\": \"6457b2538d8ae52e01acd307\",\n                \"title\": \"Programming with other computers\",\n                \"course\": {\n                    \"_id\": \"6457afa6d0e661973c26ea4b\",\n                    \"title\": \"Introduction to open source\",\n                    \"description\": \"This course is an introduction to opersource\",\n                    \"id\": \"6457afa6d0e661973c26ea4b\"\n                },\n                \"id\": \"6457b2538d8ae52e01acd307\"\n            },\n            \"order\": 1683469611364,\n            \"isAvailable\": true,\n            \"_id\": \"6457b636000d4b6878f627cc\",\n            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1683469862/courses/6457afa6d0e661973c26ea4b/coursesections/6457b2538d8ae52e01acd307/textmaterials/6457b636000d4b6878f627cc_RICHIE%20MOLUNO%20___%20RESUME.pdf.pdf\",\n            \"__v\": 0,\n            \"title_tr\": \"ملف اختبار\",\n            \"description_tr\": \"فاسدف\",\n            \"id\": \"6457b636000d4b6878f627cc\"\n        }\n    }\n}"}],"_postman_id":"34c6b0a7-d5be-4e4b-9931-0a0f3c2e900e"},{"name":"Update text material","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":[""],"type":"text/javascript"}}],"id":"094b38c4-90f7-4547-8555-a09912894380","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Open Source a\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/textmaterial/update/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["textmaterial","update",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"f67ef18f-7a74-4e43-9120-54cd9a4a203e","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Open Source a\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/textmaterial/update/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["textmaterial","update",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"794"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 10:58:23 GMT"},{"key":"Etag","value":"W/\"31a-vBYc0x9a/+/ZIZSFIvYQitlaJ/w\""},{"key":"Ngrok-Trace-Id","value":"984127e81a074eda6946fea5ae9f16fd"},{"key":"Set-Cookie","value":"connect.sid=s%3Aiu7upprwCpCm6LZTRVQlLeobz5eNDA9V.DLV1ErTyEwAQpoUaOdUI3O6uj8VXXc8iaxbWUSoi0TE; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"text_material\": {\n            \"_id\": \"640dacd1416cd4aef8fb427f\",\n            \"title\": \"Introduction to Open Source a\",\n            \"description\": \"This course covers the Introduction to Open Source\",\n            \"course\": \"640cf34d80db9d86441c2f50\",\n            \"course_section\": {\n                \"_id\": \"640d01466268d7bd6a64e24b\",\n                \"title\": \"Python Syntax\",\n                \"course\": {\n                    \"_id\": \"640cf34d80db9d86441c2f50\",\n                    \"title\": \"Introduction to animal biology\",\n                    \"description\": \"This course covers the Introduction to Open Source\",\n                    \"id\": \"640cf34d80db9d86441c2f50\"\n                },\n                \"id\": \"640d01466268d7bd6a64e24b\"\n            },\n            \"order\": 1678617758486,\n            \"isAvailable\": true,\n            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678617783/course_640cf34d80db9d86441c2f50/coursesection_640d01466268d7bd6a64e24b/textmaterial_640dacd1416cd4aef8fb427f_camiscope.jpg.jpg\",\n            \"__v\": 0,\n            \"id\": \"640dacd1416cd4aef8fb427f\"\n        }\n    }\n}"}],"_postman_id":"094b38c4-90f7-4547-8555-a09912894380"},{"name":"Delete text material","event":[{"listen":"test","script":{"id":"df191b29-8416-4c6c-bc44-287a3101ff1f","exec":[""],"type":"text/javascript"}}],"id":"c984c03c-0791-449c-b2cb-47b0e5af758f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Open Source a\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/textmaterial/delete/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["textmaterial","delete",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"id":"a63b7bef-6570-46c8-bb9a-1d71e04e9243","type":"any","value":"","key":"id"}]}},"response":[{"id":"139f8dd6-8ac1-4c46-8ee6-b6370b4386ce","name":"Success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Introduction to Open Source a\",\r\n    \"description\": \"This course covers the Introduction to Open Source\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/textmaterial/delete/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["textmaterial","delete",":id"],"variable":[{"id":"a63b7bef-6570-46c8-bb9a-1d71e04e9243","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"733"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 11:06:19 GMT"},{"key":"Etag","value":"W/\"2dd-CFJYzkpaF5+LnWK4FcR3GvutgiM\""},{"key":"Ngrok-Trace-Id","value":"4b8443be775a357c490fc6c0014131be"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"text_material\": {\n            \"_id\": \"640db213b05b2d0d6d3c3874\",\n            \"title\": \"test file\",\n            \"description\": \"fasdfasdf\",\n            \"course\": \"640cf34d80db9d86441c2f50\",\n            \"course_section\": {\n                \"_id\": \"640d01466268d7bd6a64e24b\",\n                \"title\": \"Python Syntax\",\n                \"course\": {\n                    \"_id\": \"640cf34d80db9d86441c2f50\",\n                    \"title\": \"Introduction to animal biology\",\n                    \"description\": \"This course covers the Introduction to Open Source\",\n                    \"id\": \"640cf34d80db9d86441c2f50\"\n                },\n                \"id\": \"640d01466268d7bd6a64e24b\"\n            },\n            \"order\": 1678619103737,\n            \"isAvailable\": true,\n            \"file_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678619129/course_640cf34d80db9d86441c2f50/coursesection_640d01466268d7bd6a64e24b/textmaterial_640db213b05b2d0d6d3c3874_camiscope.jpg.jpg\",\n            \"__v\": 0,\n            \"id\": \"640db213b05b2d0d6d3c3874\"\n        }\n    }\n}"}],"_postman_id":"c984c03c-0791-449c-b2cb-47b0e5af758f"}],"id":"f01e54ed-ee38-4032-af6d-834ababbbc54","event":[{"listen":"prerequest","script":{"id":"daf6efed-bed8-4604-bb4d-bab4cb684334","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d5ef9186-c02b-43d2-a51d-0604032907bd","type":"text/javascript","exec":[""]}}],"_postman_id":"f01e54ed-ee38-4032-af6d-834ababbbc54","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}}},{"name":"Certificate","item":[{"name":"Get all users certificates","id":"c428a0eb-7690-438a-9f0f-9526ae3e98c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"exercise\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/certificate/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["certificate",""],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"d975fc3c-fd54-48ac-bdbe-ff1f231b2627","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"exercise\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/certificate/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"1525"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 23:53:37 GMT"},{"key":"Etag","value":"W/\"5f5-K02h/FS0NEhzpk3IA0+TOMQbPFA\""},{"key":"Ngrok-Trace-Id","value":"4c56e8153e8a7fa13576e25f0f7c4028"},{"key":"Set-Cookie","value":"connect.sid=s%3AxcNsmQ2ca0DFKK4KMgTFXu4dm8DB7HzD.DhUo6NECf9Hsc6c%2BSkZTcmu5mI7EDrS0Vk8glzYQyV8; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"certificates\": [\n            {\n                \"serial_number\": \"1678665207559\",\n                \"_id\": \"640e5d52fcb2d5252548402a\",\n                \"user\": {\n                    \"_id\": \"63d4889852d1f1ff958237a4\",\n                    \"firstname\": \"testfirstname\",\n                    \"lastname\": \"testlastname\",\n                    \"email\": \"moocssuperadmin@oscsa.com\"\n                },\n                \"course\": {\n                    \"_id\": \"640e48c51959f34643be02f6\",\n                    \"title\": \"Introduction to animal biology\",\n                    \"description\": \"This course covers the Introduction to Open Source\",\n                    \"id\": \"640e48c51959f34643be02f6\"\n                },\n                \"course_report\": \"640e48c91959f34643be02fa\",\n                \"number\": \"1678662994641\",\n                \"certificate_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678662969/course_640e48c51959f34643be02f6/user_63d4889852d1f1ff958237a4/certificate_640e5d52fcb2d5252548402a.png\",\n                \"createdAt\": \"2023-03-12T23:16:38.657Z\",\n                \"updatedAt\": \"2023-03-12T23:16:38.657Z\",\n                \"__v\": 0,\n                \"id\": \"640e5d52fcb2d5252548402a\"\n            },\n            {\n                \"_id\": \"640e5d8e233030ef42fa095e\",\n                \"user\": {\n                    \"_id\": \"63d4889852d1f1ff958237a4\",\n                    \"firstname\": \"testfirstname\",\n                    \"lastname\": \"testlastname\",\n                    \"email\": \"moocssuperadmin@oscsa.com\"\n                },\n                \"course\": {\n                    \"_id\": \"640e48c51959f34643be02f6\",\n                    \"title\": \"Introduction to animal biology\",\n                    \"description\": \"This course covers the Introduction to Open Source\",\n                    \"id\": \"640e48c51959f34643be02f6\"\n                },\n                \"course_report\": \"640e48c91959f34643be02fa\",\n                \"serial_number\": \"1678663054953\",\n                \"certificate_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678663030/course_640e48c51959f34643be02f6/user_63d4889852d1f1ff958237a4/certificate_640e5d8e233030ef42fa095e.png\",\n                \"createdAt\": \"2023-03-12T23:17:40.585Z\",\n                \"updatedAt\": \"2023-03-12T23:17:40.585Z\",\n                \"__v\": 0,\n                \"id\": \"640e5d8e233030ef42fa095e\"\n            }\n        ]\n    }\n}"}],"_postman_id":"c428a0eb-7690-438a-9f0f-9526ae3e98c8"},{"name":"Get certificate for course","event":[{"listen":"test","script":{"id":"6f45bbc5-d855-40ec-9f9c-20f2bd52bbe4","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const certificateId = response.data?.certificate?._id\r","    const certificateSN = response.data?.certificate?.serial_number\r","\r","    if (certificateId) {\r","        pm.collectionVariables.set(\"certificateId\", certificateId)\r","    }\r","\r","    if (certificateSN) {\r","        pm.collectionVariables.set(\"certificateSN\", certificateSN)\r","    }\r","}"],"type":"text/javascript"}}],"id":"e94bf200-cad3-4097-8452-db6f8fe0fba6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/certificate/course/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["certificate","course",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"ed233970-f93e-4729-93a7-e0ead098673c","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/certificate/course/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["certificate","course",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"824"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 12 Mar 2023 23:46:03 GMT"},{"key":"Etag","value":"W/\"338-nAUo9QUsKSsokR6ohcHZ+bb3iJg\""},{"key":"Ngrok-Trace-Id","value":"86c11d6e727938091bf17ddc03022ccb"},{"key":"Set-Cookie","value":"connect.sid=s%3A_BTAUrTViG8FSvlKTcgGc2IeuFRjqex1.eRDlu%2FbR2Vi%2BSIqR9eiXbe%2FuBc30gAllEQaPF4FZ3Bw; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Certificate issued\",\n        \"certificate\": {\n            \"serial_number\": \"1678664753132\",\n            \"_id\": \"640e5d52fcb2d5252548402a\",\n            \"user\": {\n                \"_id\": \"63d4889852d1f1ff958237a4\",\n                \"firstname\": \"testfirstname\",\n                \"lastname\": \"testlastname\",\n                \"email\": \"moocssuperadmin@oscsa.com\"\n            },\n            \"course\": {\n                \"_id\": \"640e48c51959f34643be02f6\",\n                \"title\": \"Introduction to animal biology\",\n                \"description\": \"This course covers the Introduction to Open Source\",\n                \"id\": \"640e48c51959f34643be02f6\"\n            },\n            \"course_report\": \"640e48c91959f34643be02fa\",\n            \"number\": \"1678662994641\",\n            \"certificate_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678662969/course_640e48c51959f34643be02f6/user_63d4889852d1f1ff958237a4/certificate_640e5d52fcb2d5252548402a.png\",\n            \"createdAt\": \"2023-03-12T23:16:38.657Z\",\n            \"updatedAt\": \"2023-03-12T23:16:38.657Z\",\n            \"__v\": 0,\n            \"id\": \"640e5d52fcb2d5252548402a\"\n        }\n    }\n}"},{"id":"15653a4b-cbd0-4959-a07b-edb92f945878","name":"Error course not completed","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/certificate/course/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["certificate","course",":id"],"variable":[{"key":"id","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"34"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 21 Mar 2023 12:41:46 GMT"},{"key":"Etag","value":"W/\"22-AKmcdTi8cOEptlzjz2oO3UvrbsI\""},{"key":"Ngrok-Trace-Id","value":"29ce82fc716f8cb4d84b4ff832cf2c72"},{"key":"Set-Cookie","value":"connect.sid=s%3AxjSQUGl5HPETQlDjOvE8_euOXVINMlgY.4JPeBjsVIzBRjRAR7UZon4KE6DU%2F8OBF0if%2FfUPEd0I; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Course not completed\"\n}"}],"_postman_id":"e94bf200-cad3-4097-8452-db6f8fe0fba6"},{"name":"Get certificate data","event":[{"listen":"test","script":{"id":"6f45bbc5-d855-40ec-9f9c-20f2bd52bbe4","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const certificateId = response.data?.certificate?._id\r","\r","    if (certificateId) {\r","        pm.collectionVariables.set(\"certificateId\", certificateId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"b47d642e-e162-4824-9c8c-90a8ed40db08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/certificate/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["certificate",":id"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"c04d5059-e990-4199-a97b-46bece462461","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/certificate/:id","host":["https://moocs-test.onrender.com/api/v1"],"path":["certificate",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"794"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 Mar 2023 00:23:12 GMT"},{"key":"Etag","value":"W/\"31a-5CCIrDqFCID9I3q9BUIXFTLeYg0\""},{"key":"Ngrok-Trace-Id","value":"195ea1619bf37eef31be628d4aaff2f0"},{"key":"Set-Cookie","value":"connect.sid=s%3AdBFY1ORuo7DpfeEvBnmnpiZMlBmvX4n9.0gn9SPk2mnpX9Y8CSp8ioIOD%2Fm5RWVazIqzKOiR4ywY; Path=/; HttpOnly"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"certificate\": {\n            \"_id\": \"640e6b50d29cff6f2b7913ed\",\n            \"user\": {\n                \"_id\": \"63d4889852d1f1ff958237a4\",\n                \"firstname\": \"testfirstname\",\n                \"lastname\": \"testlastname\",\n                \"email\": \"moocssuperadmin@oscsa.com\",\n                \"role\": \"SuperAdmin\",\n                \"__v\": 0\n            },\n            \"course\": {\n                \"_id\": \"640e48c51959f34643be02f6\",\n                \"title\": \"Introduction to animal biology\",\n                \"description\": \"This course covers the Introduction to Open Source\",\n                \"id\": \"640e48c51959f34643be02f6\"\n            },\n            \"course_report\": \"640e48c91959f34643be02fa\",\n            \"serial_number\": 1678666576148,\n            \"certificate_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678666552/course_640e48c51959f34643be02f6/user_63d4889852d1f1ff958237a4/certificate_640e6b50d29cff6f2b7913ed.png\",\n            \"createdAt\": \"2023-03-13T00:16:22.470Z\",\n            \"updatedAt\": \"2023-03-13T00:16:22.470Z\",\n            \"__v\": 0,\n            \"id\": \"640e6b50d29cff6f2b7913ed\"\n        }\n    }\n}"}],"_postman_id":"b47d642e-e162-4824-9c8c-90a8ed40db08"},{"name":"Verify certificate","event":[{"listen":"test","script":{"id":"53fc1d45-d2b1-4f7c-99bc-83fcac8ae12c","exec":["const response = pm.response.json()\r","if (response.data) {\r","    const certificateId = response.data?.certificate?._id\r","\r","    if (certificateId) {\r","        pm.collectionVariables.set(\"certificateId\", certificateId)\r","    }\r","}"],"type":"text/javascript"}}],"id":"cb52fae3-6df1-4171-8dec-fc960e0adc3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"question\": \"What is the color of the sky\",\r\n    \"options\": [\r\n        \"colorless\", \"blue\", \"pink\", \"purple\"\r\n    ],\r\n    \"correct_answer\": \"blue\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moocs-test.onrender.com/api/v1/certificate/verify/:sn","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}},"urlObject":{"path":["certificate","verify",":sn"],"host":["https://moocs-test.onrender.com/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"sn"}]}},"response":[{"id":"d5608392-5be2-4c5c-9221-48c12221648a","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"question\": \"What is the color of the sky\",\r\n    \"options\": [\r\n        \"colorless\", \"blue\", \"pink\", \"purple\"\r\n    ],\r\n    \"correct_answer\": \"blue\",\r\n    \"exercise_id\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://moocs-test.onrender.com/api/v1/certificate/verify/:sn","host":["https://moocs-test.onrender.com/api/v1"],"path":["certificate","verify",":sn"],"variable":[{"key":"sn","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"796"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 Mar 2023 00:16:50 GMT"},{"key":"Etag","value":"W/\"31c-e4h3WjI9Y/Hsg7lam1TfJY7b6x4\""},{"key":"Ngrok-Trace-Id","value":"8f11c8655fe634e9a93123c0bd957b55"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"message\": \"Certificate found\",\n        \"certificate\": {\n            \"_id\": \"640e6b50d29cff6f2b7913ed\",\n            \"user\": {\n                \"_id\": \"63d4889852d1f1ff958237a4\",\n                \"firstname\": \"testfirstname\",\n                \"lastname\": \"testlastname\",\n                \"email\": \"moocssuperadmin@oscsa.com\"\n            },\n            \"course\": {\n                \"_id\": \"640e48c51959f34643be02f6\",\n                \"title\": \"Introduction to animal biology\",\n                \"description\": \"This course covers the Introduction to Open Source\",\n                \"id\": \"640e48c51959f34643be02f6\"\n            },\n            \"course_report\": \"640e48c91959f34643be02fa\",\n            \"serial_number\": 1678666576148,\n            \"certificate_url\": \"https://res.cloudinary.com/dipyrsqvy/image/upload/v1678666552/course_640e48c51959f34643be02f6/user_63d4889852d1f1ff958237a4/certificate_640e6b50d29cff6f2b7913ed.png\",\n            \"createdAt\": \"2023-03-13T00:16:22.470Z\",\n            \"updatedAt\": \"2023-03-13T00:16:22.470Z\",\n            \"__v\": 0,\n            \"id\": \"640e6b50d29cff6f2b7913ed\"\n        }\n    }\n}"}],"_postman_id":"cb52fae3-6df1-4171-8dec-fc960e0adc3f"}],"id":"8862fd79-b24e-4800-929c-0d337d7e5fc4","event":[{"listen":"prerequest","script":{"id":"daf6efed-bed8-4604-bb4d-bab4cb684334","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d5ef9186-c02b-43d2-a51d-0604032907bd","type":"text/javascript","exec":[""]}}],"_postman_id":"8862fd79-b24e-4800-929c-0d337d7e5fc4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","id":"3b3d1ca4-f29e-4d81-8f6d-18b44a818b92","name":"MOOCs Main","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"47832572-5de5-46f6-8a6c-b601e20862a4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5e4fbbcd-46b5-4a30-a4ae-b96a4e307a87","type":"text/javascript","exec":["const response = pm.response.json()","if (response.data) {","    const access_token = response.data.access_token","    const refresh_token = response.data.refresh_token","","    if (access_token) {","        pm.collectionVariables.set(\"accessToken\", access_token)","    }","","    if (refresh_token) {","        pm.collectionVariables.set(\"refreshToken\", refresh_token)","    }","","}"]}}],"variable":[{"key":"serverURL","value":"https://moocs-test.onrender.com/api/v1"},{"key":"accessToken","value":"","type":"string"},{"key":"email_verification_token","value":""},{"key":"refreshToken","value":""},{"key":"password_reset_token","value":""},{"key":"updatedCourseId","value":"","type":"string"},{"key":"courseId","value":"","type":"string"},{"key":"sectionId","value":"","type":"string"},{"key":"videoId","value":"","type":"string"},{"key":"exerciseId","value":"","type":"string"},{"key":"questionId","value":"","type":"string"},{"key":"questionId_0","value":""},{"key":"questionId_1","value":""},{"key":"questionId_2","value":""},{"key":"questionId_3","value":""},{"key":"questionId_4","value":""},{"key":"questionId_5","value":""},{"key":"questionId_6","value":""},{"key":"questionId_7","value":""},{"key":"questionId_8","value":""},{"key":"questionId_9","value":""},{"key":"questionId_10","value":""},{"key":"submittedExerciseId","value":""},{"key":"questionId_11","value":""},{"key":"questionId_12","value":""},{"key":"questionId_13","value":""},{"key":"questionId_14","value":""},{"key":"questionId_15","value":""},{"key":"courseSectionId","value":" "},{"key":"textmaterialId","value":""},{"key":"certificateId","value":""},{"key":"certificateSN","value":""},{"key":"downloadableResourceId","value":""}]}