{"info":{"_postman_id":"079891be-e479-49ee-b9d8-a1eaa0086287","name":"Simply API","description":"<html><head></head><body><h1 id=\"simply-server\">Simply server</h1>\n<h3 id=\"base-url\">Base URL:</h3>\n<p><a href=\"https://simply-server.herokuapp.com/\"><code>https://simply-server.herokuapp.com/</code></a></p>\n<ul>\n<li><p>select the desired environment. </p>\n<ul>\n<li>local - domain = <code>http://localhost:8080/v1</code></li>\n<li>prod - domain = <code>base URL/v1</code></li>\n</ul>\n</li>\n<li><p><code>completion</code> property of user objects is the current level of the user.</p>\n</li>\n</ul>\n<h3 id=\"every-user-can-be-accessed-via-password-\">Every user can be accessed via password :</h3>\n<p><code>123simply</code></p>\n<p>Users in the system currently: </p>\n<ul>\n<li><a href=\"mailto:hasinthaabeykoon@gmail.com\">hasinthaabeykoon@gmail.com</a></li>\n<li><a href=\"mailto:hello3@gmail.com\">hello3@gmail.com</a></li>\n<li><a href=\"mailto:khk@gmail.com\">khk@gmail.com</a></li>\n<li><a href=\"mailto:reshandissanayake96@gmail.com\">reshandissanayake96@gmail.com</a></li>\n<li><a href=\"mailto:hasinthaabyekoon@gmail.com\">hasinthaabyekoon@gmail.com</a></li>\n<li><a href=\"mailto:reshanputha@gmail.com\">reshanputha@gmail.com</a></li>\n<li><a href=\"mailto:john@gmail.com\">john@gmail.com</a></li>\n</ul>\n<p>JWT will be expired 1h after issuing. If expired, calling an authenticated endpoint will throw 401 with following error response body.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"message\": \"Auth failed!\",\n    \"error\": {\n        \"name\": \"TokenExpiredError\",\n        \"message\": \"jwt expired\",\n        \"expiredAt\": \"2021-04-27T08:48:32.000Z\"\n    }\n}\n</code></pre></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Simply server","slug":"simply-server"}],"owner":"14306889","collectionId":"079891be-e479-49ee-b9d8-a1eaa0086287","publishedId":"TWDfDYXA","public":true,"customColor":{"top-bar":"401e11","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-02T17:23:18.000Z"},"item":[{"name":"User","item":[{"name":"Private","item":[{"name":"Me User profile attempts not populated","id":"5d53c9a6-fd39-4b90-83f1-99c4cde1bf71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/user","description":"<ul>\n<li>Get the user profile.</li>\n<li>Can be used to verify the user's token validity also.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>attempts.practice[$].count</td>\n<td>no of attempts for this practice question</td>\n</tr>\n<tr>\n<td>attempts.compete[$].count</td>\n<td>no of attempts for this compete question</td>\n</tr>\n<tr>\n<td>attempts.practice[$].passed</td>\n<td>status of the last attempt for this practice question</td>\n</tr>\n<tr>\n<td>attempts.compete[$].passed</td>\n<td>status of the last attempt for this compete question</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","name":"Private","type":"folder"}},"urlObject":{"path":["user"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"80dce1b6-c8bc-4874-9984-678dc6a00bb9","name":"Me User profile - attempts not populated","originalRequest":{"method":"GET","header":[],"url":"{{domain}}/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"417"},{"key":"ETag","value":"W/\"1a1-c7mdaczGnFH0QDXtALiX5afzvHk\""},{"key":"Date","value":"Sun, 07 Mar 2021 11:41:46 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"attempts\": {\n        \"practice\": [\n            {\n                \"count\": 3,\n                \"_id\": \"604a357ead63912fa49fc043\",\n                \"question\": \"6044c44dd588fc18284c0965\",\n                \"passed\": false\n            },\n            {\n                \"count\": 2,\n                \"_id\": \"604a3686ad63912fa49fc046\",\n                \"question\": \"6044b1a0f7c198351c81cb84\",\n                \"passed\": true\n            }\n        ],\n        \"compete\": [\n            {\n                \"count\": 1,\n                \"_id\": \"604a372177867b4498bdf25e\",\n                \"question\": \"603e6bf840c1210e78797664\",\n                \"passed\": false\n            },\n            {\n                \"count\": 2,\n                \"_id\": \"604a374777867b4498bdf25f\",\n                \"question\": \"6044c5f58cc20b1ab4e5a0b1\",\n                \"passed\": true\n            }\n        ]\n    },\n    \"xp\": \"Advanced\",\n    \"score\": 55,\n    \"completion\": 1,\n    \"_id\": \"602f2179340f610015a122c6\",\n    \"fname\": \"Hasintha\",\n    \"lname\": \"Abeykoon\",\n    \"email\": \"hasinthaabeykoon@gmail.com\",\n    \"dob\": \"1996-12-24T18:00:00.000Z\",\n    \"institute\": \"UoM\"\n}"}],"_postman_id":"5d53c9a6-fd39-4b90-83f1-99c4cde1bf71"},{"name":"Me User profile - with attempts","id":"b3faa54d-deae-4475-819e-fbfa2c789f32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/user?populate=true","description":"<p>Get the full user profile object.\nPopulated with the question objects for <code>attempts</code> property of the logged in user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","name":"Private","type":"folder"}},"urlObject":{"path":["user"],"host":["{{domain}}"],"query":[{"key":"populate","value":"true"}],"variable":[]}},"response":[{"id":"37d52126-4790-484c-874e-8fd0dc972aef","name":"Me User profile - with attempts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/user?populate=true","host":["{{domain}}"],"path":["user"],"query":[{"key":"populate","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1247"},{"key":"ETag","value":"W/\"4df-v8u4bNiriSkTI4n+TZHarZCChFQ\""},{"key":"Date","value":"Sun, 07 Mar 2021 11:39:08 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"attempts\": {\n        \"practice\": [\n            {\n                \"count\": 3,\n                \"_id\": \"604a357ead63912fa49fc043\",\n                \"question\": {\n                    \"_id\": \"6044c44dd588fc18284c0965\",\n                    \"title\": \"Lvl 1 another question\",\n                    \"description\": \"Decsription for the question\",\n                    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n                    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 1,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"6044c487d588fc18284c0968\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"_id\": \"6044c487d588fc18284c0969\",\n                            \"inputs\": \"Test case 2 inputs\",\n                            \"outputs\": \"Test case 2 outputs\",\n                            \"title\": \"Test case 2 title\",\n                            \"description\": \"Test case 2 decription\"\n                        },\n                        {\n                            \"_id\": \"6044c487d588fc18284c096a\",\n                            \"inputs\": \"Test case 3 inputs\",\n                            \"outputs\": \"Test case 3 outputs\",\n                            \"title\": \"Test case 3 title\",\n                            \"description\": \"Test case 3 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 35\n                },\n                \"passed\": false\n            },\n            {\n                \"count\": 2,\n                \"_id\": \"604a3686ad63912fa49fc046\",\n                \"question\": {\n                    \"_id\": \"6044b1a0f7c198351c81cb84\",\n                    \"title\": \"Level 0 qu 2\",\n                    \"description\": \"Levle 2 question 2\",\n                    \"outputs\": \"Level 2 question 2 dsc\",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 1,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 25\n                },\n                \"passed\": true\n            }\n        ],\n        \"compete\": [\n            {\n                \"count\": 1,\n                \"_id\": \"604a372177867b4498bdf25e\",\n                \"question\": {\n                    \"_id\": \"603e6bf840c1210e78797664\",\n                    \"title\": \"Where are the aliens now?\",\n                    \"description\": \"Compete question 1\",\n                    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n                    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n                    \"difficulty\": \"Easy\",\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"603e6bf840c1210e78797665\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 15\n                },\n                \"passed\": false\n            },\n            {\n                \"count\": 2,\n                \"_id\": \"604a374777867b4498bdf25f\",\n                \"question\": {\n                    \"_id\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"title\": \"another compete Q\",\n                    \"description\": \"Compete question 4\",\n                    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n                    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n                    \"difficulty\": \"Easy\",\n                    \"category\": \"conditionals\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"6044c5f58cc20b1ab4e5a0b2\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"_id\": \"6044c5f58cc20b1ab4e5a0b3\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 30\n                },\n                \"passed\": true\n            }\n        ]\n    },\n    \"xp\": \"Advanced\",\n    \"score\": 55,\n    \"completion\": 1,\n    \"_id\": \"602f2179340f610015a122c6\",\n    \"fname\": \"Hasintha\",\n    \"lname\": \"Abeykoon\",\n    \"email\": \"hasinthaabeykoon@gmail.com\",\n    \"dob\": \"1996-12-24T18:00:00.000Z\",\n    \"institute\": \"UoM\"\n}"}],"_postman_id":"b3faa54d-deae-4475-819e-fbfa2c789f32"},{"name":"User profile","id":"c51add6c-a936-4180-aada-9141e35bca41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fname\": \"khk\",\r\n    \"lname\": \"Abeykoon\",\r\n    \"email\": \"khk@gmail.com\",\r\n    \"password\": \"khk123\",\r\n    \"dob\": \"12/25/1996\",\r\n    \"institute\": \"UoM\",\r\n    \"xp\": \"Intermediate\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user","description":"<p>Updates a user profile.</p>\n<ul>\n<li>Can update a user's personal details mentioned as the request body. Other properties which are available in the user object can not be edited.</li>\n<li>updatable properties: <code>[fname, lname, email, password, dob, institute, xp]</code>.</li>\n<li>If other user object properties are passed, server will ignore &amp; update only the updatable properties with new values.</li>\n<li>Email is constrained as a unique key. Therefore updating to an already existing email will throw a <code>409 conflict</code> error.</li>\n</ul>\n<p><code>xp</code> property can be set only to one of the following values. If any other value is set, will default to <code>Beginner</code>.</p>\n<ul>\n<li><code>Beginner</code></li>\n<li><code>Intermediate</code></li>\n<li><code>Advanced</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","name":"Private","type":"folder"}},"urlObject":{"path":["user"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"2b9f8f44-5cf3-4241-915e-507ca43f1d5c","name":"Email already exists","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"khk@gmail.com\",\r\n    \"dob\": \"1996/12/25\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"141"},{"key":"ETag","value":"W/\"8d-2XS4k/NODSthJ5vwNiOYYyJZkw8\""},{"key":"Date","value":"Fri, 12 Mar 2021 03:36:01 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This email is registered with another account!\",\n    \"error\": {\n        \"type\": \"Duplicate value for unique attribute\",\n        \"keyValue\": {\n            \"email\": \"khk@gmail.com\"\n        }\n    }\n}"},{"id":"44db8266-4a25-4c21-a0ed-5e5d01162899","name":"User profile","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fname\": \"khk\",\r\n    \"lname\": \"Abeykoon\",\r\n    \"email\": \"khk@gmail.com\",\r\n    \"password\": \"khk123\",\r\n    \"dob\": \"12/25/1996\",\r\n    \"institute\": \"UoM\",\r\n    \"xp\": \"Intermediate\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"458"},{"key":"ETag","value":"W/\"1ca-xiC8Kx1y6rZVsTpJoiqHlbOmIHQ\""},{"key":"Date","value":"Sun, 07 Mar 2021 11:58:37 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User updated\",\n    \"updated\": {\n        \"attempts\": {\n            \"practice\": [\n                {\n                    \"count\": 4,\n                    \"_id\": \"6044ab8a03ce033a48dee66f\",\n                    \"question\": \"6044991cf7c198351c81cb82\",\n                    \"passed\": true\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"6044b2343cdebc34a8799c74\",\n                    \"question\": \"6044b1a0f7c198351c81cb84\",\n                    \"passed\": true\n                }\n            ],\n            \"compete\": []\n        },\n        \"xp\": \"Intermediate\",\n        \"score\": 45,\n        \"completion\": 1,\n        \"_id\": \"603e612bf2b7c725ace06463\",\n        \"fname\": \"khk\",\n        \"lname\": \"Abeykoon\",\n        \"email\": \"khk@gmail.com\",\n        \"institute\": \"UoM\",\n        \"dob\": \"1996-12-24T18:00:00.000Z\"\n    }\n}"}],"_postman_id":"c51add6c-a936-4180-aada-9141e35bca41"},{"name":"Delete","id":"cad587fc-d109-4902-a060-7508ab53f591","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{domain}}/user","description":"<p>Completely remove the logged in user's data from the database.</p>\n<h2 id=\"should-logout-the-user-from-the-client-side-immediately\">Should logout the user from the client side immediately.</h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","name":"Private","type":"folder"}},"urlObject":{"path":["user"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"2bf45739-2b8f-4b4c-a7fc-1a420983ab15","name":"Delete","originalRequest":{"method":"DELETE","header":[],"url":"{{domain}}/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"326"},{"key":"Etag","value":"W/\"146-d36UAIi6AdWxp7unvivjqVZXOHk\""},{"key":"Date","value":"Mon, 22 Mar 2021 06:28:12 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User deleted!\",\n    \"result\": {\n        \"n\": 1,\n        \"opTime\": {\n            \"ts\": \"6942361480574533635\",\n            \"t\": 16\n        },\n        \"electionId\": \"7fffffff0000000000000010\",\n        \"ok\": 1,\n        \"$clusterTime\": {\n            \"clusterTime\": \"6942361480574533635\",\n            \"signature\": {\n                \"hash\": \"/gPRHJ/dVBb7xj9p8oFcxs8KVA4=\",\n                \"keyId\": \"6898753161494790148\"\n            }\n        },\n        \"operationTime\": \"6942361480574533635\",\n        \"deletedCount\": 1\n    }\n}"}],"_postman_id":"cad587fc-d109-4902-a060-7508ab53f591"}],"id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8","description":"<p>Endpoints for logged in users which requires valid authorization.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"ba9cead7-f2c1-4edb-b1b3-b90ea4acf728","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f6c3351f-1603-4aa1-a517-d400d149609d","type":"text/javascript","exec":[""]}}],"_postman_id":"f8b36a49-42a9-47e0-9bc7-4c98526954c8"},{"name":"Public","item":[{"name":"Login","id":"aa2b9cc3-667f-4827-a2bd-280512da87ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasinthaabeykoon@gmail.com\",\r\n    \"password\": \"123simply\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/login","description":"<p>Decode the JWT on client side to access the decoded object with below properties.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n   email: &lt;userEmail&gt;,\n   userId: &lt;userId&gt;,\n   roles: &lt;[array of roles]&gt;\n }\n</code></pre><p>Roles may contain the following values: <code>['admin', 'user']</code></p>\n<p>This login will be only for users, therefore Roles will contain <code>user</code> and other roles.</p>\n<p><code>admin</code> value will be only for admins &amp; can be obtained by using <code>Admin &gt; Login</code> endpoint.</p>\n","urlObject":{"path":["user","login"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"177c5f0f-b68e-4714-a910-93d248f7cc16","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasinthaabyekoon@gmail.com\",\r\n    \"password\": \"hasintha1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"276"},{"key":"Etag","value":"W/\"114-k4pCe+KWREFcZa3lc2hyCo/pHOU\""},{"key":"Date","value":"Fri, 19 Feb 2021 02:26:18 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Authentication successful!\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imhhc2ludGhhYWJ5ZWtvb25AZ21haWwuY29tIiwidXNlcklkIjoiNjAyZjIxNzkzNDBmNjEwMDE1YTEyMmM2IiwiaWF0IjoxNjEzNzAxNTc4LCJleHAiOjE2MTM3MDUxNzh9.x2DjpKHeTwLNKV1-usoCRjXGP4lD-W0JKyGVehZ49zA\"\n}"},{"id":"edd250d5-8d45-4a52-8eb1-5e110ab3a7ab","name":"Login failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasinthaabeykoon@gmail.com\",\r\n    \"password\": \"hasintha12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-DxEXMg+3VDmf5XOcJJU8FsTbhr4\""},{"key":"Date","value":"Thu, 04 Mar 2021 19:23:41 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Authentication failed!\"\n}"},{"id":"0a8f3ad9-c147-49c0-9e88-11e5f9ffc674","name":"Incorrect email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasinthaabeykoon@gmail.com\",\r\n    \"password\": \"123simply\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"103"},{"key":"ETag","value":"W/\"67-xjNTGDbLtL1y00ZWpufbFXgdBEQ\""},{"key":"Date","value":"Thu, 29 Apr 2021 05:08:16 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No user found with the email hasinthaabeykoon@gsmail.com\"\n}"},{"id":"ee4b19ad-a851-4fe1-a9f2-ec3d48dce7e9","name":"Incorrect password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasinthaabeykoon@gmail.com\",\r\n    \"password\": \"123simplys\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"68"},{"key":"ETag","value":"W/\"44-tRZxO7csYS2/VxwpPXKmJsIgX7U\""},{"key":"Date","value":"Thu, 29 Apr 2021 05:08:46 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password is incorrect\"\n}"},{"id":"55bc5786-d7bc-42e9-84f8-cb8d84f8c7e9","name":"Missing req props","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasinthaabeykoon@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"80"},{"key":"ETag","value":"W/\"50-gs5lOuXlvUgjb1CJ0fomOue03ko\""},{"key":"Date","value":"Thu, 29 Apr 2021 05:10:18 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Required values missing for login\"\n}"}],"_postman_id":"aa2b9cc3-667f-4827-a2bd-280512da87ee"},{"name":"Signup","id":"20ee0074-db24-4346-b056-a03258fb4123","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fname\": \"hasintha\",\r\n    \"lname\": \"abeykoon\",\r\n    \"email\": \"hasinthaabyekoon@gmail.com\",\r\n    \"password\": \"hasintha123\",\r\n    \"dob\": \"12/25/1996\",\r\n    \"institute\": \"UoM\",\r\n    \"xp\": \"Beginner\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/signup","description":"<p><code>xp</code> property can be set only to one of the following values. If any other value is set, will default to <code>Beginner</code>.</p>\n<ul>\n<li><code>Beginner</code></li>\n<li><code>Intermediate</code></li>\n<li><code>Advanced</code></li>\n</ul>\n<p>Users signup requires below required keys &amp; values &amp; can contain optional keys as follows.</p>\n<ul>\n<li> <code>[fname, lname, email, dob, password, intitute]</code></li>\n<li> <code>[xp]</code></li>\n</ul>\n","urlObject":{"path":["user","signup"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"01c9e029-8803-4fa7-ad5d-ec4326453a49","name":"Email already exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fname\": \"hasintha\",\r\n    \"lname\": \"abeykoon\",\r\n    \"email\": \"hasinthaabyekoon@gmail.com\",\r\n    \"password\": \"hasintha123\",\r\n    \"dob\": \"12/25/1996\",\r\n    \"institute\": \"UoM\",\r\n    \"xp\": \"Beginner\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/signup"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"Etag","value":"W/\"27-5n1Ew6/DrmYc6Ypz0e30e/BLLtg\""},{"key":"Date","value":"Fri, 12 Mar 2021 02:56:24 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This email is already registered with another account, Please choose another!\",\n    \"error\": {\n        \"type\": \"Duplicate value for unique attribute\",\n        \"keyValue\": {\n            \"email\": \"reshanputha@gmail.com\"\n        }\n    }\n}"},{"id":"67f4251b-8b6f-4355-b326-cb4eed88a90b","name":"Some required keys missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fname\": \"Reshan\",\r\n    \"lname\": \"Malintha\",\r\n    \"email\": \"reshanputha@gmail.com\",\r\n    \"password\": \"reshanputha123\",\r\n    \"dob\": \"05/05/1996\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"57"},{"key":"ETag","value":"W/\"39-04LjH40qPdHPLAlgsif+k8tN8yI\""},{"key":"Date","value":"Mon, 22 Mar 2021 07:10:47 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Some of the required properties are missing\"\n}"},{"id":"cbc3d212-2c31-4253-b74e-b9b6cb77430b","name":"Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fname\": \"khk2\",\r\n    \"lname\": \"abeykoon\",\r\n    \"email\": \"khk2@gmail.com\",\r\n    \"password\": \"khk123\",\r\n    \"dob\": \"12/25/1996\",\r\n    \"institute\": \"UoM\",\r\n    \"xp\": \"Beginner\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/user/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-VURaEfppDkYUD779FQuT7S7CwjY\""},{"key":"Date","value":"Tue, 02 Mar 2021 16:11:41 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User created successfully!\",\n    \"result\": {\n        \"attempts\": {\n            \"practice\": [],\n            \"compete\": []\n        },\n        \"xp\": \"Beginner\",\n        \"score\": 0,\n        \"completion\": 0,\n        \"_id\": \"603e63bd350ab1270c1eac6a\",\n        \"fname\": \"khk2\",\n        \"lname\": \"abeykoon\",\n        \"email\": \"khk2@gmail.com\",\n        \"institute\": \"UoM\",\n        \"dob\": \"1996-12-24T18:00:00.000Z\"\n    }\n}"}],"_postman_id":"20ee0074-db24-4346-b056-a03258fb4123"},{"name":"Performance","id":"763501b4-149b-404d-a863-d080c01c0a63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{domain}}/user/performance/:userId","description":"<p>Get ranking details of an specific user specified by the <code>userId</code> path variable.</p>\n","urlObject":{"path":["user","performance",":userId"],"host":["{{domain}}"],"query":[{"disabled":true,"key":"userId","value":""}],"variable":[{"type":"any","value":"603e612bf2b7c725ace06463","key":"userId"}]}},"response":[{"id":"8c05402e-9559-4ee7-a1a6-8ae342463b6f","name":"User not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/user/performance/:userId","host":["{{domain}}"],"path":["user","performance",":userId"],"query":[{"key":"userId","value":"","disabled":true}],"variable":[{"key":"userId","value":"602f2179340f610015a122c6d"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-L7b93Yu68ODQtq+UUQBrbD6dfls\""},{"key":"Date","value":"Thu, 04 Mar 2021 19:25:15 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User not found\"\n}"},{"id":"f77d4a19-02d4-48fd-b5f8-d3cf773ac01f","name":"Other error","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/user/performance/:userId","host":["{{domain}}"],"path":["user","performance",":userId"],"query":[{"key":"userId","value":"","disabled":true}],"variable":[{"key":"userId","value":"603e612bf2b7c725ace064632"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"ETag","value":"W/\"49-BE/uepAMoL05V7QU4JnJXAGgjQo\""},{"key":"Date","value":"Fri, 12 Mar 2021 03:45:24 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error occurred while getting performance details\",\n    \"error\": {}\n}"},{"id":"fcbe4138-6ccc-4e85-bedc-05ad5d75a757","name":"Performance","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/user/performance/:userId","host":["{{domain}}"],"path":["user","performance",":userId"],"variable":[{"key":"userId","value":"603e612bf2b7c725ace06463"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"ETag","value":"W/\"46-J+8DHNsptQG6PugYUFpo91x8wyA\""},{"key":"Date","value":"Thu, 25 Feb 2021 16:27:58 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"rank\": 3,\n    \"_id\": \"603e612bf2b7c725ace06463\",\n    \"score\": 0,\n    \"completion\": 1\n}"}],"_postman_id":"763501b4-149b-404d-a863-d080c01c0a63"},{"name":"Autocomplete","id":"d27d79d7-9291-48b9-869b-33cf06c29752","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/user/autocomplete?search=haci","description":"<p>Search users on <code>fname</code> or <code>lname</code>  or <code>email</code>.\nAutocomplete results <code>limit = 10</code></p>\n<ul>\n<li><p>Uses fuzzy search to perform the search.</p>\n</li>\n<li><p>Consider throttling &amp; debouncing when calling the endpoint to reduce the server load.</p>\n</li>\n<li><p>Use either of <code>Leaderboard &gt; User</code> or <code>User &gt; Performance</code> endpoints to get the searched user's ranking details.</p>\n</li>\n</ul>\n","urlObject":{"path":["user","autocomplete"],"host":["{{domain}}"],"query":[{"description":{"content":"<p>Search string to be searched the users against </p>\n","type":"text/plain"},"key":"search","value":"haci"}],"variable":[]}},"response":[{"id":"49ac2edf-e869-4d68-b111-b4548934ad48","name":"Autocomplete 2","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/user/autocomplete?search=haci","host":["{{domain}}"],"path":["user","autocomplete"],"query":[{"key":"search","value":"haci"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"139"},{"key":"ETag","value":"W/\"8b-MHI7UV2Fp8xy/tH9ijxr/2WHHwg\""},{"key":"Date","value":"Thu, 04 Mar 2021 19:42:02 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"search\": \"haci\",\n    \"results\": [\n        {\n            \"_id\": \"602f2179340f610015a122c6\",\n            \"fname\": \"Hasintha\",\n            \"lname\": \"Abeykoon\",\n            \"email\": \"hasinthaabeykoon@gmail.com\"\n        }\n    ]\n}"},{"id":"93e4ba10-b5a6-49e6-98ba-a56ae205ab8f","name":"Autocomplete","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/user/autocomplete?search=gmai","host":["{{domain}}"],"path":["user","autocomplete"],"query":[{"key":"search","value":"gmai"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"235"},{"key":"ETag","value":"W/\"eb-0vRxBZiUKkZwUfiz1/ZHHRvqgus\""},{"key":"Date","value":"Sat, 27 Feb 2021 11:40:04 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"search\": \"gmai\",\n    \"results\": [\n        {\n            \"_id\": \"5fcb3b654c87150017dd1f70\",\n            \"fname\": \"Rangana\",\n            \"lname\": \"Udara\",\n            \"email\": \"hello3@gmail.com\"\n        },\n        {\n            \"_id\": \"602f2179340f610015a122c6\",\n            \"fname\": \"Hasintha\",\n            \"lname\": \"Abeykoon\",\n            \"email\": \"hasinthaabeykoon@gmail.com\"\n        }\n    ]\n}"}],"_postman_id":"d27d79d7-9291-48b9-869b-33cf06c29752"}],"id":"12bcfd01-76f0-4a5f-b708-02d9be40f6ea","description":"<p>Public endpoints for user data &amp; profiles.</p>\n","_postman_id":"12bcfd01-76f0-4a5f-b708-02d9be40f6ea"}],"id":"42b3ed2f-6d42-4772-a22f-e0228dcf0b44","description":"<h2 id=\"endpoints-related-to-user-profile-management\">Endpoints related to user profile management</h2>\n","_postman_id":"42b3ed2f-6d42-4772-a22f-e0228dcf0b44"},{"name":"Practice Questions","item":[{"name":"All","id":"4c051bae-2b2d-4055-9bb8-5705cd3f51bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/questions","description":"<p>Get all practice questions sorted by level in descending order.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"1a60a23d-15eb-48d9-a06a-d76cf68e19f0","id":"1a60a23d-15eb-48d9-a06a-d76cf68e19f0","name":"Practice Questions","type":"folder"}},"urlObject":{"path":["questions"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"e0f2048b-1c91-48df-b43f-4517a9e87a3d","name":"All","originalRequest":{"method":"GET","header":[],"url":"{{domain}}/questions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1208"},{"key":"ETag","value":"W/\"4b8-RIIRcEnhG9Kr83evPTqZfceRFgw\""},{"key":"Date","value":"Tue, 02 Mar 2021 15:47:19 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 6,\n    \"questions\": [\n        {\n            \"_id\": \"6044b1a0f7c198351c81cb84\",\n            \"title\": \"Level 0 qu 2\",\n            \"description\": \"Levle 2 question 2\",\n            \"outputs\": \"Level 2 question 2 dsc\",\n            \"difficulty\": \"Easy\",\n            \"level\": 0,\n            \"category\": \"basic_syntax\",\n            \"testcases\": [\n                {\n                    \"inputs\": \"Test case 1 inputs\",\n                    \"outputs\": \"Test case 1 outputs\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                }\n            ],\n            \"pointsAllocated\": 25,\n            \"request\": {\n                \"type\": \"GET\",\n                \"url\": \"http://localhost:8080/questions/6044b1a0f7c198351c81cb84\"\n            }\n        },\n        {\n            \"_id\": \"6046657e5a9d8b38187bde8c\",\n            \"title\": \"new qu\",\n            \"description\": \"Levle 0 question\",\n            \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n            \"difficulty\": \"Easy\",\n            \"level\": 0,\n            \"category\": \"basic_syntax\",\n            \"testcases\": [\n                {\n                    \"inputs\": \"Test case 1 inputs\",\n                    \"outputs\": \"Test case 1 outputs\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                },\n                {\n                    \"inputs\": \"Test case 2 inputs\",\n                    \"outputs\": \"Test case 2 outputs\",\n                    \"title\": \"Test case 2 title\",\n                    \"description\": \"Test case 2 decription\"\n                }\n            ],\n            \"pointsAllocated\": 25,\n            \"request\": {\n                \"type\": \"GET\",\n                \"url\": \"http://localhost:8080/questions/6046657e5a9d8b38187bde8c\"\n            }\n        },\n        {\n            \"_id\": \"603e5ca6f4c4902304b24699\",\n            \"title\": \"Where are the aliens now?\",\n            \"description\": \"Now, you know this aliens already located on the earth! You have to find out what are they going to do as their next step of the siege. For that,we have to intercept their communication. Defence forces have done the intercepting. But their language is a bit dificult to decode. Somehow the scientists have maped the sounds with characters. Analizing the messages, they have indentified that there are few repeating patterns, which one of them might be the name of their nearest Alien Operational Base. Scientists think before a counter attack we should try to communicate with them. If we can communicate some times we might get a chance to make peace with the aliens. Therefore, your task is to send a greeting message to the indetified alien base.\",\n            \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n            \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n            \"difficulty\": \"Easy\",\n            \"level\": 1,\n            \"category\": \"basic_syntax\",\n            \"testcases\": [\n                {\n                    \"_id\": \"603e5ca6f4c4902304b2469a\",\n                    \"inputs\": \"Test case 1 inputs\",\n                    \"outputs\": \"Test case 1 outputs\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                },\n                {\n                    \"_id\": \"603e5ca6f4c4902304b2469b\",\n                    \"inputs\": \"Test case 2 inputs\",\n                    \"outputs\": \"Test case 2 outputs\",\n                    \"title\": \"Test case 2 title\",\n                    \"description\": \"Test case 2 decription\"\n                }\n            ],\n            \"pointsAllocated\": 20,\n            \"request\": {\n                \"type\": \"GET\",\n                \"url\": \"http://localhost:8080/questions/603e5ca6f4c4902304b24699\"\n            }\n        },\n        {\n            \"_id\": \"6044c44dd588fc18284c0965\",\n            \"title\": \"Lvl 1 another question\",\n            \"description\": \"Decsription for the question\",\n            \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n            \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n            \"difficulty\": \"Easy\",\n            \"level\": 1,\n            \"category\": \"basic_syntax\",\n            \"testcases\": [\n                {\n                    \"_id\": \"6044c487d588fc18284c0968\",\n                    \"inputs\": \"Test case 1 inputs\",\n                    \"outputs\": \"Test case 1 outputs\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                },\n                {\n                    \"_id\": \"6044c487d588fc18284c0969\",\n                    \"inputs\": \"Test case 2 inputs\",\n                    \"outputs\": \"Test case 2 outputs\",\n                    \"title\": \"Test case 2 title\",\n                    \"description\": \"Test case 2 decription\"\n                },\n                {\n                    \"_id\": \"6044c487d588fc18284c096a\",\n                    \"inputs\": \"Test case 3 inputs\",\n                    \"outputs\": \"Test case 3 outputs\",\n                    \"title\": \"Test case 3 title\",\n                    \"description\": \"Test case 3 decription\"\n                }\n            ],\n            \"pointsAllocated\": 35,\n            \"request\": {\n                \"type\": \"GET\",\n                \"url\": \"http://localhost:8080/questions/6044c44dd588fc18284c0965\"\n            }\n        },\n        {\n            \"_id\": \"604499c1f7c198351c81cb83\",\n            \"title\": \"Level 2 qu\",\n            \"description\": \"Levle 2 question\",\n            \"outputs\": \"Level 2 question dsc\",\n            \"difficulty\": \"Easy\",\n            \"level\": 2,\n            \"category\": \"basic_syntax\",\n            \"testcases\": [\n                {\n                    \"inputs\": \"Test case 1 inputs\",\n                    \"outputs\": \"Test case 1 outputs\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                }\n            ],\n            \"pointsAllocated\": 25,\n            \"request\": {\n                \"type\": \"GET\",\n                \"url\": \"http://localhost:8080/questions/604499c1f7c198351c81cb83\"\n            }\n        },\n        {\n            \"_id\": \"603e5d7af4c4902304b2469d\",\n            \"title\": \"Question l3q1\",\n            \"description\": \"Helo i am the first question\",\n            \"inputs\": \"1,2,3,4\",\n            \"outputs\": \"12\",\n            \"difficulty\": \"Easy\",\n            \"level\": 3,\n            \"category\": \"string\",\n            \"testcases\": [\n                {\n                    \"_id\": \"603e5d7af4c4902304b2469e\",\n                    \"inputs\": \"Test case 1 inputs\",\n                    \"outputs\": \"Test case 1 outputs\",\n                    \"title\": \"Question l3q1 Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                },\n                {\n                    \"_id\": \"603e5d7af4c4902304b2469f\",\n                    \"inputs\": \"Test case 2 inputs\",\n                    \"outputs\": \"Test case 2 outputs\",\n                    \"title\": \"Question l3q1 Test case 2 title\",\n                    \"description\": \"Test case 2 decription\"\n                },\n                {\n                    \"_id\": \"603e5d7af4c4902304b246a0\",\n                    \"inputs\": \"Test case 3 inputs\",\n                    \"outputs\": \"Test case 3 outputs\",\n                    \"title\": \"Question l3q1 Test case 3 title\",\n                    \"description\": \"Test case 3 decription\"\n                }\n            ],\n            \"pointsAllocated\": 30,\n            \"request\": {\n                \"type\": \"GET\",\n                \"url\": \"http://localhost:8080/questions/603e5d7af4c4902304b2469d\"\n            }\n        }\n    ]\n}"}],"_postman_id":"4c051bae-2b2d-4055-9bb8-5705cd3f51bd"},{"name":"By Id","id":"0b6a02da-a79f-4f64-bc46-a0bf014983ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/questions/:questionId","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"1a60a23d-15eb-48d9-a06a-d76cf68e19f0","id":"1a60a23d-15eb-48d9-a06a-d76cf68e19f0","name":"Practice Questions","type":"folder"}},"urlObject":{"path":["questions",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"604499c1f7c198351c81cb83","key":"questionId"}]}},"response":[{"id":"37d4614d-b1f2-4c60-ae71-a9be19432399","name":"By Id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/questions/:questionId","host":["{{domain}}"],"path":["questions",":questionId"],"variable":[{"key":"questionId","value":"603e5ca6f4c4902304b24699"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1610"},{"key":"ETag","value":"W/\"64a-4THIpPOrIn1FRR4OcmDmD3LXfOI\""},{"key":"Date","value":"Tue, 02 Mar 2021 15:42:38 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"604499c1f7c198351c81cb83\",\n    \"title\": \"Level 2 qu\",\n    \"description\": \"Levle 2 question\",\n    \"outputs\": \"Level 2 question dsc\",\n    \"difficulty\": \"Easy\",\n    \"level\": 2,\n    \"category\": \"basic_syntax\",\n    \"testcases\": [\n        {\n            \"inputs\": \"Test case 1 inputs\",\n            \"outputs\": \"Test case 1 outputs\",\n            \"title\": \"Test case 1 title\",\n            \"description\": \"Test case 1 decription\"\n        }\n    ],\n    \"pointsAllocated\": 25\n}"}],"_postman_id":"0b6a02da-a79f-4f64-bc46-a0bf014983ea"},{"name":"By level","id":"bdfee325-57f1-4e03-8447-3679347d419c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/questions/bylevel","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"1a60a23d-15eb-48d9-a06a-d76cf68e19f0","id":"1a60a23d-15eb-48d9-a06a-d76cf68e19f0","name":"Practice Questions","type":"folder"}},"urlObject":{"path":["questions","bylevel"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"de3e0ef2-b9a1-4eb8-be19-bff804c6b973","name":"By level success","originalRequest":{"method":"GET","header":[],"url":"{{domain}}/questions/bylevel"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"5147"},{"key":"ETag","value":"W/\"141b-QmxlLILlzPzfhJsmOt6UIvpb+WY\""},{"key":"Date","value":"Sat, 01 May 2021 12:06:36 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"levelCount\": 8,\n    \"levels\": [\n        {\n            \"level\": 1,\n            \"title\": \"This is edited tutorial 1 title\",\n            \"questions\": [\n                {\n                    \"_id\": \"6044b1a0f7c198351c81cb84\",\n                    \"title\": \"Level 0 qu 2\",\n                    \"description\": \"Levle 2 question 2\",\n                    \"outputs\": \"Level 2 question 2 dsc\",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 1,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 25,\n                    \"inputs\": \"inputs for level 0 qu 2\"\n                },\n                {\n                    \"_id\": \"6044c44dd588fc18284c0965\",\n                    \"title\": \"Lvl 1 another question\",\n                    \"description\": \"Decsription for the question\",\n                    \"inputs\": \"1 2 3\",\n                    \"outputs\": \"Java runs\\n0 0 0 \",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 1,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"6044c487d588fc18284c0968\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"_id\": \"6044c487d588fc18284c0969\",\n                            \"inputs\": \"Test case 2 inputs\",\n                            \"outputs\": \"Test case 2 outputs\",\n                            \"title\": \"Test case 2 title\",\n                            \"description\": \"Test case 2 decription\"\n                        },\n                        {\n                            \"_id\": \"6044c487d588fc18284c096a\",\n                            \"inputs\": \"Test case 3 inputs\",\n                            \"outputs\": \"Test case 3 outputs\",\n                            \"title\": \"Test case 3 title\",\n                            \"description\": \"Test case 3 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 35\n                },\n                {\n                    \"_id\": \"60573d94efb122529c052921\",\n                    \"title\": \"Echo to console\",\n                    \"description\": \"Echo the input arguments back to the console\",\n                    \"inputs\": \"1 2\",\n                    \"outputs\": \"Java runs\\n12\",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 1,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"inputs\": \"1 2 3\",\n                            \"outputs\": \"Java runs\\r\\n123\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"inputs\": \"1 2 3 4 5\",\n                            \"outputs\": \"Java runs\\r\\n12345\",\n                            \"title\": \"Test case 2 title\",\n                            \"description\": \"Test case 2 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 20\n                },\n                {\n                    \"_id\": \"608cdb862a02a96020362310\",\n                    \"title\": \"Echo to console with new lines\",\n                    \"description\": \"Echo the input arguments back to the console with new line\",\n                    \"inputs\": \"1 2 3\",\n                    \"outputs\": \"Java runs\\n123\",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 1,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"inputs\": \"1 2 3\",\n                            \"outputs\": \"Java runs\\n123\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"inputs\": \"1 2 3 4 5\",\n                            \"outputs\": \"Java runs\\n12345\",\n                            \"title\": \"Test case 2 title\",\n                            \"description\": \"Test case 2 decription\"\n                        },\n                        {\n                            \"inputs\": \"1 2 3 4 5 6\",\n                            \"outputs\": \"Java runs\\n123456\",\n                            \"title\": \"Test case 3 title\",\n                            \"description\": \"Test case 3 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 30\n                }\n            ]\n        },\n        {\n            \"level\": 2,\n            \"title\": \"Level 2 tutorial title\",\n            \"questions\": [\n                {\n                    \"_id\": \"604499c1f7c198351c81cb83\",\n                    \"title\": \"Level 2 qu\",\n                    \"description\": \"Levle 2 question\",\n                    \"outputs\": \"Level 2 question dsc\",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 2,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 25,\n                    \"inputs\": \"Inputs for this question\"\n                },\n                {\n                    \"_id\": \"6046657e5a9d8b38187bde8c\",\n                    \"title\": \"new qu\",\n                    \"description\": \"Levle 0 question\",\n                    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 2,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"inputs\": \"Test case 2 inputs\",\n                            \"outputs\": \"Test case 2 outputs\",\n                            \"title\": \"Test case 2 title\",\n                            \"description\": \"Test case 2 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 25,\n                    \"inputs\": \"inputs for this new qu\"\n                }\n            ]\n        },\n        {\n            \"level\": 3,\n            \"title\": \"Level 3 tutorial title\",\n            \"questions\": [\n                {\n                    \"_id\": \"603e5ca6f4c4902304b24699\",\n                    \"title\": \"Updated title here\",\n                    \"description\": \"Updated description here\",\n                    \"inputs\": \"Inputs here\",\n                    \"outputs\": \"Outputs\",\n                    \"difficulty\": \"Medium\",\n                    \"level\": 3,\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"6047ac5d7d0d4f322412347a\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"_id\": \"6047ac5d7d0d4f322412347b\",\n                            \"inputs\": \"Test case 2 inputs\",\n                            \"outputs\": \"Test case 2 outputs\",\n                            \"title\": \"Test case 2 title\",\n                            \"description\": \"Test case 2 decription\"\n                        },\n                        {\n                            \"_id\": \"6047ac5d7d0d4f322412347c\",\n                            \"inputs\": \"Test case 3 inputs\",\n                            \"outputs\": \"Test case 3 outputs\",\n                            \"title\": \"Test case 3 title\",\n                            \"description\": \"Test case 3 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 25\n                },\n                {\n                    \"_id\": \"603e5d7af4c4902304b2469d\",\n                    \"title\": \"Question l3q1\",\n                    \"description\": \"Helo i am the first question\",\n                    \"inputs\": \"1,2,3,4\",\n                    \"outputs\": \"12\",\n                    \"difficulty\": \"Easy\",\n                    \"level\": 3,\n                    \"category\": \"string\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"603e5d7af4c4902304b2469e\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Question l3q1 Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"_id\": \"603e5d7af4c4902304b2469f\",\n                            \"inputs\": \"Test case 2 inputs\",\n                            \"outputs\": \"Test case 2 outputs\",\n                            \"title\": \"Question l3q1 Test case 2 title\",\n                            \"description\": \"Test case 2 decription\"\n                        },\n                        {\n                            \"_id\": \"603e5d7af4c4902304b246a0\",\n                            \"inputs\": \"Test case 3 inputs\",\n                            \"outputs\": \"Test case 3 outputs\",\n                            \"title\": \"Question l3q1 Test case 3 title\",\n                            \"description\": \"Test case 3 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 30\n                }\n            ]\n        },\n        {\n            \"level\": 4,\n            \"title\": \"Level 4 tutorial title\",\n            \"questions\": []\n        },\n        {\n            \"level\": 5,\n            \"title\": \"L5 tutorial title\",\n            \"questions\": []\n        },\n        {\n            \"level\": 6,\n            \"title\": \"Loops\",\n            \"questions\": []\n        },\n        {\n            \"level\": 7,\n            \"title\": \"Data Types\",\n            \"questions\": []\n        },\n        {\n            \"level\": 8,\n            \"title\": \"Loops2\",\n            \"questions\": []\n        }\n    ]\n}"}],"_postman_id":"bdfee325-57f1-4e03-8447-3679347d419c"},{"name":"Levels overview for user","id":"c3d3944e-3c93-4b7a-80ff-0d5414275b9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{domain}}/questions/overview","urlObject":{"path":["questions","overview"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"e658901a-4fea-4d17-b86a-032d31ee6c47","name":"Success","originalRequest":{"method":"GET","header":[],"url":"{{domain}}/questions/overview"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"241"},{"key":"ETag","value":"W/\"f1-LrJJCk25IXt7Btv0Dbz0MTqWw8M\""},{"key":"Date","value":"Tue, 27 Apr 2021 08:08:48 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"userLevel\": 1,\n    \"totalQuestionLevels\": 3,\n    \"overview\": [\n        {\n            \"title\": \"This is edited tutorial 1 title\",\n            \"category\": \"basic_syntax\",\n            \"level\": 1,\n            \"questions\": 3,\n            \"completed\": 2,\n            \"levelCompleted\": false\n        },\n        {\n            \"title\": \"Level 2 tutorial title\",\n            \"category\": \"basic_syntax\",\n            \"level\": 2,\n            \"questions\": 2,\n            \"completed\": 0,\n            \"levelCompleted\": false\n        },\n        {\n            \"title\": \"Level 3 tutorial title\",\n            \"category\": \"basic_syntax\",\n            \"level\": 3,\n            \"questions\": 2,\n            \"completed\": 0,\n            \"levelCompleted\": false\n        }\n    ]\n}"}],"_postman_id":"c3d3944e-3c93-4b7a-80ff-0d5414275b9f"},{"name":"Given level overview for user","id":"c983cabe-3ef9-4730-ab41-83ece5d3e703","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{domain}}/questions/overview/:level","urlObject":{"path":["questions","overview",":level"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"1","key":"level"}]}},"response":[{"id":"ce6c1bf2-5f50-40a7-b77d-d0b3fa3bd679","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/questions/overview/:level","host":["{{domain}}"],"path":["questions","overview",":level"],"variable":[{"key":"level","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"475"},{"key":"ETag","value":"W/\"1db-M/5vRmI6KS8ec/LxwWtV1/R8rcI\""},{"key":"Date","value":"Tue, 27 Apr 2021 09:29:45 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"level\": 1,\n    \"title\": \"This is edited tutorial 1 title\",\n    \"attemptsOverview\": [\n        {\n            \"questionId\": \"6044b1a0f7c198351c81cb84\",\n            \"category\": \"basic_syntax\",\n            \"title\": \"Level 0 qu 2\",\n            \"difficulty\": \"Easy\",\n            \"pointsAllocated\": 25,\n            \"attempts\": 2,\n            \"passed\": true\n        },\n        {\n            \"questionId\": \"6044c44dd588fc18284c0965\",\n            \"category\": \"basic_syntax\",\n            \"title\": \"Lvl 1 another question\",\n            \"difficulty\": \"Easy\",\n            \"pointsAllocated\": 35,\n            \"attempts\": 51,\n            \"passed\": false\n        },\n        {\n            \"questionId\": \"60573d94efb122529c052921\",\n            \"category\": \"basic_syntax\",\n            \"title\": \"Echo to console\",\n            \"difficulty\": \"Easy\",\n            \"pointsAllocated\": 20,\n            \"attempts\": 21,\n            \"passed\": true\n        }\n    ]\n}"},{"id":"f832ed85-583c-46c3-b8b1-e711e9090366","name":"Non existing level","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/questions/overview/:level","host":["{{domain}}"],"path":["questions","overview",":level"],"variable":[{"key":"level","value":"4"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-xiDvQSe2URi1LmxuTkEPGc1A0mI\""},{"key":"Date","value":"Thu, 29 Apr 2021 11:24:50 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Some of the resources could not be found\"\n}"}],"_postman_id":"c983cabe-3ef9-4730-ab41-83ece5d3e703"}],"id":"1a60a23d-15eb-48d9-a06a-d76cf68e19f0","description":"<p>User consumable Practice question endpoints.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c3516612-e851-44ce-af31-383260f6b224","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bff10fb9-e54d-462a-b198-1474a52db9f5","type":"text/javascript","exec":[""]}}],"_postman_id":"1a60a23d-15eb-48d9-a06a-d76cf68e19f0"},{"name":"Compete Questions","item":[{"name":"All","id":"11ad962a-1314-4e36-9014-b5f8d86924f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/competequestion","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4682d668-c8b7-4087-a726-958ff7265edc","id":"4682d668-c8b7-4087-a726-958ff7265edc","name":"Compete Questions","type":"folder"}},"urlObject":{"path":["competequestion"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"baa09707-e22d-42cb-8fdd-13735b7573f6","name":"All","originalRequest":{"method":"GET","header":[],"url":"{{domain}}/competequestion"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"653"},{"key":"ETag","value":"W/\"28d-GWVEgBt1UMJhg8cFFdBmpj3Xiv8\""},{"key":"Date","value":"Tue, 02 Mar 2021 16:59:23 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"questions\": [\n        {\n            \"_id\": \"603e6bf840c1210e78797664\",\n            \"title\": \"Where are the aliens now?\",\n            \"description\": \"Compete question 1\",\n            \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n            \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n            \"difficulty\": \"Easy\",\n            \"category\": \"basic_syntax\",\n            \"testcases\": [\n                {\n                    \"_id\": \"603e6bf840c1210e78797665\",\n                    \"inputs\": \"Test case 1 inputs\",\n                    \"outputs\": \"Test case 1 outputs\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                }\n            ],\n            \"pointsAllocated\": 15,\n            \"request\": {\n                \"type\": \"GET\",\n                \"url\": \"http://localhost:8080/competequestion/603e6bf840c1210e78797664\"\n            }\n        }\n    ]\n}"}],"_postman_id":"11ad962a-1314-4e36-9014-b5f8d86924f7"},{"name":"By Id","id":"588b20a0-ab7e-4721-887a-22df73929604","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/competequestion/:questionId","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4682d668-c8b7-4087-a726-958ff7265edc","id":"4682d668-c8b7-4087-a726-958ff7265edc","name":"Compete Questions","type":"folder"}},"urlObject":{"path":["competequestion",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"6044c56f9be061131869210c","key":"questionId"}]}},"response":[{"id":"8e939b11-f9bd-4015-8512-4dd85b78d899","name":"By Id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/competequestion/:questionId","host":["{{domain}}"],"path":["competequestion",":questionId"],"variable":[{"key":"questionId","value":"603e6bf840c1210e78797664"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"531"},{"key":"ETag","value":"W/\"213-ADmixmcZCJAmEdPLkWd9iUM/llY\""},{"key":"Date","value":"Tue, 02 Mar 2021 17:06:02 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6044c56f9be061131869210c\",\n    \"title\": \"New compete q\",\n    \"description\": \"Compete question 2\",\n    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n    \"difficulty\": \"Easy\",\n    \"category\": \"basic_syntax\",\n    \"testcases\": [\n        {\n            \"_id\": \"6044c56f9be061131869210d\",\n            \"inputs\": \"Test case 1 inputs\",\n            \"outputs\": \"Test case 1 outputs\",\n            \"title\": \"Test case 1 title\",\n            \"description\": \"Test case 1 decription\"\n        },\n        {\n            \"_id\": \"6044c56f9be061131869210e\",\n            \"inputs\": \"Test case 1 inputs\",\n            \"outputs\": \"Test case 1 outputs\",\n            \"title\": \"Test case 1 title\",\n            \"description\": \"Test case 1 decription\"\n        }\n    ],\n    \"pointsAllocated\": 25\n}"}],"_postman_id":"588b20a0-ab7e-4721-887a-22df73929604"},{"name":"By category","id":"f03a6332-4af1-4709-a9ec-6271e2c7380c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/competequestion/bycategory","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4682d668-c8b7-4087-a726-958ff7265edc","id":"4682d668-c8b7-4087-a726-958ff7265edc","name":"Compete Questions","type":"folder"}},"urlObject":{"path":["competequestion","bycategory"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"d015a7de-6ea2-49ef-a403-a3c4b76466ca","name":"By category","originalRequest":{"method":"GET","header":[],"url":"{{domain}}/competequestion/bycategory"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"608"},{"key":"ETag","value":"W/\"260-E8Oj1BknBmh5Bvh247/Z7sx/n1M\""},{"key":"Date","value":"Tue, 02 Mar 2021 17:02:41 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"categoryCount\": 3,\n    \"categories\": [\n        {\n            \"category\": \"basic_syntax\",\n            \"questions\": [\n                {\n                    \"_id\": \"603e6bf840c1210e78797664\",\n                    \"title\": \"Where are the aliens now?\",\n                    \"description\": \"Compete question 1\",\n                    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n                    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n                    \"difficulty\": \"Easy\",\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"603e6bf840c1210e78797665\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 15\n                },\n                {\n                    \"_id\": \"6044c56f9be061131869210c\",\n                    \"title\": \"New compete q\",\n                    \"description\": \"Compete question 2\",\n                    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n                    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n                    \"difficulty\": \"Easy\",\n                    \"category\": \"basic_syntax\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"6044c56f9be061131869210d\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"_id\": \"6044c56f9be061131869210e\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 25\n                }\n            ]\n        },\n        {\n            \"category\": \"conditionals\",\n            \"questions\": [\n                {\n                    \"_id\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"title\": \"another compete Q\",\n                    \"description\": \"Compete question 4\",\n                    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n                    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n                    \"difficulty\": \"Easy\",\n                    \"category\": \"conditionals\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"6044c5f58cc20b1ab4e5a0b2\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"_id\": \"6044c5f58cc20b1ab4e5a0b3\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 30\n                }\n            ]\n        },\n        {\n            \"category\": \"loops\",\n            \"questions\": [\n                {\n                    \"_id\": \"6044c5c7a9765f265c07269f\",\n                    \"title\": \"another compete question\",\n                    \"description\": \"Compete question 3\",\n                    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n                    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n                    \"difficulty\": \"Easy\",\n                    \"category\": \"loops\",\n                    \"testcases\": [\n                        {\n                            \"_id\": \"6044c5c7a9765f265c0726a0\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        },\n                        {\n                            \"_id\": \"6044c5c7a9765f265c0726a1\",\n                            \"inputs\": \"Test case 1 inputs\",\n                            \"outputs\": \"Test case 1 outputs\",\n                            \"title\": \"Test case 1 title\",\n                            \"description\": \"Test case 1 decription\"\n                        }\n                    ],\n                    \"pointsAllocated\": 25\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"f03a6332-4af1-4709-a9ec-6271e2c7380c"},{"name":"Compete questions overview for user","id":"d7f082a7-acb4-437d-928b-bf1fcb97e25c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{domain}}/competequestion/overview","urlObject":{"path":["competequestion","overview"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"59a9f5a9-e4bd-43f8-a1ce-65a609f430ce","name":"Success","originalRequest":{"method":"GET","header":[],"url":"{{domain}}/competequestion/overview"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"883"},{"key":"ETag","value":"W/\"373-QfH7aJVJOYUQNjtRfiLwK1asTeI\""},{"key":"Date","value":"Thu, 29 Apr 2021 11:32:23 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"categoriesCount\": 3,\n    \"overview\": [\n        {\n            \"category\": \"basic_syntax\",\n            \"questions\": 2,\n            \"completed\": 1,\n            \"attemptsOverview\": [\n                {\n                    \"questionId\": \"603e6bf840c1210e78797664\",\n                    \"title\": \"Where are the aliens now?\",\n                    \"difficulty\": \"Easy\",\n                    \"pointsAllocated\": 15,\n                    \"attempts\": 17,\n                    \"passed\": true\n                },\n                {\n                    \"questionId\": \"6044c56f9be061131869210c\",\n                    \"title\": \"New compete q\",\n                    \"difficulty\": \"Easy\",\n                    \"pointsAllocated\": 25,\n                    \"attempts\": 0,\n                    \"passed\": false\n                }\n            ]\n        },\n        {\n            \"category\": \"conditionals\",\n            \"questions\": 1,\n            \"completed\": 1,\n            \"attemptsOverview\": [\n                {\n                    \"questionId\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"title\": \"another compete Q\",\n                    \"difficulty\": \"Easy\",\n                    \"pointsAllocated\": 30,\n                    \"attempts\": 2,\n                    \"passed\": true\n                }\n            ]\n        },\n        {\n            \"category\": \"loops\",\n            \"questions\": 2,\n            \"completed\": 0,\n            \"attemptsOverview\": [\n                {\n                    \"questionId\": \"6044c5c7a9765f265c07269f\",\n                    \"title\": \"another compete question\",\n                    \"difficulty\": \"Easy\",\n                    \"pointsAllocated\": 25,\n                    \"attempts\": 0,\n                    \"passed\": false\n                },\n                {\n                    \"questionId\": \"608a993a90b29f06b05a796c\",\n                    \"title\": \"compete question\",\n                    \"difficulty\": \"Medium\",\n                    \"pointsAllocated\": 45,\n                    \"attempts\": 0,\n                    \"passed\": false\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"d7f082a7-acb4-437d-928b-bf1fcb97e25c"}],"id":"4682d668-c8b7-4087-a726-958ff7265edc","description":"<p>User consumable Compete question endpoints.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e48160e7-f762-44cc-b3d1-8f0d695388f8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"67395444-9293-423f-842f-efbeaaa849b1","type":"text/javascript","exec":[""]}}],"_postman_id":"4682d668-c8b7-4087-a726-958ff7265edc"},{"name":"LeaderBoard","item":[{"name":"Rankings","id":"4a6f0be6-eb37-4205-96fb-6d11bbeda520","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/leaderboard?page=0&limit=10","urlObject":{"path":["leaderboard"],"host":["{{domain}}"],"query":[{"key":"page","value":"0"},{"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"64b803c9-e71e-4de5-b432-5253b8ea5e7d","name":"Rankings","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/leaderboard?page=0&limit=10","host":["{{domain}}"],"path":["leaderboard"],"query":[{"key":"page","value":"0"},{"key":"limit","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"267"},{"key":"ETag","value":"W/\"10b-P7iXqTgrncRUTQJYpDPf8KyGnNM\""},{"key":"Date","value":"Fri, 26 Feb 2021 16:59:57 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Leaderboard fetch success\",\n    \"pageInfo\": {\n        \"total\": 5,\n        \"page\": 0,\n        \"limit\": 10\n    },\n    \"results\": [\n        {\n            \"rank\": 1,\n            \"_id\": \"602f2179340f610015a122c6\",\n            \"fname\": \"Hasintha\",\n            \"lname\": \"Abeykoon\",\n            \"score\": 55,\n            \"email\": \"hasinthaabeykoon@gmail.com\",\n            \"completion\": 1,\n            \"institute\": \"UoM\"\n        },\n        {\n            \"rank\": 2,\n            \"_id\": \"5fcb3b654c87150017dd1f70\",\n            \"fname\": \"Rangana\",\n            \"lname\": \"Udara\",\n            \"score\": 0,\n            \"email\": \"hello3@gmail.com\",\n            \"completion\": 1,\n            \"institute\": \"UoC\"\n        },\n        {\n            \"rank\": 3,\n            \"_id\": \"603e612bf2b7c725ace06463\",\n            \"fname\": \"khk\",\n            \"lname\": \"Abeykoon\",\n            \"score\": 0,\n            \"email\": \"khk@gmail.com\",\n            \"completion\": 1,\n            \"institute\": \"UoM\"\n        },\n        {\n            \"rank\": 4,\n            \"_id\": \"6047a68b3123371aa88e9e1b\",\n            \"fname\": \"Reshan\",\n            \"lname\": \"Dissanayake\",\n            \"score\": 0,\n            \"email\": \"reshandissanayake96@gmail.com\",\n            \"completion\": 1,\n            \"institute\": \"UoM\"\n        },\n        {\n            \"rank\": 5,\n            \"_id\": \"604ad82f9b5da60004a44a88\",\n            \"fname\": \"hasintha\",\n            \"lname\": \"abeykoon\",\n            \"score\": 0,\n            \"email\": \"hasinthaabyekoon@gmail.com\",\n            \"completion\": 1,\n            \"institute\": \"UoM\"\n        }\n    ]\n}"}],"_postman_id":"4a6f0be6-eb37-4205-96fb-6d11bbeda520"},{"name":"Filtered","id":"49a9ccfb-83b9-425a-ba5f-fd2363364711","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/leaderboard/filter?s=45&i=UoM","description":"<h2 id=\"request-query-parameters\">Request Query parameters</h2>\n<ul>\n<li>Filter the leaderboard.</li>\n<li>Can use either of the query params or both at once.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>s</code></td>\n<td>Score</td>\n</tr>\n<tr>\n<td><code>i</code></td>\n<td>Institute</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["leaderboard","filter"],"host":["{{domain}}"],"query":[{"description":{"content":"<p>Score to be matched</p>\n","type":"text/plain"},"key":"s","value":"45"},{"description":{"content":"<p>Institute to match</p>\n","type":"text/plain"},"key":"i","value":"UoM"}],"variable":[]}},"response":[{"id":"00d8fb86-51c6-477b-b1cc-95c9fb00b445","name":"Filtered only with i","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/leaderboard/filter?i=UoM","host":["{{domain}}"],"path":["leaderboard","filter"],"query":[{"key":"s","value":"5","description":"Score to be matched","disabled":true},{"key":"i","value":"UoM","description":"Institute to match"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"349"},{"key":"ETag","value":"W/\"15d-Vyvr5plviYnLdI43AqlFZnrJ6xk\""},{"key":"Date","value":"Thu, 04 Mar 2021 19:52:14 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Filter success\",\n    \"filter\": {\n        \"score\": null,\n        \"institute\": \"UoM\"\n    },\n    \"results\": [\n        {\n            \"rank\": 1,\n            \"_id\": \"603e612bf2b7c725ace06463\",\n            \"fname\": \"khk\",\n            \"lname\": \"Abeykoon\",\n            \"score\": 45,\n            \"email\": \"khk@gmail.com\",\n            \"completion\": 1,\n            \"institute\": \"UoM\"\n        },\n        {\n            \"rank\": 3,\n            \"_id\": \"602f2179340f610015a122c6\",\n            \"fname\": \"Hasintha\",\n            \"lname\": \"Abeykoon\",\n            \"score\": 0,\n            \"email\": \"hasinthaabeykoon@gmail.com\",\n            \"completion\": 0,\n            \"institute\": \"UoM\"\n        }\n    ]\n}"},{"id":"8e47804a-f183-4a14-9490-34e777b6609d","name":"Filtered","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/leaderboard/filter?s=45&i=UoM","host":["{{domain}}"],"path":["leaderboard","filter"],"query":[{"key":"s","value":"45","description":"Score to be matched"},{"key":"i","value":"UoM","description":"Institute to match"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"216"},{"key":"ETag","value":"W/\"d8-k2is/NKfjcmzI8fqZRVfvVa2VeE\""},{"key":"Date","value":"Fri, 26 Feb 2021 18:23:06 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Filter success\",\n    \"filter\": {\n        \"score\": 45,\n        \"institute\": \"UoM\"\n    },\n    \"results\": [\n        {\n            \"rank\": 1,\n            \"_id\": \"603e612bf2b7c725ace06463\",\n            \"fname\": \"khk\",\n            \"lname\": \"Abeykoon\",\n            \"score\": 45,\n            \"email\": \"khk@gmail.com\",\n            \"completion\": 1,\n            \"institute\": \"UoM\"\n        }\n    ]\n}"}],"_postman_id":"49a9ccfb-83b9-425a-ba5f-fd2363364711"},{"name":"User","id":"a59123c1-7267-4835-beef-d2d29f5fb1ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/leaderboard/:userId","description":"<p>Gets the user details specified by the path variable <code>userId</code> with ranking details.</p>\n","urlObject":{"path":["leaderboard",":userId"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"604ad82f9b5da60004a44a88","key":"userId"}]}},"response":[{"id":"8283d507-c9e1-4dbe-9aa8-9e75c2fb6082","name":"User result","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/leaderboard/:userId","host":["{{domain}}"],"path":["leaderboard",":userId"],"variable":[{"key":"userId","value":"604ad82f9b5da60004a44a88"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"161"},{"key":"ETag","value":"W/\"a1-7Hf31zkx3B0jrCwYwFW84hQkq80\""},{"key":"Date","value":"Sat, 01 May 2021 15:50:46 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"rank\": 5,\n    \"_id\": \"604ad82f9b5da60004a44a88\",\n    \"fname\": \"hasintha\",\n    \"lname\": \"abeykoon\",\n    \"score\": 0,\n    \"email\": \"hasinthaabyekoon@gmail.com\",\n    \"completion\": 1,\n    \"institute\": \"UoM\"\n}"}],"_postman_id":"a59123c1-7267-4835-beef-d2d29f5fb1ae"},{"name":"Distinct institute values","id":"b257a0d4-912f-43d7-931c-0b459e4b438b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/leaderboard/distinctinstitutes","description":"<p>Get all distinct values for institutes of the Simply users.</p>\n<ul>\n<li>Can be used to provide a filter on institutes in leaderboard filtration.</li>\n</ul>\n","urlObject":{"path":["leaderboard","distinctinstitutes"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"babdd45f-359e-464b-b394-22058fd49b51","name":"Distinct institute values","originalRequest":{"method":"GET","header":[],"url":"{{domain}}/leaderboard/distinctinstitutes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"13"},{"key":"ETag","value":"W/\"d-rpAdop2hOSJkQItKoUIY2n+G/BE\""},{"key":"Date","value":"Sat, 27 Feb 2021 12:30:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Distinct values fetched successfully\",\n    \"distincts\": [\n        \"UoC\",\n        \"UoM\"\n    ]\n}"}],"_postman_id":"b257a0d4-912f-43d7-931c-0b459e4b438b"}],"id":"fc9e230e-9122-4f8f-8ba1-66dad375e8cc","description":"<p>Leaderboard endpoints</p>\n","_postman_id":"fc9e230e-9122-4f8f-8ba1-66dad375e8cc"},{"name":"Answers","item":[{"name":"Run practice answer","id":"fd568418-dee4-4b8c-bbf3-aae5661220a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(\\\"0 \\\");}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/answer/practice-run/:questionId","description":"<p>This endpoint only executes code for checking \nbase test case. Does not update the user score, attempts or level. Only the answer validation is done.</p>\n<p>Use for <code>Run</code> before submission of an answer.</p>\n<p>For submission use <code>Practice answer</code> or <code>Compete answer</code> endpoints.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","name":"Answers","type":"folder"}},"urlObject":{"path":["answer","practice-run",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"6044c44dd588fc18284c0965","key":"questionId"}]}},"response":[{"id":"b2ecbb88-948d-4aad-9aca-c03ee59de713","name":"Already answered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(0 + \\\" \\\");}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/practice-run/:questionId","host":["{{domain}}"],"path":["answer","practice-run",":questionId"],"variable":[{"key":"questionId","value":"6044b1a0f7c198351c81cb84"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-hJv1JnCip3pl9+OM8PCVszx0q6k\""},{"key":"Date","value":"Tue, 13 Apr 2021 16:29:26 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Question already answered correctly\"\n}"},{"id":"5fb12060-45d4-4bd9-ab8b-7001d5552a53","name":"Run success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(0 + \\\" \\\");}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/practice-run/:questionId","host":["{{domain}}"],"path":["answer","practice-run",":questionId"],"variable":[{"key":"questionId","value":"6044c44dd588fc18284c0965"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"500"},{"key":"ETag","value":"W/\"1f4-NIswTdJYcZSs1xx15fxydOVNDqU\""},{"key":"Date","value":"Tue, 13 Apr 2021 16:27:52 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question answer run passed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(0 + \\\" \\\");}\\r\\n    }\\r\\n}\",\n        \"testResults\": {\n            \"testCase\": {\n                \"inputs\": \"1 2 3\",\n                \"outputs\": \"Java runs\\n0 0 0 \"\n            },\n            \"status\": 0,\n            \"stdout\": \"Java runs\\n0 0 0 \",\n            \"stderr\": null,\n            \"expected\": \"Java runs\\n0 0 0 \"\n        },\n        \"compilerResult\": {\n            \"status\": 0,\n            \"stdout\": \"\",\n            \"stderr\": null\n        },\n        \"passed\": true\n    }\n}"},{"id":"81324511-f03d-40ee-a837-e766dc88482a","name":"Compilation error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(0)}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/practice-run/:questionId","host":["{{domain}}"],"path":["answer","practice-run",":questionId"],"variable":[{"key":"questionId","value":"6044c44dd588fc18284c0965"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"567"},{"key":"ETag","value":"W/\"237-zTOBIg4vNaQSITOKnPX14bcda3k\""},{"key":"Date","value":"Tue, 13 Apr 2021 16:23:42 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question answer run failed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(0)}\\r\\n    }\\r\\n}\",\n        \"testResults\": null,\n        \"compilerResult\": {\n            \"status\": -1,\n            \"stdout\": \"\",\n            \"stderr\": \"temp-code\\\\Class602f2179340f610015a122c61618331021638.java:4: error: ';' expected\\r\\n for(int i=0; i < args.length; i++) {System.out.print(0)}\\r\\n                                                        ^\\r\\n1 error\\r\\n\"\n        },\n        \"passed\": false\n    }\n}"},{"id":"503c3097-9816-42f7-9e71-69059a25e2fa","name":"Test run failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length + 1; i++) {System.out.print(args[i]);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/practice-run/:questionId","host":["{{domain}}"],"path":["answer","practice-run",":questionId"],"variable":[{"key":"questionId","value":"6044c44dd588fc18284c0965"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"626"},{"key":"ETag","value":"W/\"272-/vyLCv+pUEy7Gqeo88TCO/jdgFI\""},{"key":"Date","value":"Tue, 13 Apr 2021 16:12:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question answer run failed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length + 1; i++) {System.out.print(args[i]);}\\r\\n    }\\r\\n}\",\n        \"testResults\": {\n            \"status\": -1,\n            \"stdout\": \"Java runs\\r\\n123\",\n            \"stderr\": \"Exception in thread \\\"main\\\" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3\\r\\n\\tat Class602f2179340f610015a122c61618330324528.main(Class602f2179340f610015a122c61618330324528.java:4)\\r\\n\"\n        },\n        \"compilerResult\": {\n            \"status\": 0,\n            \"stdout\": \"\",\n            \"stderr\": null\n        },\n        \"passed\": false\n    }\n}"}],"_postman_id":"fd568418-dee4-4b8c-bbf3-aae5661220a1"},{"name":"Practice answer","id":"92a337a9-c7a3-462c-bbc6-bceec3a2390b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(args[i]);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/answer/practice/:questionId","description":"<p>Answer to a Practice question. Users can only answer to practice questions which match the current <code>user.completion</code> to <code>question.level</code>.</p>\n<p>This endpoint Updates the user score, practice attempts &amp; level.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","name":"Answers","type":"folder"}},"urlObject":{"path":["answer","practice",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"60573d94efb122529c052921","key":"questionId"}]}},"response":[{"id":"9ef17599-6749-4bc4-b070-e9dc3b9d3de2","name":"Already answered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(args[i]);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/practice/:questionId","host":["{{domain}}"],"path":["answer","practice",":questionId"],"variable":[{"key":"questionId","value":"60573d94efb122529c052921"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-hJv1JnCip3pl9+OM8PCVszx0q6k\""},{"key":"Date","value":"Sun, 07 Mar 2021 11:01:59 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Question already answered correctly\"\n}"},{"id":"74d00f94-86c0-4233-b831-d3d595f5d789","name":"Correct answer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(args[i]);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/practice/:questionId","host":["{{domain}}"],"path":["answer","practice",":questionId"],"variable":[{"key":"questionId","value":"60573d94efb122529c052921"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1488"},{"key":"ETag","value":"W/\"5d0-TqKRIftQzwM3bLdUxS1JKNPuEbI\""},{"key":"Date","value":"Mon, 22 Mar 2021 04:37:40 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question answer passed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(args[i]);}\\r\\n    }\\r\\n}\",\n        \"testResults\": [\n            {\n                \"testCase\": {\n                    \"inputs\": \"1 2 3\",\n                    \"outputs\": \"Java runs\\n123\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                },\n                \"status\": 0,\n                \"stdout\": \"Java runs\\n123\",\n                \"stderr\": null\n            },\n            {\n                \"testCase\": {\n                    \"inputs\": \"1 2 3 4 5\",\n                    \"outputs\": \"Java runs\\n12345\",\n                    \"title\": \"Test case 2 title\",\n                    \"description\": \"Test case 2 decription\"\n                },\n                \"status\": 0,\n                \"stdout\": \"Java runs\\n12345\",\n                \"stderr\": null\n            }\n        ],\n        \"compilerResult\": {\n            \"status\": 0,\n            \"stdout\": \"\",\n            \"stderr\": null\n        },\n        \"passed\": true\n    },\n    \"updatedUser\": {\n        \"attempts\": {\n            \"practice\": [\n                {\n                    \"count\": 4,\n                    \"_id\": \"604a357ead63912fa49fc043\",\n                    \"question\": \"6044c44dd588fc18284c0965\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a3686ad63912fa49fc046\",\n                    \"question\": \"6044b1a0f7c198351c81cb84\",\n                    \"passed\": true\n                },\n                {\n                    \"count\": 21,\n                    \"_id\": \"6057484de14a150fbce9347c\",\n                    \"question\": \"60573d94efb122529c052921\",\n                    \"passed\": true\n                }\n            ],\n            \"compete\": [\n                {\n                    \"count\": 15,\n                    \"_id\": \"604a372177867b4498bdf25e\",\n                    \"question\": \"603e6bf840c1210e78797664\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a374777867b4498bdf25f\",\n                    \"question\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"passed\": true\n                }\n            ]\n        },\n        \"xp\": \"Advanced\",\n        \"score\": 170,\n        \"completion\": 1,\n        \"_id\": \"602f2179340f610015a122c6\",\n        \"fname\": \"Hasintha\",\n        \"lname\": \"Abeykoon\",\n        \"email\": \"hasinthaabeykoon@gmail.com\",\n        \"institute\": \"UoM\"\n    },\n    \"levelInfo\": {\n        \"leveledUp\": false,\n        \"completion\": 1\n    }\n}"},{"id":"d6708025-cc79-44a0-bfff-1f78be3d43b4","name":"Compilation error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(args[i])}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/practice/:questionId","host":["{{domain}}"],"path":["answer","practice",":questionId"],"variable":[{"key":"questionId","value":"60573d94efb122529c052921"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1356"},{"key":"ETag","value":"W/\"54c-MbMGZHyAJtfkf+NVDrRBS3PouFM\""},{"key":"Date","value":"Mon, 22 Mar 2021 04:35:36 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question answer failed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=0; i < args.length; i++) {System.out.print(args[i])}\\r\\n    }\\r\\n}\",\n        \"testResults\": [],\n        \"compilerResult\": {\n            \"status\": -1,\n            \"stdout\": \"\",\n            \"stderr\": \"temp-code\\\\Class602f2179340f610015a122c61616387735831.java:4: error: ';' expected\\r\\n for(int i=0; i < args.length; i++) {System.out.print(args[i])}\\r\\n                                                              ^\\r\\n1 error\\r\\n\"\n        },\n        \"passed\": false\n    },\n    \"updatedUser\": {\n        \"attempts\": {\n            \"practice\": [\n                {\n                    \"count\": 4,\n                    \"_id\": \"604a357ead63912fa49fc043\",\n                    \"question\": \"6044c44dd588fc18284c0965\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a3686ad63912fa49fc046\",\n                    \"question\": \"6044b1a0f7c198351c81cb84\",\n                    \"passed\": true\n                },\n                {\n                    \"count\": 19,\n                    \"_id\": \"6057484de14a150fbce9347c\",\n                    \"question\": \"60573d94efb122529c052921\",\n                    \"passed\": false\n                }\n            ],\n            \"compete\": [\n                {\n                    \"count\": 15,\n                    \"_id\": \"604a372177867b4498bdf25e\",\n                    \"question\": \"603e6bf840c1210e78797664\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a374777867b4498bdf25f\",\n                    \"question\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"passed\": true\n                }\n            ]\n        },\n        \"xp\": \"Advanced\",\n        \"score\": 150,\n        \"completion\": 1,\n        \"_id\": \"602f2179340f610015a122c6\",\n        \"fname\": \"Hasintha\",\n        \"lname\": \"Abeykoon\",\n        \"email\": \"hasinthaabeykoon@gmail.com\",\n        \"institute\": \"UoM\"\n    },\n    \"levelInfo\": {\n        \"leveledUp\": false,\n        \"completion\": 1\n    }\n}"},{"id":"09878099-90d9-4797-8bb9-60ddfc114434","name":"Test case failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n        System.out.println(\\\"Java runs\\\");\\r\\n for(int i=1; i < args.length; i++) {System.out.print(args[i]);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/practice/:questionId","host":["{{domain}}"],"path":["answer","practice",":questionId"],"variable":[{"key":"questionId","value":"60573d94efb122529c052921"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1303"},{"key":"ETag","value":"W/\"517-IW7nZBA/uezWsXjN6VtBxbKDrto\""},{"key":"Date","value":"Mon, 22 Mar 2021 04:36:42 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question answer failed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n        \\r\\n for(int i=0; i < args.length; i++) {} System.out.print(\\\"Test case 2 outputs\\\");\\r\\n    }\\r\\n}\",\n        \"testResults\": [\n            {\n                \"testCase\": {\n                    \"_id\": \"6044c487d588fc18284c0968\",\n                    \"inputs\": \"Test case 1 inputs\",\n                    \"outputs\": \"Test case 1 outputs\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                },\n                \"status\": -1,\n                \"stdout\": \"Test case 2 outputs\",\n                \"stderr\": \"Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 \\n\",\n                \"expected\": \"Test case 1 outputs\"\n            },\n            {\n                \"testCase\": {\n                    \"_id\": \"6044c487d588fc18284c0969\",\n                    \"inputs\": \"Test case 2 inputs\",\n                    \"outputs\": \"Test case 2 outputs\",\n                    \"title\": \"Test case 2 title\",\n                    \"description\": \"Test case 2 decription\"\n                },\n                \"status\": 0,\n                \"stdout\": \"Test case 2 outputs\",\n                \"stderr\": \"Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 \\n\",\n                \"expected\": \"Test case 2 outputs\"\n            },\n            {\n                \"testCase\": {\n                    \"_id\": \"6044c487d588fc18284c096a\",\n                    \"inputs\": \"Test case 3 inputs\",\n                    \"outputs\": \"Test case 3 outputs\",\n                    \"title\": \"Test case 3 title\",\n                    \"description\": \"Test case 3 decription\"\n                },\n                \"status\": -1,\n                \"stdout\": \"Test case 2 outputs\",\n                \"stderr\": \"Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 \\n\",\n                \"expected\": \"Test case 3 outputs\"\n            }\n        ],\n        \"compilerResult\": {\n            \"status\": 0,\n            \"stdout\": \"\",\n            \"stderr\": null\n        },\n        \"passed\": false\n    },\n    \"updatedUser\": {\n        \"attempts\": {\n            \"practice\": [\n                {\n                    \"count\": 50,\n                    \"_id\": \"604a357ead63912fa49fc043\",\n                    \"question\": \"6044c44dd588fc18284c0965\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a3686ad63912fa49fc046\",\n                    \"question\": \"6044b1a0f7c198351c81cb84\",\n                    \"passed\": true\n                },\n                {\n                    \"count\": 21,\n                    \"_id\": \"6057484de14a150fbce9347c\",\n                    \"question\": \"60573d94efb122529c052921\",\n                    \"passed\": true\n                }\n            ],\n            \"compete\": [\n                {\n                    \"count\": 15,\n                    \"_id\": \"604a372177867b4498bdf25e\",\n                    \"question\": \"603e6bf840c1210e78797664\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a374777867b4498bdf25f\",\n                    \"question\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"passed\": true\n                }\n            ]\n        },\n        \"xp\": \"Advanced\",\n        \"score\": 205,\n        \"completion\": 1,\n        \"_id\": \"602f2179340f610015a122c6\",\n        \"fname\": \"Hasintha\",\n        \"lname\": \"Abeykoon\",\n        \"email\": \"hasinthaabeykoon@gmail.com\",\n        \"institute\": \"UoM\"\n    },\n    \"levelInfo\": {\n        \"leveledUp\": false,\n        \"completion\": 1\n    }\n}"}],"_postman_id":"92a337a9-c7a3-462c-bbc6-bceec3a2390b"},{"name":"Run compete answer","id":"607613cf-617a-48f4-9520-7864e9dd3b55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val + \\\" \\\");}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/answer/compete-run/:questionId","description":"<p>This endpoint only executes code for checking \nbase test case. Does not update the user score, attempts or level. Only the answer validation is done.</p>\n<p>Use for <code>Run</code> before submission of an answer.</p>\n<p>For submission use <code>Practice answer</code> or <code>Compete answer</code> endpoints.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","name":"Answers","type":"folder"}},"urlObject":{"path":["answer","compete-run",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"","key":"questionId"}]}},"response":[{"id":"8f3eb4c4-0656-491c-987a-c5aa9c230ac7","name":"Already answered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val + \\\" \\\");}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/compete-run/:questionId","host":["{{domain}}"],"path":["answer","compete-run",":questionId"],"variable":[{"key":"questionId","value":"6044c5f58cc20b1ab4e5a0b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-hJv1JnCip3pl9+OM8PCVszx0q6k\""},{"key":"Date","value":"Tue, 13 Apr 2021 16:39:08 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Question already answered correctly\"\n}"},{"id":"3818cf85-50a9-4e30-a13a-5c1092e7baa3","name":"Run success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val + \\\" \\\");}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/compete-run/:questionId","host":["{{domain}}"],"path":["answer","compete-run",":questionId"],"variable":[{"key":"questionId","value":"603e6bf840c1210e78797664"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"463"},{"key":"ETag","value":"W/\"1cf-PjrVcjMoSjgzlR+vir5by8ROpmc\""},{"key":"Date","value":"Tue, 13 Apr 2021 16:37:24 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question answer run passed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val + \\\" \\\");}\\r\\n    }\\r\\n}\",\n        \"testResults\": {\n            \"testCase\": {\n                \"inputs\": \"1 2 3\",\n                \"outputs\": \"2 3 4 \"\n            },\n            \"status\": 0,\n            \"stdout\": \"2 3 4 \",\n            \"stderr\": null,\n            \"expected\": \"2 3 4 \"\n        },\n        \"compilerResult\": {\n            \"status\": 0,\n            \"stdout\": \"\",\n            \"stderr\": null\n        },\n        \"passed\": true\n    }\n}"},{"id":"7630c7ca-0cb4-4483-ad1e-8ae1b47e240e","name":"Compilation error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val + \\\" \\\")}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/compete-run/:questionId","host":["{{domain}}"],"path":["answer","compete-run",":questionId"],"variable":[{"key":"questionId","value":"603e6bf840c1210e78797664"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"671"},{"key":"ETag","value":"W/\"29f-w8xNFf0uFeiKktAIM+8kC9nWmEg\""},{"key":"Date","value":"Tue, 13 Apr 2021 16:38:25 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question answer run failed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val + \\\" \\\")}\\r\\n    }\\r\\n}\",\n        \"testResults\": null,\n        \"compilerResult\": {\n            \"status\": -1,\n            \"stdout\": \"\",\n            \"stderr\": \"temp-code\\\\Class602f2179340f610015a122c61618331905437.java:3: error: ';' expected\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val + \\\" \\\")}\\r\\n                                                                                                         ^\\r\\n1 error\\r\\n\"\n        },\n        \"passed\": false\n    }\n}"},{"id":"49df8621-72aa-440e-8fb8-ca5dbd5c1a0c","name":"Test run failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/compete-run/:questionId","host":["{{domain}}"],"path":["answer","compete-run",":questionId"],"variable":[{"key":"questionId","value":"603e6bf840c1210e78797664"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"452"},{"key":"ETag","value":"W/\"1c4-o0KdUwi/htasyj0THNmLFHQTc+o\""},{"key":"Date","value":"Tue, 13 Apr 2021 16:31:29 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question answer run failed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val);}\\r\\n    }\\r\\n}\",\n        \"testResults\": {\n            \"testCase\": {\n                \"inputs\": \"1 2 3\",\n                \"outputs\": \"2 3 4\"\n            },\n            \"status\": -1,\n            \"stdout\": \"234\",\n            \"stderr\": null,\n            \"expected\": \"2 3 4\"\n        },\n        \"compilerResult\": {\n            \"status\": 0,\n            \"stdout\": \"\",\n            \"stderr\": null\n        },\n        \"passed\": false\n    }\n}"}],"_postman_id":"607613cf-617a-48f4-9520-7864e9dd3b55"},{"name":"Compete answer","id":"d6057778-a664-43e2-90a2-0b728becc4cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/answer/compete/:questionId","description":"<p>Answer to a Compete question. Users can answer any question from the compete questions list.</p>\n<p>This endpoint Updates the user score &amp; compete attempts.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","name":"Answers","type":"folder"}},"urlObject":{"path":["answer","compete",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"603e6bf840c1210e78797664","key":"questionId"}]}},"response":[{"id":"6bff9f11-863c-48a2-9f11-8b5bf7e71209","name":"Already answered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"My code to compete question 1233\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/compete/:questionId","host":["{{domain}}"],"path":["answer","compete",":questionId"],"variable":[{"key":"questionId","value":"6044c5f58cc20b1ab4e5a0b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-hJv1JnCip3pl9+OM8PCVszx0q6k\""},{"key":"Date","value":"Thu, 11 Mar 2021 15:34:26 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Question already answered correctly\"\n}"},{"id":"450fc4fd-80c2-4d6f-9e6c-be30409bc67f","name":"Correct answer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/compete/:questionId","host":["{{domain}}"],"path":["answer","compete",":questionId"],"variable":[{"key":"questionId","value":"603e6bf840c1210e78797664"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1415"},{"key":"ETag","value":"W/\"587-6kfGzBikyeCYwsGIMigT+eQ++IE\""},{"key":"Date","value":"Mon, 22 Mar 2021 04:26:37 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question answer passed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val);}\\r\\n    }\\r\\n}\",\n        \"testResults\": [\n            {\n                \"testCase\": {\n                    \"_id\": \"603e6bf840c1210e78797665\",\n                    \"inputs\": \"1 2 3\",\n                    \"outputs\": \"234\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                },\n                \"status\": 0,\n                \"stdout\": \"234\",\n                \"stderr\": null\n            },\n            {\n                \"testCase\": {\n                    \"inputs\": \"5 7 9\",\n                    \"outputs\": \"6810\",\n                    \"title\": \"Test case 2 title\",\n                    \"description\": \"Test case 2 description\"\n                },\n                \"status\": 0,\n                \"stdout\": \"6810\",\n                \"stderr\": null\n            }\n        ],\n        \"compilerResult\": {\n            \"status\": 0,\n            \"stdout\": \"\",\n            \"stderr\": null\n        },\n        \"passed\": true\n    },\n    \"updatedUser\": {\n        \"attempts\": {\n            \"practice\": [\n                {\n                    \"count\": 4,\n                    \"_id\": \"604a357ead63912fa49fc043\",\n                    \"question\": \"6044c44dd588fc18284c0965\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a3686ad63912fa49fc046\",\n                    \"question\": \"6044b1a0f7c198351c81cb84\",\n                    \"passed\": true\n                },\n                {\n                    \"count\": 18,\n                    \"_id\": \"6057484de14a150fbce9347c\",\n                    \"question\": \"60573d94efb122529c052921\",\n                    \"passed\": false\n                }\n            ],\n            \"compete\": [\n                {\n                    \"count\": 12,\n                    \"_id\": \"604a372177867b4498bdf25e\",\n                    \"question\": \"603e6bf840c1210e78797664\",\n                    \"passed\": true\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a374777867b4498bdf25f\",\n                    \"question\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"passed\": true\n                }\n            ]\n        },\n        \"xp\": \"Advanced\",\n        \"score\": 150,\n        \"completion\": 1,\n        \"_id\": \"602f2179340f610015a122c6\",\n        \"fname\": \"Hasintha\",\n        \"lname\": \"Abeykoon\",\n        \"email\": \"hasinthaabeykoon@gmail.com\",\n        \"institute\": \"UoM\"\n    }\n}"},{"id":"ea54825d-1421-4006-b64f-fd63f118c32d","name":"Compilation error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1 System.out.print(val);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/compete/:questionId","host":["{{domain}}"],"path":["answer","compete",":questionId"],"variable":[{"key":"questionId","value":"603e6bf840c1210e78797664"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1350"},{"key":"ETag","value":"W/\"546-aDwL62dDj9foo+PCEjnORz5DSSA\""},{"key":"Date","value":"Mon, 22 Mar 2021 04:30:22 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question answer failed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1 System.out.print(val);}\\r\\n    }\\r\\n}\",\n        \"testResults\": [],\n        \"compilerResult\": {\n            \"status\": -1,\n            \"stdout\": \"\",\n            \"stderr\": \"temp-code\\\\Class602f2179340f610015a122c61616387422072.java:3: error: ';' expected\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1 System.out.print(val);}\\r\\n                                                                            ^\\r\\n1 error\\r\\n\"\n        },\n        \"passed\": false\n    },\n    \"updatedUser\": {\n        \"attempts\": {\n            \"practice\": [\n                {\n                    \"count\": 4,\n                    \"_id\": \"604a357ead63912fa49fc043\",\n                    \"question\": \"6044c44dd588fc18284c0965\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a3686ad63912fa49fc046\",\n                    \"question\": \"6044b1a0f7c198351c81cb84\",\n                    \"passed\": true\n                },\n                {\n                    \"count\": 18,\n                    \"_id\": \"6057484de14a150fbce9347c\",\n                    \"question\": \"60573d94efb122529c052921\",\n                    \"passed\": false\n                }\n            ],\n            \"compete\": [\n                {\n                    \"count\": 13,\n                    \"_id\": \"604a372177867b4498bdf25e\",\n                    \"question\": \"603e6bf840c1210e78797664\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a374777867b4498bdf25f\",\n                    \"question\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"passed\": true\n                }\n            ]\n        },\n        \"xp\": \"Advanced\",\n        \"score\": 150,\n        \"completion\": 1,\n        \"_id\": \"602f2179340f610015a122c6\",\n        \"fname\": \"Hasintha\",\n        \"lname\": \"Abeykoon\",\n        \"email\": \"hasinthaabeykoon@gmail.com\",\n        \"institute\": \"UoM\"\n    }\n}"},{"id":"60bc924c-7360-4a2b-9e10-c86cb38eac60","name":"Test case failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"class Code {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=1; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val);}\\r\\n    }\\r\\n}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/answer/compete/:questionId","host":["{{domain}}"],"path":["answer","compete",":questionId"],"variable":[{"key":"questionId","value":"603e6bf840c1210e78797664"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1246"},{"key":"ETag","value":"W/\"4de-xL+xGLdcHxcdl+i94GdSljOeN2k\""},{"key":"Date","value":"Mon, 22 Mar 2021 04:31:58 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question answer failed\",\n    \"consoleResult\": {\n        \"answer\": \"class Main {\\r\\n    public static void main(String[] args) {\\r\\n for(int i=0; i < args.length; i++) {int val = Integer.parseInt(args[i]) + 1; System.out.print(val); System.out.println(val);}\\r\\n    }\\r\\n}\",\n        \"testResults\": [\n            {\n                \"testCase\": {\n                    \"_id\": \"603e6bf840c1210e78797665\",\n                    \"inputs\": \"1 2 3\",\n                    \"outputs\": \"234\",\n                    \"title\": \"Test case 1 title\",\n                    \"description\": \"Test case 1 decription\"\n                },\n                \"status\": -1,\n                \"stdout\": \"22\\n33\\n44\\n\",\n                \"stderr\": \"Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 \\n\",\n                \"expected\": \"234\"\n            },\n            {\n                \"testCase\": {\n                    \"inputs\": \"5 7 9\",\n                    \"outputs\": \"6810\",\n                    \"title\": \"Test case 2 title\",\n                    \"description\": \"Test case 2 description\"\n                },\n                \"status\": -1,\n                \"stdout\": \"66\\n88\\n1010\\n\",\n                \"stderr\": \"Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 \\n\",\n                \"expected\": \"6810\"\n            }\n        ],\n        \"compilerResult\": {\n            \"status\": 0,\n            \"stdout\": \"\",\n            \"stderr\": null\n        },\n        \"passed\": false\n    },\n    \"updatedUser\": {\n        \"attempts\": {\n            \"practice\": [\n                {\n                    \"count\": 50,\n                    \"_id\": \"604a357ead63912fa49fc043\",\n                    \"question\": \"6044c44dd588fc18284c0965\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a3686ad63912fa49fc046\",\n                    \"question\": \"6044b1a0f7c198351c81cb84\",\n                    \"passed\": true\n                },\n                {\n                    \"count\": 21,\n                    \"_id\": \"6057484de14a150fbce9347c\",\n                    \"question\": \"60573d94efb122529c052921\",\n                    \"passed\": true\n                }\n            ],\n            \"compete\": [\n                {\n                    \"count\": 16,\n                    \"_id\": \"604a372177867b4498bdf25e\",\n                    \"question\": \"603e6bf840c1210e78797664\",\n                    \"passed\": false\n                },\n                {\n                    \"count\": 2,\n                    \"_id\": \"604a374777867b4498bdf25f\",\n                    \"question\": \"6044c5f58cc20b1ab4e5a0b1\",\n                    \"passed\": true\n                }\n            ]\n        },\n        \"xp\": \"Advanced\",\n        \"score\": 205,\n        \"completion\": 1,\n        \"_id\": \"602f2179340f610015a122c6\",\n        \"fname\": \"Hasintha\",\n        \"lname\": \"Abeykoon\",\n        \"email\": \"hasinthaabeykoon@gmail.com\",\n        \"institute\": \"UoM\"\n    }\n}"}],"_postman_id":"d6057778-a664-43e2-90a2-0b728becc4cf"},{"name":"Translate","id":"513785a5-2df6-4476-8c7c-81c017256982","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"function total(in: integer a, integer b) out: integer {integer sum = a + b;return sum;}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/answer/translate","description":"<p>Endpoint usage is explained in above <code>Answer</code> folder description.</p>\n<p>This endpoint only converts &amp; returns the translated code to the opposite language opposed to what is mentioned in the <code>lang</code> property.</p>\n<ul>\n<li><code>lang</code> property should be set to the language of the code written.</li>\n<li><code>lang = 'sn'</code> if the code is in sinhala &amp; will be converted to english in the response.</li>\n<li><code>lang = 'eng'</code> if the code is in english &amp; will be converted to sinhala in the response.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","name":"Answers","type":"folder"}},"urlObject":{"path":["answer","translate"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"49e84076-f12e-42fb-ac5f-036e8342be7b","name":"english to sinhala","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"function total(in: integer a, integer b) out: integer {integer sum = a + b;return sum;}\",\r\n    \"lang\": \"eng\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/answer/translate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"196"},{"key":"ETag","value":"W/\"c4-HsxqAYVYA0NMvvpiANDq6Dz5/5w\""},{"key":"Date","value":"Mon, 17 May 2021 10:33:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"stdout\": \"ක්\\ufffd?රිය\\ufffd?වලිය total(ඇතුළට: අංකය a, අංකය b) පිටතට: අංකය {අංකය sum = a + b;ආපසු sum;}\\n\\r\\n\",\n    \"stderr\": \"\"\n}"},{"id":"109635a5-2d91-4f25-9dbb-8158f64293ce","name":"sinhala to english","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"answer\": \"ක්\\ufffd?රිය\\ufffd?වලිය total(ඇතුළට: අංකය a, අංකය b) පිටතට: අංකය {අංකය sum = a + b;ආපසු sum;}\\n\\r\\n\",\r\n    \"lang\": \"sn\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/answer/translate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"196"},{"key":"ETag","value":"W/\"c4-HsxqAYVYA0NMvvpiANDq6Dz5/5w\""},{"key":"Date","value":"Mon, 17 May 2021 10:33:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"stdout\": \"function total(in: integer a, integer b) out: integer {integer sum = a + b;return sum;}\",\n    \"stderr\": \"\"\n}"}],"_postman_id":"513785a5-2df6-4476-8c7c-81c017256982"}],"id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9","description":"<p>Success responses contain the updated user object in the property <code>updatedUser</code>. The <code>attempts</code> property of <code>updatedUser</code> will not be populated with the question objects in responses.</p>\n<p>To get the <code>user</code> object with <code>attempts</code> object populated with question objects, use <code>User &gt; Me User profile - with attempts</code> endpoint again.</p>\n<hr />\n<h2 id=\"all-post-requests-to-answer-endpoints-should-contain-a-body-as-below\">All POST requests to answer endpoints should contain a body as below</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n \"answer\": &lt;code as string&gt;,\n \"lang\": &lt;string&gt;\n}\n</code></pre><ul>\n<li><code>lang</code> property possible values: <code>sn</code> or <code>eng</code>.</li>\n<li>set <code>lang = 'sn'</code> if the code is written using sinhala language.</li>\n<li>set <code>lang = 'eng'</code> if the code is written using english language.</li>\n</ul>\n<hr />\n<ul>\n<li>Code should be provided as properly javascript escaped <code>string</code>.</li>\n<li>Class which contains main method should be <code>Main</code> &amp; no other classes can be written. The logic should be written only using <code>Main</code> class inside <code>main</code> method.</li>\n<li><code>Compete answer</code> &amp; <code>Run compete answer</code> will not update user levels. Only <code>Practice answer</code> &amp; <code>Run practice answer</code> will update levels.</li>\n<li><code>Run</code> endpoints will not update any of the following: user score, user attempts, levels.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"ec939a66-8c07-4af1-9cb6-abff7195941a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"698f978d-721c-4fa5-ae62-4e5e6c126c7f","type":"text/javascript","exec":[""]}}],"_postman_id":"7410a1f9-2755-4b3c-8a2a-cf0f804fcfa9"},{"name":"Tutorials","item":[{"name":"Tutorial by level","id":"64ae0598-683e-4a00-a556-2d1accd04968","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/tutorial/:level","urlObject":{"path":["tutorial",":level"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"1","key":"level"}]}},"response":[{"id":"930398dd-65d7-4ea5-acf6-75db9af9ad06","name":"Success - level 1","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/tutorial/:level","host":["{{domain}}"],"path":["tutorial",":level"],"variable":[{"key":"level","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"238"},{"key":"ETag","value":"W/\"ee-f5UmtebhUqPuF7ketQnLc8rta8Q\""},{"key":"Date","value":"Tue, 27 Apr 2021 16:05:10 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalTutorialsCount\": 4,\n    \"previousTutorialLevel\": null,\n    \"nextTutorialLevel\": 2,\n    \"tutorial\": {\n        \"_id\": \"60883081f702884e849efd82\",\n        \"level\": 1,\n        \"title\": \"This is edited tutorial 1 title\",\n        \"description\": \"<h1>This is level one tutorial<h1> <b>edited<b>\"\n    }\n}"},{"id":"0d01035f-ef68-4fad-a76e-b6924033a1df","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/tutorial/:level","host":["{{domain}}"],"path":["tutorial",":level"],"variable":[{"key":"level","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"215"},{"key":"ETag","value":"W/\"d7-lqxhKiH0+I5vMKJHP0PYJMNRVSU\""},{"key":"Date","value":"Tue, 27 Apr 2021 16:07:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalTutorialsCount\": 4,\n    \"previousTutorialLevel\": 2,\n    \"nextTutorialLevel\": 4,\n    \"tutorial\": {\n        \"_id\": \"6088353283558054d4b8ddad\",\n        \"level\": 3,\n        \"title\": \"Level 3 tutorial title\",\n        \"description\": \"<h1>This is level three tutorial<h1>\"\n    }\n}"},{"id":"38698d42-7d3e-4700-afe3-949c2e5018dd","name":"Success - last level","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/tutorial/:level","host":["{{domain}}"],"path":["tutorial",":level"],"variable":[{"key":"level","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"217"},{"key":"ETag","value":"W/\"d9-Gn4pkETqkb4JUXFHYpF/RBEG30I\""},{"key":"Date","value":"Tue, 27 Apr 2021 16:05:53 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalTutorialsCount\": 4,\n    \"previousTutorialLevel\": 3,\n    \"nextTutorialLevel\": null,\n    \"tutorial\": {\n        \"_id\": \"6088353c83558054d4b8ddae\",\n        \"level\": 4,\n        \"title\": \"Level 4 tutorial title\",\n        \"description\": \"<h1>This is level four tutorial<h1>\"\n    }\n}"},{"id":"293dca3f-0e40-4764-8901-47e906789496","name":"No tutorial for level","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{domain}}/tutorial/:level","host":["{{domain}}"],"path":["tutorial",":level"],"variable":[{"key":"level","value":"5"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"Etag","value":"W/\"32-V1jTiw4lsKUZgDUzdRzZVQUVMmA\""},{"key":"Date","value":"Sat, 01 May 2021 05:19:09 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No tutorial found for provided level\"\n}"}],"_postman_id":"64ae0598-683e-4a00-a556-2d1accd04968"}],"id":"7ee83f27-2b2d-418d-8a8b-aae1e8a76e08","description":"<p>Concatenate each value from <code>sections[$].description</code> to create the entire tutorial for a selected level.</p>\n<ul>\n<li>Tutorial section of a level</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"3e668ca6-caf7-43b4-bab6-4fbf16932c57","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1b499884-5315-4e85-9fa1-93f0d15904a6","type":"text/javascript","exec":[""]}}],"_postman_id":"7ee83f27-2b2d-418d-8a8b-aae1e8a76e08"},{"name":"Admin","item":[{"name":"Practice questions","item":[{"name":"Practice question","id":"564d7a01-c367-42f1-9e45-86e4612edbd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Level 3 question new\",\r\n    \"description\": \"Decsription for the question\",\r\n    \"inputs\": \"inputs here\",\r\n    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\r\n    \"difficulty\": \"Easy\",\r\n    \"level\": 3,\r\n    \"category\": \"oop\",\r\n    \"pointsAllocated\": 35,\r\n    \"testcases\": [\r\n\t    {\r\n\t    \t\"inputs\": \"Test case 1 inputs\",\r\n\t    \t\"outputs\": \"Test case 1 outputs\",\r\n\t    \t\"title\": \"Test case 1 title\",\r\n\t    \t\"description\": \"Test case 1 decription\"\t\r\n\t\t},\r\n\t\t{\r\n\t    \t\"inputs\": \"Test case 2 inputs\",\r\n\t    \t\"outputs\": \"Test case 2 outputs\",\r\n\t    \t\"title\": \"Test case 2 title\",\r\n\t    \t\"description\": \"Test case 2 decription\"\t\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/questions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","questions"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"4418f100-e385-4e99-b38b-1c9d4ddc6372","name":"Practice question","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Level 3 question new\",\r\n    \"description\": \"Decsription for the question\",\r\n    \"inputs\": \"inputs here\",\r\n    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\r\n    \"difficulty\": \"Easy\",\r\n    \"level\": 3,\r\n    \"category\": \"oop\",\r\n    \"pointsAllocated\": 35,\r\n    \"testcases\": [\r\n\t    {\r\n\t    \t\"inputs\": \"Test case 1 inputs\",\r\n\t    \t\"outputs\": \"Test case 1 outputs\",\r\n\t    \t\"title\": \"Test case 1 title\",\r\n\t    \t\"description\": \"Test case 1 decription\"\t\r\n\t\t},\r\n\t\t{\r\n\t    \t\"inputs\": \"Test case 2 inputs\",\r\n\t    \t\"outputs\": \"Test case 2 outputs\",\r\n\t    \t\"title\": \"Test case 2 title\",\r\n\t    \t\"description\": \"Test case 2 decription\"\t\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/questions"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"787"},{"key":"ETag","value":"W/\"313-p+wfhVyJwnBijt74YuR0/7CzTnc\""},{"key":"Date","value":"Mon, 08 Mar 2021 04:27:14 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question saved successfully!\",\n    \"created\": {\n        \"_id\": \"6045a7a1f43b102560f23705\",\n        \"title\": \"Level 3 question new\",\n        \"description\": \"Decsription for the question\",\n        \"inputs\": \"inputs here\",\n        \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n        \"difficulty\": \"Easy\",\n        \"level\": 3,\n        \"category\": \"oop\",\n        \"testcases\": [\n            {\n                \"_id\": \"6045a7a1f43b102560f23706\",\n                \"inputs\": \"Test case 1 inputs\",\n                \"outputs\": \"Test case 1 outputs\",\n                \"title\": \"Test case 1 title\",\n                \"description\": \"Test case 1 decription\"\n            },\n            {\n                \"_id\": \"6045a7a1f43b102560f23707\",\n                \"inputs\": \"Test case 2 inputs\",\n                \"outputs\": \"Test case 2 outputs\",\n                \"title\": \"Test case 2 title\",\n                \"description\": \"Test case 2 decription\"\n            }\n        ],\n        \"pointsAllocated\": 35,\n        \"__v\": 0\n    },\n    \"request\": {\n        \"type\": \"GET\",\n        \"url\": \"http://localhost:8080/questions/6045a7a1f43b102560f23705\"\n    }\n}"},{"id":"98de4c72-d0e3-4e7b-9872-8fd499db4747","name":"Level tutorial not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Level 3 question new\",\r\n    \"description\": \"Decsription for the question\",\r\n    \"inputs\": \"inputs here\",\r\n    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\r\n    \"difficulty\": \"Easy\",\r\n    \"level\": 15,\r\n    \"category\": \"oop\",\r\n    \"pointsAllocated\": 35,\r\n    \"testcases\": [\r\n\t    {\r\n\t    \t\"inputs\": \"Test case 1 inputs\",\r\n\t    \t\"outputs\": \"Test case 1 outputs\",\r\n\t    \t\"title\": \"Test case 1 title\",\r\n\t    \t\"description\": \"Test case 1 decription\"\t\r\n\t\t},\r\n\t\t{\r\n\t    \t\"inputs\": \"Test case 2 inputs\",\r\n\t    \t\"outputs\": \"Test case 2 outputs\",\r\n\t    \t\"title\": \"Test case 2 title\",\r\n\t    \t\"description\": \"Test case 2 decription\"\t\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/questions"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"101"},{"key":"ETag","value":"W/\"65-7c+ndO6xZTngwlVLeXpErnKWfZU\""},{"key":"Date","value":"Sat, 01 May 2021 12:10:37 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Tutorial for level 15 not found. Please add tutorial for level 15 & then add questions.\"\n}"}],"_postman_id":"564d7a01-c367-42f1-9e45-86e4612edbd3"},{"name":"Practice question","id":"89ede9ae-8c70-4157-85d9-6a89a7d1b98e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Level changed q\",\r\n    \"level\": 2,\r\n    \"pointsAllocated\": 35,\r\n    \"testcases\": [ \r\n\t    {\r\n\t    \t\"inputs\": \"Test case 1 inputs\",\r\n\t    \t\"outputs\": \"Test case 1 outputs\",\r\n\t    \t\"title\": \"Test case 1 title\",\r\n\t    \t\"description\": \"Test case 1 decription\"\t\r\n\t\t},\r\n\t\t{\r\n\t    \t\"inputs\": \"Test case 2 inputs\",\r\n\t    \t\"outputs\": \"Test case 2 outputs\",\r\n\t    \t\"title\": \"Test case 2 title\",\r\n\t    \t\"description\": \"Test case 2 decription\"\t\r\n\t\t},\r\n        {\r\n\t    \t\"inputs\": \"Test case 3 inputs\",\r\n\t    \t\"outputs\": \"Test case 3 outputs\",\r\n\t    \t\"title\": \"Test case 3 title\",\r\n\t    \t\"description\": \"Test case 3 decription\"\t\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/questions/:questionId","description":"<p>Update a practice question specified by question Id path variable</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","questions",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"id":"ea73fce8-5795-47f6-a32a-e22f8d9859e4","type":"any","value":"6045a7a1f43b102560f23705","key":"questionId"}]}},"response":[{"id":"5c668e47-16d2-4d4c-a312-67c17b4d1d55","name":"Practice question","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Level changed q\",\r\n    \"level\": 2,\r\n    \"pointsAllocated\": 35,\r\n    \"testcases\": [ \r\n\t    {\r\n\t    \t\"inputs\": \"Test case 1 inputs\",\r\n\t    \t\"outputs\": \"Test case 1 outputs\",\r\n\t    \t\"title\": \"Test case 1 title\",\r\n\t    \t\"description\": \"Test case 1 decription\"\t\r\n\t\t},\r\n\t\t{\r\n\t    \t\"inputs\": \"Test case 2 inputs\",\r\n\t    \t\"outputs\": \"Test case 2 outputs\",\r\n\t    \t\"title\": \"Test case 2 title\",\r\n\t    \t\"description\": \"Test case 2 decription\"\t\r\n\t\t},\r\n        {\r\n\t    \t\"inputs\": \"Test case 3 inputs\",\r\n\t    \t\"outputs\": \"Test case 3 outputs\",\r\n\t    \t\"title\": \"Test case 3 title\",\r\n\t    \t\"description\": \"Test case 3 decription\"\t\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/admin/questions/:questionId","host":["{{domain}}"],"path":["admin","questions",":questionId"],"variable":[{"key":"questionId","value":"6045a7a1f43b102560f23705"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"927"},{"key":"ETag","value":"W/\"39f-tpAClE79JkM/Sx2rsMlxrTVpmvU\""},{"key":"Date","value":"Mon, 08 Mar 2021 04:30:40 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question updated!\",\n    \"updated\": {\n        \"_id\": \"6045a7a1f43b102560f23705\",\n        \"title\": \"Level changed q\",\n        \"description\": \"Decsription for the question\",\n        \"inputs\": \"inputs here\",\n        \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n        \"difficulty\": \"Easy\",\n        \"level\": 2,\n        \"category\": \"oop\",\n        \"testcases\": [\n            {\n                \"_id\": \"6045a870f43b102560f23708\",\n                \"inputs\": \"Test case 1 inputs\",\n                \"outputs\": \"Test case 1 outputs\",\n                \"title\": \"Test case 1 title\",\n                \"description\": \"Test case 1 decription\"\n            },\n            {\n                \"_id\": \"6045a870f43b102560f23709\",\n                \"inputs\": \"Test case 2 inputs\",\n                \"outputs\": \"Test case 2 outputs\",\n                \"title\": \"Test case 2 title\",\n                \"description\": \"Test case 2 decription\"\n            },\n            {\n                \"_id\": \"6045a870f43b102560f2370a\",\n                \"inputs\": \"Test case 3 inputs\",\n                \"outputs\": \"Test case 3 outputs\",\n                \"title\": \"Test case 3 title\",\n                \"description\": \"Test case 3 decription\"\n            }\n        ],\n        \"pointsAllocated\": 35\n    },\n    \"request\": {\n        \"type\": \"GET\",\n        \"url\": \"http://localhost:8080/questions/6045a7a1f43b102560f23705\"\n    }\n}"},{"id":"12f8654a-7a75-4fed-8412-aee2794f2b2e","name":"Level tutorial not found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Level changed q\",\r\n    \"level\": 15,\r\n    \"pointsAllocated\": 35,\r\n    \"testcases\": [ \r\n\t    {\r\n\t    \t\"inputs\": \"Test case 1 inputs\",\r\n\t    \t\"outputs\": \"Test case 1 outputs\",\r\n\t    \t\"title\": \"Test case 1 title\",\r\n\t    \t\"description\": \"Test case 1 decription\"\t\r\n\t\t},\r\n\t\t{\r\n\t    \t\"inputs\": \"Test case 2 inputs\",\r\n\t    \t\"outputs\": \"Test case 2 outputs\",\r\n\t    \t\"title\": \"Test case 2 title\",\r\n\t    \t\"description\": \"Test case 2 decription\"\t\r\n\t\t},\r\n        {\r\n\t    \t\"inputs\": \"Test case 3 inputs\",\r\n\t    \t\"outputs\": \"Test case 3 outputs\",\r\n\t    \t\"title\": \"Test case 3 title\",\r\n\t    \t\"description\": \"Test case 3 decription\"\t\r\n\t\t}\r\n\t]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/admin/questions/:questionId","host":["{{domain}}"],"path":["admin","questions",":questionId"],"variable":[{"key":"questionId","value":"6044b1a0f7c198351c81cb84"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"101"},{"key":"ETag","value":"W/\"65-7c+ndO6xZTngwlVLeXpErnKWfZU\""},{"key":"Date","value":"Sat, 01 May 2021 12:13:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Tutorial for level 15 not found. Please add tutorial for level 15 & then add questions.\"\n}"}],"_postman_id":"89ede9ae-8c70-4157-85d9-6a89a7d1b98e"},{"name":"Practice question","id":"81270019-cb4d-4ed3-a49c-cc572789c5fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{domain}}/admin/questions/:questionId","description":"<p>Delete a practice question specified by the Id path variable</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","questions",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"604665585a9d8b38187bde8b","key":"questionId"}]}},"response":[{"id":"b2e4a268-2896-4220-821a-34f5729f144e","name":"Practice question","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{domain}}/admin/questions/:questionId","host":["{{domain}}"],"path":["admin","questions",":questionId"],"variable":[{"key":"questionId","value":"6045a7a1f43b102560f23705"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"162"},{"key":"ETag","value":"W/\"a2-EW4W069G3pUzm3oXZNeLgnSz5/8\""},{"key":"Date","value":"Mon, 08 Mar 2021 04:31:21 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Practice question deleted!\",\n    \"usersAffected\": { // remove child refs from user attempts\n        \"matchedUsers\": 1,\n        \"modifiedUsers\": 1\n    },\n    \"request\": {\n        \"type\": \"POST\",\n        \"description\": \"You can create a question with this URL\",\n        \"url\": \"http://localhost:8080/questions\"\n    }\n}"}],"_postman_id":"81270019-cb4d-4ed3-a49c-cc572789c5fb"}],"id":"cd731fc8-ba36-415b-ae80-bd4718abf109","description":"<h2 id=\"practice-question-administration\">Practice question administration</h2>\n<ul>\n<li>CRUD for Practice questions</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"199c12fb-0fd5-4940-84c4-888b18cd094a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"295003f6-beaa-4404-9bdc-ba1d774229dd","type":"text/javascript","exec":[""]}}],"_postman_id":"cd731fc8-ba36-415b-ae80-bd4718abf109","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}}},{"name":"Compete questions","item":[{"name":"Compete question","id":"9c455815-6eba-4ed4-a74a-fc09b6db2946","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Where are the aliens now? compete question\",\r\n    \"description\": \"Compete question new\",\r\n    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\r\n    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\r\n    \"difficulty\": \"Easy\",\r\n    \"category\": \"basic_syntax\",\r\n    \"pointsAllocated\": 20,\r\n    \"testcases\": [\r\n        {\r\n            \"inputs\": \"Test case 1 inputs\",\r\n            \"outputs\": \"Test case 1 outputs\",\r\n            \"title\": \"Test case 1 title\",\r\n            \"description\": \"Test case 1 decription\"\r\n        },\r\n        {\r\n            \"inputs\": \"Test case 2 inputs\",\r\n            \"outputs\": \"Test case 2 outputs\",\r\n            \"title\": \"Test case 2 title\",\r\n            \"description\": \"Test case 2 decription\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/competequestion","description":"<p>Create a new Compete question</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","competequestion"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"a837d8e1-c7c7-4a21-8c9f-ef63c5cc9c7b","name":"Compete question","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Where are the aliens now? compete question\",\r\n    \"description\": \"Compete question new\",\r\n    \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\r\n    \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\r\n    \"difficulty\": \"Easy\",\r\n    \"category\": \"basic_syntax\",\r\n    \"pointsAllocated\": 20,\r\n    \"testcases\": [\r\n        {\r\n            \"inputs\": \"Test case 1 inputs\",\r\n            \"outputs\": \"Test case 1 outputs\",\r\n            \"title\": \"Test case 1 title\",\r\n            \"description\": \"Test case 1 decription\"\r\n        },\r\n        {\r\n            \"inputs\": \"Test case 2 inputs\",\r\n            \"outputs\": \"Test case 2 outputs\",\r\n            \"title\": \"Test case 2 title\",\r\n            \"description\": \"Test case 2 decription\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/competequestion"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"900"},{"key":"ETag","value":"W/\"384-ajNWOGmpy+7mZlqR+YQjAbnL09I\""},{"key":"Date","value":"Mon, 08 Mar 2021 04:32:29 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question saved successfully!\",\n    \"created\": {\n        \"_id\": \"6045a8dd2160212740a62f2c\",\n        \"title\": \"Where are the aliens now? compete question\",\n        \"description\": \"Compete question new\",\n        \"inputs\": \"As inputs you will be given a word which is identified as the one of the name of the alien base. Ex: Azkar\",\n        \"outputs\": \"You have to show greeting and the provided base name. Ex: Hello, Azkar!\",\n        \"difficulty\": \"Easy\",\n        \"category\": \"basic_syntax\",\n        \"testcases\": [\n            {\n                \"_id\": \"6045a8dd2160212740a62f2d\",\n                \"inputs\": \"Test case 1 inputs\",\n                \"outputs\": \"Test case 1 outputs\",\n                \"title\": \"Test case 1 title\",\n                \"description\": \"Test case 1 decription\"\n            },\n            {\n                \"_id\": \"6045a8dd2160212740a62f2e\",\n                \"inputs\": \"Test case 2 inputs\",\n                \"outputs\": \"Test case 2 outputs\",\n                \"title\": \"Test case 2 title\",\n                \"description\": \"Test case 2 decription\"\n            }\n        ],\n        \"pointsAllocated\": 20,\n        \"__v\": 0\n    },\n    \"request\": {\n        \"type\": \"GET\",\n        \"url\": \"http://localhost:8080/competequestion/6045a8dd2160212740a62f2c\"\n    }\n}"}],"_postman_id":"9c455815-6eba-4ed4-a74a-fc09b6db2946"},{"name":"Compete question","id":"1cd8407a-c081-475d-9f8d-7717ea19d6cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Where are the aliens now? compete question\",\r\n    \"inputs\": \"As inputs ..\",\r\n    \"outputs\": \"Outputs here\",\r\n    \"pointsAllocated\": 25,\r\n    \"testcases\": [\r\n        {\r\n            \"inputs\": \"Test case 1 inputs\",\r\n            \"outputs\": \"Test case 1 outputs\",\r\n            \"title\": \"Test case 1 title\",\r\n            \"description\": \"Test case 1 decription\"\r\n        },\r\n        {\r\n            \"inputs\": \"Test case 2 inputs\",\r\n            \"outputs\": \"Test case 2 outputs\",\r\n            \"title\": \"Test case 2 title\",\r\n            \"description\": \"Test case 2 decription\"\r\n        },\r\n        {\r\n            \"inputs\": \"Test case 3 inputs\",\r\n            \"outputs\": \"Test case 3 outputs\",\r\n            \"title\": \"Test case 3 title\",\r\n            \"description\": \"Test case 3 decription\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/competequestion/:questionId","description":"<p>Update a compete question specified by Id path variable</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","competequestion",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"id":"fc2ee6b6-d9bb-474a-8045-c856352fcbf4","type":"any","value":"6045a8dd2160212740a62f2c","key":"questionId"}]}},"response":[{"id":"71b136b7-e204-4e25-ab7d-fefaa4071437","name":"Compete question","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Where are the aliens now? compete question\",\r\n    \"inputs\": \"As inputs ..\",\r\n    \"outputs\": \"Outputs here\",\r\n    \"pointsAllocated\": 25,\r\n    \"testcases\": [\r\n        {\r\n            \"inputs\": \"Test case 1 inputs\",\r\n            \"outputs\": \"Test case 1 outputs\",\r\n            \"title\": \"Test case 1 title\",\r\n            \"description\": \"Test case 1 decription\"\r\n        },\r\n        {\r\n            \"inputs\": \"Test case 2 inputs\",\r\n            \"outputs\": \"Test case 2 outputs\",\r\n            \"title\": \"Test case 2 title\",\r\n            \"description\": \"Test case 2 decription\"\r\n        },\r\n        {\r\n            \"inputs\": \"Test case 3 inputs\",\r\n            \"outputs\": \"Test case 3 outputs\",\r\n            \"title\": \"Test case 3 title\",\r\n            \"description\": \"Test case 3 decription\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/admin/competequestion/:questionId","host":["{{domain}}"],"path":["admin","competequestion",":questionId"],"variable":[{"key":"questionId","value":"6045a8dd2160212740a62f2c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"886"},{"key":"ETag","value":"W/\"376-rX55s3VXamT6TraSIYFXxuhveqI\""},{"key":"Date","value":"Mon, 08 Mar 2021 04:34:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question updated!\",\n    \"updated\": {\n        \"_id\": \"6045a8dd2160212740a62f2c\",\n        \"title\": \"Where are the aliens now? compete question\",\n        \"description\": \"Compete question new\",\n        \"inputs\": \"As inputs ..\",\n        \"outputs\": \"Outputs here\",\n        \"difficulty\": \"Easy\",\n        \"category\": \"basic_syntax\",\n        \"testcases\": [\n            {\n                \"_id\": \"6045a9642160212740a62f2f\",\n                \"inputs\": \"Test case 1 inputs\",\n                \"outputs\": \"Test case 1 outputs\",\n                \"title\": \"Test case 1 title\",\n                \"description\": \"Test case 1 decription\"\n            },\n            {\n                \"_id\": \"6045a9642160212740a62f30\",\n                \"inputs\": \"Test case 2 inputs\",\n                \"outputs\": \"Test case 2 outputs\",\n                \"title\": \"Test case 2 title\",\n                \"description\": \"Test case 2 decription\"\n            },\n            {\n                \"_id\": \"6045a9642160212740a62f31\",\n                \"inputs\": \"Test case 3 inputs\",\n                \"outputs\": \"Test case 3 outputs\",\n                \"title\": \"Test case 3 title\",\n                \"description\": \"Test case 3 decription\"\n            }\n        ],\n        \"pointsAllocated\": 25\n    },\n    \"request\": {\n        \"type\": \"GET\",\n        \"url\": \"http://localhost:8080/questions/6045a8dd2160212740a62f2c\"\n    }\n}"}],"_postman_id":"1cd8407a-c081-475d-9f8d-7717ea19d6cd"},{"name":"Compete question","id":"34415209-9900-4afa-829d-333bf4446510","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{domain}}/admin/competequestion/:questionId","description":"<p>Delete a compete question specified by Id path variable</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","competequestion",":questionId"],"host":["{{domain}}"],"query":[],"variable":[{"id":"fd164de6-759a-428f-9cb3-229d10e5c2b8","type":"any","value":"6045a8dd2160212740a62f2c","key":"questionId"}]}},"response":[{"id":"8f91bf23-f4a0-446b-8448-b55f918f39c6","name":"Compete question","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{domain}}/admin/competequestion/:questionId","host":["{{domain}}"],"path":["admin","competequestion",":questionId"],"variable":[{"key":"questionId","value":"6045a8dd2160212740a62f2c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"167"},{"key":"ETag","value":"W/\"a7-4wpkfMWElHtKmmtIDUGeRiUy6H8\""},{"key":"Date","value":"Mon, 08 Mar 2021 04:34:59 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Compete question deleted!\",\n    \"request\": {\n        \"type\": \"POST\",\n        \"description\": \"You can create a question with this URL\",\n        \"url\": \"http://localhost:8080/competequestion\"\n    }\n}"}],"_postman_id":"34415209-9900-4afa-829d-333bf4446510"}],"id":"787a95cd-8ac6-4195-950e-33ca7cc4b03b","description":"<h2 id=\"compete-question-administration\">Compete question administration</h2>\n<ul>\n<li>CRUD for Compete questions</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"36186a2e-8473-4600-a035-86640177fb30","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dd76e6c7-0547-459d-8d87-252526e0bd34","type":"text/javascript","exec":[""]}}],"_postman_id":"787a95cd-8ac6-4195-950e-33ca7cc4b03b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}}},{"name":"Tutorials","item":[{"name":"Add tutorial","id":"29014a59-d29b-48d5-afb5-99de582ce031","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"level\": 1,\r\n    \"title\": \"Level 1 tutorial title\",\r\n    \"description\": \"<h1>This is level one tutorial<h1>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/tutorial","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","tutorial"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"baec559c-92c3-4a59-b6c2-46f445fb7ea7","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"level\": 1,\r\n    \"title\": \"Level 1 tutorial title\",\r\n    \"description\": \"<h1>This is level one tutorial<h1>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/tutorial"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"269"},{"key":"ETag","value":"W/\"10d-zqSgvMcgSXuyxvfBWVAWrLt3+2g\""},{"key":"Date","value":"Tue, 27 Apr 2021 15:40:49 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Tutorial added successfully\",\n    \"created\": {\n        \"_id\": \"60883081f702884e849efd82\",\n        \"level\": 1,\n        \"title\": \"Level 1 tutorial title\",\n        \"description\": \"<h1>This is level one tutorial<h1>\"\n    },\n    \"request\": {\n        \"type\": \"GET\",\n        \"url\": \"http://localhost:8080/tutorial/1\"\n    }\n}"},{"id":"bb2a49b3-031b-4fb1-b762-46512d949110","name":"Duplicate level","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"level\": 1,\r\n    \"title\": \"Level 1 tutorial title\",\r\n    \"description\": \"<h1>This is level one tutorial<h1>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/tutorial"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"165"},{"key":"ETag","value":"W/\"a5-/kVdUX2JxZIgZh2tnUYg1E6J1Rs\""},{"key":"Date","value":"Tue, 27 Apr 2021 15:42:04 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"A tutorial for this level already exists!\",\n    \"error\": {\n        \"type\": \"Duplicate value for unique attribute\",\n        \"keyValue\": {\n            \"level\": 1\n        }\n    }\n}"}],"_postman_id":"29014a59-d29b-48d5-afb5-99de582ce031"},{"name":"Edit tutorial","id":"b04c4175-bbe3-4cb0-8496-36d7452bfbb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"This is edited tutorial 1 title\",\r\n    \"description\": \"<h1>This is level one tutorial<h1> <b>edited<b>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/tutorial/:level","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","tutorial",":level"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"1","key":"level"}]}},"response":[{"id":"191bd275-2015-4406-b4d5-926df6db129f","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"This is edited tutorial 1 title\",\r\n    \"description\": \"<h1>This is level one tutorial<h1> <b>edited<b>\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/admin/tutorial/:level","host":["{{domain}}"],"path":["admin","tutorial",":level"],"variable":[{"key":"level","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"203"},{"key":"ETag","value":"W/\"cb-321dTillhHGwIYuagoYD3E7k//o\""},{"key":"Date","value":"Tue, 27 Apr 2021 15:49:08 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Tutorial edited successfully\",\n    \"updated\": {\n        \"_id\": \"60883081f702884e849efd82\",\n        \"level\": 1,\n        \"title\": \"This is edited tutorial 1 title\",\n        \"description\": \"<h1>This is level one tutorial<h1> <b>edited<b>\"\n    }\n}"},{"id":"7931cb2a-4a8d-4c53-8185-c7b9b241a62e","name":"Duplicate level","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"level\": 1,\r\n    \"title\": \"This is edited tutorial 1 title\",\r\n    \"description\": \"<h1>This is level one tutorial<h1> <b>edited<b>\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/admin/tutorial/:level","host":["{{domain}}"],"path":["admin","tutorial",":level"],"variable":[{"key":"level","value":"2"}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"130"},{"key":"ETag","value":"W/\"82-3bLnYsQlIy61/1yhu9f5GycwCgs\""},{"key":"Date","value":"Tue, 27 Apr 2021 15:52:12 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error occured while updating tutorial\",\n    \"error\": {\n        \"type\": \"Duplicate value for unique attribute\",\n        \"keyValue\": {\n            \"level\": 1\n        }\n    }\n}"},{"id":"3ea9b330-0455-4eb1-aea2-4ae2df5db4a5","name":"Not found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"level\": 1,\r\n    \"title\": \"This is edited tutorial 1 title\",\r\n    \"description\": \"<h1>This is level one tutorial<h1> <b>edited<b>\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{domain}}/admin/tutorial/:level","host":["{{domain}}"],"path":["admin","tutorial",":level"],"variable":[{"key":"level","value":"5"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"ETag","value":"W/\"3a-JJJuErd1hf1O+JT9qxjbl0MDJ8U\""},{"key":"Date","value":"Tue, 27 Apr 2021 15:52:57 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Could not find existing tutorial for level 5\"\n}"}],"_postman_id":"b04c4175-bbe3-4cb0-8496-36d7452bfbb5"},{"name":"Remove tutorial","id":"54a22dc3-77ec-4bf5-9827-cd8efd9126b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{domain}}/admin/tutorial/:level","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}},"urlObject":{"path":["admin","tutorial",":level"],"host":["{{domain}}"],"query":[],"variable":[{"type":"any","value":"4","key":"level"}]}},"response":[{"id":"3387bba6-3471-4688-9b5e-b7fdc68f937c","name":"Success","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{domain}}/admin/tutorial/:level","host":["{{domain}}"],"path":["admin","tutorial",":level"],"variable":[{"key":"level","value":"7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"192"},{"key":"ETag","value":"W/\"c0-brh29zjX4NDfHfBllXUfyfzNtkM\""},{"key":"Date","value":"Tue, 27 Apr 2021 15:58:29 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Tutorial deleted successfully with all the questions!\",\n    \"affectedQuestions\": 1,\n    \"deleted\": {\n        \"_id\": \"608d277b7e7dc7000441e00a\",\n        \"level\": 7,\n        \"title\": \"Data Types\",\n        \"description\": \"<h1>This is a new tutorial for DataTypes</h1>\"\n    }\n}"},{"id":"d92e3334-2dc3-4d55-a00b-36807ecdf416","name":"Not found","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{domain}}/admin/tutorial/:level","host":["{{domain}}"],"path":["admin","tutorial",":level"],"variable":[{"key":"level","value":"3"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-XdZHI6tXdwYJ58JaqR1VLv3MQk4\""},{"key":"Date","value":"Tue, 27 Apr 2021 15:59:51 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Tutorial not found for level 3\"\n}"}],"_postman_id":"54a22dc3-77ec-4bf5-9827-cd8efd9126b4"}],"id":"ddb8b96c-1eaf-4dac-8a9e-c00cd4b06747","description":"<p>Tutorials are managed as sections for each level. Therefore one level tutorial can be manipulated with sub sections in that level.</p>\n<p>To get the entire tutorial for a level, use the endpoint <code>Tutorials &gt; Tutorial section of level</code> &amp; concatenate each value from <code>sections[$].description</code> to form the tutorial entirely.</p>\n","_postman_id":"ddb8b96c-1eaf-4dac-8a9e-c00cd4b06747","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":true,"source":{"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","name":"Admin","type":"folder"}}},{"name":"Login","id":"49635020-7d9d-4f93-a69d-b9c56f5332d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasi@gmail.com\",\r\n    \"password\": \"hasi\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/login","description":"<p>Login endpoint for admin users.</p>\n<ul>\n<li>Admin users do not own a profile in the database.</li>\n<li>Hence Admins are restricted to use any authorized <code>user</code> endpoint.</li>\n</ul>\n<p>Decode the JWT on client side to access the decoded object with below properties.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n   email: &lt;userEmail&gt;,\n   userId: &lt;userId&gt;,\n   roles: &lt;[array of roles]&gt;\n }\n</code></pre><p>Roles may contain the following values: <code>['admin', 'user']</code></p>\n<p>This login will be only for admins, therefore Roles will contain <code>admin</code> and other roles.</p>\n<p><code>user</code> value will be only for users &amp; can be obtained by using <code>User &gt; Public &gt; Login</code> endpoint.</p>\n","urlObject":{"path":["admin","login"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"f301ab72-32c3-4bb9-ae8e-157372b60199","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasi@gmail.com\",\r\n    \"password\": \"hasi\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"247"},{"key":"ETag","value":"W/\"f7-UE2AlHo3a/ogDrbnVdWI/iH0T70\""},{"key":"Date","value":"Mon, 12 Apr 2021 17:20:39 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin auth success\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imhhc2lAZ21haWwuY29tIiwidXNlcklkIjpudWxsLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE2MTgyNDgwMzksImV4cCI6MTYxODI1MTYzOX0.n2Micy3o6XUB3PsB48-94RYOKzTponuyWv06yRv2QFM\"\n}"},{"id":"90104291-43db-40c7-915c-5e92da6d8323","name":"Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hasi@gmail.com\",\r\n    \"password\": \"hasid\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/admin/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Header","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-RZEYfGcpCMwQz7IykkQWDxjDpr0\""},{"key":"Date","value":"Mon, 12 Apr 2021 17:20:24 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin auth failed\"\n}"}],"_postman_id":"49635020-7d9d-4f93-a69d-b9c56f5332d1"}],"id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c","description":"<h2 id=\"simply-administration\">Simply Administration</h2>\n<ul>\n<li>CRUD methods for managing questions</li>\n</ul>\n<p>Currently added Admin accounts credentials: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Email</th>\n<th>Password</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"mailto:khkadmin@gmail.com\">khkadmin@gmail.com</a></td>\n<td>khkadmin</td>\n</tr>\n<tr>\n<td><a href=\"mailto:hasi@gmail.com\">hasi@gmail.com</a></td>\n<td>hasi</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{adminToken}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c77e088d-bb69-4784-97ea-47907af1bd69","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5ff69817-8e23-409d-8998-efb1a5dd7b0f","type":"text/javascript","exec":[""]}}],"_postman_id":"9f3970a2-19af-49cb-a34b-ae64dd03bf4c"}]}