{"info":{"_postman_id":"9a258ff0-8b7a-413e-8c5c-e368df5356c3","name":"Clueminati 2.0","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"25706513","collectionId":"9a258ff0-8b7a-413e-8c5c-e368df5356c3","publishedId":"2sAXqp83bu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-09-15T10:48:04.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","event":[{"listen":"test","script":{"id":"407a0670-19cd-49c1-9353-03797cd43a9f","exec":["\r","pm.collectionVariables.set(\"auth_token\", pm.response.json().data.token);\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"575f770a-3e28-434b-a5a8-cf077f581da3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@gmail.com\",\r\n    \"password\": \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/login","urlObject":{"path":["api","auth","login"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"1215a540-cfa6-40d1-912a-c9ff779311a2","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"aaditya@gmail.com\",\r\n    \"password\": \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Sat, 14 Sep 2024 12:32:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login success\",\n    \"data\": {\n        \"name\": \"Aaditya\",\n        \"email\": \"aaditya@gmail.com\",\n        \"teamId\": null,\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFhZGl0eWFAZ21haWwuY29tIiwicm9sZSI6InVzZXIiLCJpYXQiOjE3MjYzMTcxNTAsImV4cCI6MTcyNjMyMDc1MH0.xytkqoY5nbe5M8qLfmNkTnQ0quA5yRQs7monEGLcKjc\"\n    }\n}\n\n/*\n200 - Login Success\n400 - Invalid Credentials\n500 - Something went wrong\n*/"}],"_postman_id":"575f770a-3e28-434b-a5a8-cf077f581da3"},{"name":"Signup Admin","id":"8ecf8cec-98a4-44fa-9a1c-cee175ad0a92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Admin\",\r\n    \"email\": \"admin@gmail.com\",\r\n    \"password\": \"1234\",\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/signup-admin","urlObject":{"path":["api","auth","signup-admin"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"98f3bbd3-40e1-45fb-9fd2-ec7383016966","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Admin\",\r\n    \"email\": \"admin@gmail.com\",\r\n    \"password\": \"1234\",\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/signup-admin"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Sat, 14 Sep 2024 12:23:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Signup success\",\n    \"data\": {\n        \"name\": \"Admin\",\n        \"email\": \"admin@gmail.com\",\n        \"password\": \"$2b$10$G2GyKIP2gJaUBTZ3Y3sX7eDHfHHC1y3DpWd8N/fhCkWPc/oxRr8J2\",\n        \"role\": \"admin\",\n        \"teamId\": null,\n        \"sessionId\": null,\n        \"createdAt\": \"2024-09-14T12:23:31.430Z\",\n        \"updatedAt\": \"2024-09-14T12:23:32.846Z\"\n    }\n}\n/*\n201 - Signup success\n400 - Invalid data\n400 - Email, password and name are required\n403 - Sneaky mfker!\n409 - Email already registered\n500 - Something went wrong\n*/"}],"_postman_id":"8ecf8cec-98a4-44fa-9a1c-cee175ad0a92"},{"name":"Signup","id":"041db855-bf26-49e5-a8a8-699af3c6dfa4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Aaditya\",\r\n    \"email\": \"aaditya@gmail.com\",\r\n    \"password\": \"1234\",\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/signup","urlObject":{"path":["api","auth","signup"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"f8273c1e-c8ac-48a6-920e-dd0f71511518","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Aaditya\",\r\n    \"email\": \"aaditya@gmail.com\",\r\n    \"password\": \"1234\",\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Sat, 14 Sep 2024 12:08:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Signup success\",\n    \"data\": {\n        \"name\": \"Aaditya\",\n        \"email\": \"aaditya@gmail.com\",\n        \"password\": \"$2b$10$riTMwYqwrHb2JSlQNoXcyep.9JpiuiHlpMwZ5LEU9qSQgVAlJcHZq\",\n        \"role\": \"user\",\n        \"teamId\": null,\n        \"sessionId\": null,\n        \"createdAt\": \"2024-09-14T12:08:40.371Z\",\n        \"updatedAt\": \"2024-09-14T12:08:40.540Z\"\n    }\n}\n\n/*\n201 - Signup success\n400 - Invalid data\n400 - Email, password and name are required\n403 - Sneaky mfker!\n409 - Email already registered\n500 - Something went wrong\n*/"}],"_postman_id":"041db855-bf26-49e5-a8a8-699af3c6dfa4"},{"name":"Signup Bulk","id":"8d321db6-c61e-4862-9f6e-3f3cb19afb64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/C:/Users/aadit/Downloads/New Microsoft Excel Worksheet.csv"},{"key":"key","value":"clueminati-2.0-web","type":"text"}]},"url":"localhost:3000/api/auth/signup-bulk","urlObject":{"path":["api","auth","signup-bulk"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"36ff74a6-f028-4a01-ac9f-06883af88788","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/aadit/Downloads/New Microsoft Excel Worksheet.csv"],"src":"/C:/Users/aadit/Downloads/New Microsoft Excel Worksheet.csv"},{"key":"key","value":"clueminati-2.0-web","type":"text"}]},"url":"localhost:3000/api/auth/signup-bulk"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-disposition","value":"attachment; filename=\"users.csv\""},{"key":"content-type","value":"text/csv"},{"key":"Date","value":"Mon, 16 Sep 2024 22:15:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"Name,Email,Password\r\nA,a@gmail.com,(S^cfUbW\r\nB,b@gmail.com,r%oqaz4V\r\nC,c@gmail.com,X1Bmxcec\r\nD,d@gmail.com,7XROsjY2"}],"_postman_id":"8d321db6-c61e-4862-9f6e-3f3cb19afb64"},{"name":"Logout","event":[{"listen":"test","script":{"id":"9ebcb36d-fa8e-404f-bda1-a4839eed9808","exec":["pm.collectionVariables.unset(\"auth_token\");"],"type":"text/javascript","packages":{}}}],"id":"5801725c-a6c6-415f-bc6a-17a681b417e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"url":"localhost:3000/api/auth/logout","urlObject":{"path":["api","auth","logout"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"af9eb84a-9837-461b-8d5d-1ed1b7db6ebd","name":"Success","originalRequest":{"method":"POST","header":[],"url":"localhost:3000/api/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Sat, 14 Sep 2024 15:11:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Logged out\"\n}\n\n/*\n200 - Logged out\n401 - Not logged in\n500 - Something went wrong\n*/"}],"_postman_id":"5801725c-a6c6-415f-bc6a-17a681b417e7"},{"name":"Me","id":"5a80b1f8-18ed-4ba3-b479-dff657b7e3e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/auth/me","urlObject":{"path":["api","auth","me"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"58d513ad-10b9-4e81-8d26-eeae6161a52b","name":"No team","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/auth/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Sat, 14 Sep 2024 15:10:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Data fetched successfully\",\n    \"data\": {\n        \"name\": \"Aaditya\",\n        \"email\": \"aaditya@gmail.com\",\n        \"team\": null\n    }\n}\n\n/*\n200 - Data fetched successfully\n401 - Not logged in\n404 - User not found\n500 - Something went wrong\n*/"},{"id":"3d60ac79-23e6-463d-b90e-e453a1f7b848","name":"With Team","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/auth/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 19:48:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Data fetched successfully\",\n    \"data\": {\n        \"name\": \"Aaditya\",\n        \"email\": \"aaditya@gmail.com\",\n        \"teamId\": \"a47d21e3-8240-46b2-a36f-d984b64c24de\",\n        \"team\": {\n            \"name\": \"abc1\",\n            \"teamCode\": \"BFQC6N\",\n            \"userCount\": 1,\n            \"score\": 0,\n            \"users\": [\n                {\n                    \"name\": \"Aaditya\",\n                    \"email\": \"aaditya@gmail.com\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"5a80b1f8-18ed-4ba3-b479-dff657b7e3e4"},{"name":"Update","id":"121ec89a-3674-4bbb-9dc4-bc94f32944c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Aaditya\",\r\n    \"password\": \"1234\"\r\n}\r\n\r\n// send one of name, password or both","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/update","urlObject":{"path":["api","auth","update"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"445c06d7-71cd-4f93-a0a5-d6656f9e3cdf","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Aaditya\",\r\n    \"password\": \"1234\"\r\n}\r\n\r\n// send one of name, password or both","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 19:01:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User updated succesfully\",\n    \"data\": {\n        \"email\": \"aaditya@gmail.com\",\n        \"name\": \"Aaditya\"\n    }\n}\n\n/*\n200 - User updated succesfully\n400 - Invalid data\n400 - Password cannot be blank // password=\"\"\n400 - Name cannot be blank // name=\"\"\n401 - Not logged in\n500 - Something went wrong\n*/"}],"_postman_id":"121ec89a-3674-4bbb-9dc4-bc94f32944c2"}],"id":"54f45ca1-3387-4a26-9b60-64fe7a2f2b4a","_postman_id":"54f45ca1-3387-4a26-9b60-64fe7a2f2b4a","description":""},{"name":"Teams","item":[{"name":"Admin","item":[{"name":"Get All Team Names","id":"7e830803-55bc-4b60-91a2-c5d06fbea2af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/teams/all","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams","all"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"926a0a11-90ea-413e-9cda-1b82379b638c","name":"Success","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/teams"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 19:13:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Teams fetched successfully\",\n    \"data\": [\n        {\n            \"name\": \"abc1\",\n            \"code\": \"BFQC6N\"\n        }\n    ]\n}\n\n/*\n200 - Teams fetched successfully\n401 - Not logged in\n403 - Sneaky mfker!\n500 - Something went wrong\n*/"}],"_postman_id":"7e830803-55bc-4b60-91a2-c5d06fbea2af"},{"name":"Update Score","id":"847d04e6-721e-4339-9202-5eb2a64bdf01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"teamCode\": \"a\",\r\n    \"questionId\": \"q3\",\r\n    \"points\": 1,\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/update-score","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams","update-score"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"35ad79e7-9395-4cfd-8a43-d2e158fce6f4","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"teamCode\": \"a\",\r\n    \"questionId\": \"q3\",\r\n    \"points\": 1,\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/update-score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 21:28:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Score updated successfully\"\n}"}],"_postman_id":"847d04e6-721e-4339-9202-5eb2a64bdf01"},{"name":"Start","id":"eef9709a-19a9-48fd-9737-5958f855b831","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/start","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams","start"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"9aeec6ec-c90f-4c25-b0c3-f3b51ec111ed","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/start"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Thu, 19 Sep 2024 06:02:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Hunt started\"\n}"}],"_postman_id":"eef9709a-19a9-48fd-9737-5958f855b831"},{"name":"Stop","id":"eb18b678-0b31-4e9b-887a-17e994bfe0fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/stop","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams","stop"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"e8d36291-493e-412c-9f4e-d8a5d38cd270","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"key\": \"clueminati-2.0-web\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/start"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Thu, 19 Sep 2024 06:02:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Hunt started\"\n}"}],"_postman_id":"eb18b678-0b31-4e9b-887a-17e994bfe0fe"}],"id":"007d8a9e-9aaa-4802-8177-d03ff172f293","_postman_id":"007d8a9e-9aaa-4802-8177-d03ff172f293","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}}},{"name":"Create Team","id":"8389f6f3-0e96-4a45-80d6-2f0c03974175","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"teamName\": \"abc1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/create","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams","create"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"e5578341-fb3a-4c4c-8d19-9857949662e1","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"teamName\": \"abc1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 18:25:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Team created successfully\",\n    \"data\": {\n        \"name\": \"abc1\",\n        \"teamCode\": \"BFQC6N\"\n    }\n}\n\n/*\n201 - Team created successfully\n400 - Invalid data\n400 - Team name is required\n401 - Not logged in\n404 - User not found\n409 - User already in team\n409 - Team name already exists\n500 - Something went wrong\n*/"}],"_postman_id":"8389f6f3-0e96-4a45-80d6-2f0c03974175"},{"name":"Join Team","id":"aad1da67-deda-45e3-9761-c9aed8519442","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"teamCode\": \"BFQC6N\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/join","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams","join"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"05fb3c4c-141d-4b16-9762-fe5058323515","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"teamCode\": \"ONNJ15\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/teams/join"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 18:38:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Joined team successfully\"\n}\n\n/*\n200 - Joined team successfully\n400 - Invalid data\n400 - Team code is required\n400 - User is already part of the team\n401 - Not logged in\n404 - User not found\n404 - Team not found\n409 - User already in team\n409 - Team is full\n409 - Team name already exists\n500 - Something went wrong\n*/"}],"_postman_id":"aad1da67-deda-45e3-9761-c9aed8519442"},{"name":"Leave Team","id":"f2fbeea5-a61e-4e0d-83af-bfad779ff1d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:3000/api/teams/leave","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams","leave"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"ce02bb83-0b77-462a-afbf-e711cd015127","name":"Leave Team","originalRequest":{"method":"DELETE","header":[],"url":"localhost:3000/api/teams/leave"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 18:57:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Left team successfully\"\n}\n\n/*\n200 - Left team successfully\n200 - Left and deleted team succelfully\n400 - Invalid data\n400 - User is not part of associated team\n400 - User is not part of a team\n401 - Not logged in\n404 - User not found\n404 - Team not found\n500 - Something went wrong\n*/"}],"_postman_id":"f2fbeea5-a61e-4e0d-83af-bfad779ff1d2"},{"name":"Dashboard","id":"7767aba4-90e5-44ac-828f-1a82fdd88f4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/teams/dashboard","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams","dashboard"],"host":["localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"f58fc481-7238-4e8b-adb6-0beffb89c676","name":"Success","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/teams/dashboard"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 21:28:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Data fetched successfully\",\n    \"data\": {\n        \"topTeams\": [\n            {\n                \"id\": \"f4b5a130-c05c-4398-9273-ac059662f204\",\n                \"name\": \"d\",\n                \"score\": 40\n            },\n            {\n                \"id\": \"4f8869dc-e329-4469-9992-61c3e0fc4dc3\",\n                \"name\": \"b\",\n                \"score\": 30\n            },\n            {\n                \"id\": \"4d2bab32-9b9a-49b0-b70e-205c7b9183d6\",\n                \"name\": \"a\",\n                \"score\": 24\n            },\n            {\n                \"id\": \"169f78d8-96d1-4ad3-bdd2-d5a5fc7e8248\",\n                \"name\": \"c\",\n                \"score\": 10\n            },\n            {\n                \"id\": \"a47d21e3-8240-46b2-a36f-d984b64c24de\",\n                \"name\": \"abc1\",\n                \"score\": 0\n            }\n        ],\n        \"score\": 0,\n        \"currentTier\": \"Diamond\",\n        \"nextTier\": \"\",\n        \"pointsToNextTier\": 0\n    }\n}"}],"_postman_id":"7767aba4-90e5-44ac-828f-1a82fdd88f4a"},{"name":"Get Team","id":"098bc5ba-b9b5-475f-bb6b-af8d2adfc68d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/teams/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","name":"Teams","type":"folder"}},"urlObject":{"path":["api","teams",":id"],"host":["localhost:3000"],"query":[],"variable":[{"type":"any","value":"a47d21e3-8240-46b2-a36f-d984b64c24de","key":"id"}]}},"response":[{"id":"57f7ec70-6905-4160-8626-5d86d1953fa0","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:3000/api/teams/:id","host":["localhost:3000"],"path":["api","teams",":id"],"variable":[{"key":"id","value":"a47d21e3-8240-46b2-a36f-d984b64c24de"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"vary","value":"RSC, Next-Router-State-Tree, Next-Router-Prefetch"},{"key":"content-type","value":"application/json"},{"key":"Date","value":"Mon, 16 Sep 2024 19:46:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Team fetched successfully\",\n    \"data\": {\n        \"name\": \"abc1\",\n        \"teamCode\": \"BFQC6N\",\n        \"score\": 0,\n        \"users\": [\n            {\n                \"name\": \"Aaditya\",\n                \"email\": \"aaditya@gmail.com\"\n            }\n        ]\n    }\n}\n\n/*\n200 - Team fetched successfully\n400 - Team id is required\n400 - Invalid team id\n401 - Not logged in\n404 - Team not found\n500 - Something went wrong\n*/"}],"_postman_id":"098bc5ba-b9b5-475f-bb6b-af8d2adfc68d"}],"id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"57714414-8db6-4ca1-a93d-e69b87a52137","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"afc0dfa2-bb6d-45f1-9c10-0f6164fdc2e5","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"e98690c9-4736-4b37-b5db-c8752c9a2f96","description":""}],"event":[{"listen":"prerequest","script":{"id":"9fb3ef88-8a08-4602-80bc-ff62717bed25","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"5ff122b8-8bb8-480a-9b42-fdefb392fee8","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"API_URL","value":"localhost:3000","type":"string"},{"key":"auth_token","value":""}]}