{"info":{"_postman_id":"8719c6d0-bf95-4dde-95b1-be12d49daf74","name":"CodeElevate API Documentation","description":"<html><head></head><body><h3 id=\"codeelevate-backend-api-documentaion\">CodeElevate backend API documentaion.</h3>\n<p>Welcome to the CodeElevate API documentation page. Here you will find information about the API routes and how to use them.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"30434267","collectionId":"8719c6d0-bf95-4dde-95b1-be12d49daf74","publishedId":"2sA35G4hfM","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-03-31T06:03:54.000Z"},"item":[{"name":"Users","item":[{"name":"Register new user","id":"f17cbaa7-0e6f-42bc-a935-a0fe45784f40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Firstname Lastname\",\n    \"email\": \"user_email@mail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/users/register","description":"<p>This endpoint allows you to register a new user.</p>\n","urlObject":{"path":["users","register"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[]}},"response":[{"id":"3220a54f-00ed-407a-b392-10a947914321","name":"Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Firstname Lastname\",\n    \"email\": \"user_email@mail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/users/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJ1c2VyX2VtYWlsIiwibmFtZSI6IkZpcnN0bmFtZSBMYXN0bmFtZSIsImVtYWlsIjoidXNlcl9lbWFpbEBtYWlsLmNvbSIsImlhdCI6MTcxMTg2NDU0Mn0.rDFDxUgyeyXVbLzEH5eYMRkWwZfLdy2shEFdxz_bLw8"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"128"},{"key":"ETag","value":"W/\"80-vnGSX7KlsGgVasCnIEsKKsNzMMs\""},{"key":"Date","value":"Sun, 31 Mar 2024 05:55:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User registered successfully.\",\n    \"user\": {\n        \"id\": \"user_email\",\n        \"name\": \"Firstname Lastname\",\n        \"email\": \"user_email@mail.com\"\n    }\n}"},{"id":"4d45aeb2-4399-46b6-8bfd-e59780f720a1","name":"Already Registered","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Firstname Lastname\",\n    \"email\": \"user_email@mail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/users/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"ETag","value":"W/\"26-ViJ7988BiRfy7GLw3eZZwXLeZjk\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:14:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User already registered.\"\n}"},{"id":"4d70ebdc-5af7-4cc9-bf57-9fc23d9d71bd","name":"Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Firstname Lastname\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/users/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-lCidLHHiftrabW/4GS4/5GVoMOE\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:14:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\\\"email\\\" is required\"\n}"}],"_postman_id":"f17cbaa7-0e6f-42bc-a935-a0fe45784f40"},{"name":"Login","id":"067158fb-f339-4712-8d1a-c20582898de9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"user_email@mail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/users/login","description":"<p>This endpoint allows users to log in.</p>\n","urlObject":{"path":["users","login"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[]}},"response":[{"id":"25a59aa0-c6e0-4270-99bf-ddc3d215985c","name":"Login Successful","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"user_email@mail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/users/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJ1c2VyX2VtYWlsIiwibmFtZSI6IkZpcnN0bmFtZSBMYXN0bmFtZSIsImVtYWlsIjoidXNlcl9lbWFpbEBtYWlsLmNvbSIsImlhdCI6MTcxMTg2NjI1MH0.8GrXBdgb1uJVlHh2Znnr_zapKOI7S9xdaHbyP0tb00U"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"ETag","value":"W/\"74-TmI4XcH3A5PJWtTEqQCAUcmkmF0\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:24:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful.\",\n    \"user\": {\n        \"id\": \"user_email\",\n        \"name\": \"Firstname Lastname\",\n        \"email\": \"user_email@mail.com\"\n    }\n}"},{"id":"df1b95f6-41a4-4173-b4e3-6f4003e5c704","name":"User not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"user_email_1@mail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://code-elevate.onrender.com/api/users/login","host":["https://code-elevate.onrender.com/api"],"path":["users","login"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-mdtW8S/0Y2Oj9+KOA6pN7HIbcbE\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:24:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User not registered.\"\n}"},{"id":"a783f8f5-1660-4055-9aa2-f7da76c4fa02","name":"Invalid password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"user_email@mail.com\",\n    \"password\": \"password_1\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://code-elevate.onrender.com/api/users/login","host":["https://code-elevate.onrender.com/api"],"path":["users","login"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-0LX3NsLhr5EtKG9QHaZkJre5CmM\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:25:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid email or password.\"\n}"}],"_postman_id":"067158fb-f339-4712-8d1a-c20582898de9"}],"id":"e82db6b6-1be6-4e67-aa37-c74407d9317e","description":"<p>Routes starting with <code>/users</code> are used to manage users and their authentication.</p>\n","_postman_id":"e82db6b6-1be6-4e67-aa37-c74407d9317e"},{"name":"Manage","item":[{"name":"Create new contest","id":"423365f1-7295-466c-a13b-d3165c53285a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided while login","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Contest Title\",\n    \"description\": \"Description of contest\",\n    \"startTime\": \"2024-04-01T00:00:00Z\",\n    \"endTime\": \"2024-04-02T00:00:00Z\",\n    \"organizers\": [\n        \"gopalsaraf02\",\n        \"user_email\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/add","description":"<p>This endpoint allows you to add a new contest to the system.</p>\n","urlObject":{"path":["manage","contests","add"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[]}},"response":[{"id":"0b82e867-0d93-4272-9885-e24aeae6aedc","name":"Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJ1c2VyX2VtYWlsIiwibmFtZSI6IkZpcnN0bmFtZSBMYXN0bmFtZSIsImVtYWlsIjoidXNlcl9lbWFpbEBtYWlsLmNvbSIsImlhdCI6MTcxMTg2NjI1MH0.8GrXBdgb1uJVlHh2Znnr_zapKOI7S9xdaHbyP0tb00U","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Contest Title\",\n    \"description\": \"Description of contest\",\n    \"startTime\": \"2024-04-01T00:00:00Z\",\n    \"endTime\": \"2024-04-02T00:00:00Z\",\n    \"maxTeamSize\": 2,\n    \"penalty\": 20,\n    \"organizers\": [\n        \"gopalsaraf02\",\n        \"user_email\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/add"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"290"},{"key":"ETag","value":"W/\"122-duFrHY8hRiqUbg0NC1Co/JwSepo\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:40:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Contest created successfully.\",\n    \"contest\": {\n        \"id\": \"contest-title\",\n        \"title\": \"Contest Title\",\n        \"description\": \"Description of contest\",\n        \"startTime\": \"2024-04-01T00:00:00.000Z\",\n        \"endTime\": \"2024-04-02T00:00:00.000Z\",\n        \"maxTeamSize\": 2,\n        \"penalty\": {\n            \"isOn\": true,\n            \"value\": 20\n        },\n        \"organizers\": [\n            \"gopalsaraf02\",\n            \"user_email\"\n        ],\n        \"problems\": [],\n        \"participants\": []\n    }\n}"},{"id":"8113a007-3e88-4985-aced-fade7c24c576","name":"Timing in past","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJ1c2VyX2VtYWlsIiwibmFtZSI6IkZpcnN0bmFtZSBMYXN0bmFtZSIsImVtYWlsIjoidXNlcl9lbWFpbEBtYWlsLmNvbSIsImlhdCI6MTcxMTg2NjI1MH0.8GrXBdgb1uJVlHh2Znnr_zapKOI7S9xdaHbyP0tb00U","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Contest Title\",\n    \"description\": \"Description of contest\",\n    \"startTime\": \"2023-04-01T00:00:00Z\",\n    \"endTime\": \"2023-04-02T00:00:00Z\",\n    \"organizers\": [\n        \"gopalsaraf02\",\n        \"user_email\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/add"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-vDkmUFvVKbydNo2YfTfpsKt2K5c\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:41:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Start time must be in the future.\"\n}"},{"id":"37228ae5-ee57-49cf-be0c-e625e0e7e562","name":"Organisers doesn't exist","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJ1c2VyX2VtYWlsIiwibmFtZSI6IkZpcnN0bmFtZSBMYXN0bmFtZSIsImVtYWlsIjoidXNlcl9lbWFpbEBtYWlsLmNvbSIsImlhdCI6MTcxMTg2NjI1MH0.8GrXBdgb1uJVlHh2Znnr_zapKOI7S9xdaHbyP0tb00U","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Contest Title\",\n    \"description\": \"Description of contest\",\n    \"startTime\": \"2024-04-01T00:00:00Z\",\n    \"endTime\": \"2024-04-02T00:00:00Z\",\n    \"organizers\": [\n        \"gopalsaraf02\",\n        \"user_email\",\n        \"example_user\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/add"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-TXkaBKzxRe3jWU95jX5PulAVWWY\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:42:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Organizers example_user do not exist.\"\n}"},{"id":"cfd11424-9499-40dd-8285-802985d76d3a","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJ1c2VyX2VtYWlsIiwibmFtZSI6IkZpcnN0bmFtZSBMYXN0bmFtZSIsImVtYWlsIjoidXNlcl9lbWFpbEBtYWlsLmNvbSIsImlhdCI6MTcxMTg2NjI1MH0.8GrXBdgb1uJVlHh2Znnr_zapKOI7S9xdaHbyP0tb00U","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Contest Title\",\n    // \"description\": \"Description of contest\",\n    \"startTime\": \"2024-04-01T00:00:00Z\",\n    \"endTime\": \"2024-04-02T00:00:00Z\",\n    \"organizers\": [\n        \"gopalsaraf02\",\n        \"user_email\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/add"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-K6B7lPjX+ZCcpdIOTxotYlFwzJE\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:42:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\\\"description\\\" is required\"\n}"},{"id":"de1dc86e-037f-406f-9a8a-107e269079ef","name":"No token provided","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJ1c2VyX2VtYWlsIiwibmFtZSI6IkZpcnN0bmFtZSBMYXN0bmFtZSIsImVtYWlsIjoidXNlcl9lbWFpbEBtYWlsLmNvbSIsImlhdCI6MTcxMTg2NjI1MH0.8GrXBdgb1uJVlHh2Znnr_zapKOI7S9xdaHbyP0tb00U","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Contest Title\",\n    \"description\": \"Description of contest\",\n    \"startTime\": \"2024-04-01T00:00:00Z\",\n    \"endTime\": \"2024-04-02T00:00:00Z\",\n    \"organizers\": [\n        \"gopalsaraf02\",\n        \"user_email\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/add"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"ETag","value":"W/\"40-+qJa/ZqbU09ML48D/6jhgFTY1UM\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:42:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Access denied. No token provided.\"\n}"}],"_postman_id":"423365f1-7295-466c-a13b-d3165c53285a"},{"name":"Update existing contest","id":"5d42a3c6-b605-4e8b-af7e-d172695094a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided while login","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"contest-title\",\n    \"description\": \"Updated description of contest\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/update","description":"<p>This endpoint allows you to update contest details.</p>\n","urlObject":{"path":["manage","contests","update"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[]}},"response":[{"id":"7458b12c-d9e3-498d-85ba-4e3f176c58e3","name":"Updated Successfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"contest-title\",\n    \"description\": \"Updated description of contest\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"298"},{"key":"ETag","value":"W/\"12a-GEUZZKDIj25sIQW9ct3Sx/78weA\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:48:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Contest updated successfully.\",\n    \"contest\": {\n        \"id\": \"contest-title\",\n        \"title\": \"Contest Title\",\n        \"description\": \"Updated description of contest\",\n        \"startTime\": \"2024-04-01T00:00:00.000Z\",\n        \"endTime\": \"2024-04-02T00:00:00.000Z\",\n        \"problems\": [],\n        \"organizers\": [\n            \"gopalsaraf02\",\n            \"user_email\"\n        ],\n        \"participants\": []\n    }\n}"},{"id":"c29bd8c8-6507-48eb-8f32-98333558276b","name":"Access denied","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJzYXJhZmdvcGFsc2luZ2giLCJuYW1lIjoiR29wYWxzaW5naCBSYWpwdXQiLCJlbWFpbCI6InNhcmFmZ29wYWxzaW5naEBnbWFpbC5jb20iLCJpYXQiOjE3MTE4Njc4OTR9.PW54797qVBBmSCRM_Rfow9_N6HedSHJdAoJ-VfoGGpU","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"contest-title\",\n    \"description\": \"Updated description of contest\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/update"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-nWcT8lAoCqDjrCJITDHkT+rfixY\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:51:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied.\"\n}"},{"id":"db13fd88-55bd-4d85-8539-b969d318e300","name":"No token provided","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"{{token}}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"id\": \"contest-title\",\n    \"description\": \"Updated description of contest\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/update"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"ETag","value":"W/\"40-+qJa/ZqbU09ML48D/6jhgFTY1UM\""},{"key":"Date","value":"Sun, 31 Mar 2024 06:49:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Access denied. No token provided.\"\n}"}],"_postman_id":"5d42a3c6-b605-4e8b-af7e-d172695094a7"},{"name":"Add new problem","id":"cf1b567a-2c4e-469a-98c6-470967fc6c35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided while login","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Drive Overspeeding\",\n    \"statement\": \"Alice is going for a drive. During her drive, she reached a maximum speed of S km/hr.\\n\\nAs per the rules of the government, the speed of the vehicle must not exceed 40 km/hr, otherwise the person will be fined.\\n\\nYou need to tell whether Alice will be fined or not.\",\n    \"input\": \"The only line of input will contain a single integer S - denoting the maximum speed Alice reached while driving.\",\n    \"output\": \"Print YES if Alice will be fined , otherwise print NO.\\n\\nYou may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical).\",\n    \"constraints\": \"1 ≤ S ≤ 50\",\n    \"samples\": [\n        {\n            \"input\": \"40\",\n            \"output\": \"NO\",\n            \"explanation\": \"Since Alice's speed does not exceed 40, she will not be fined.\"\n        },\n        {\n            \"input\": \"41\",\n            \"output\": \"YES\",\n            \"explanation\": \"Since Alice's speed exceeds 40, she will be fined.\"\n        }\n    ],\n    \"difficulty\": \"Easy\",\n    \"tags\": [\n        \"if-else\",\n        \"conditional\"\n    ],\n    \"testCases\": [\n        {\n            \"input\": \"50\",\n            \"output\": \"YES\"\n        },\n        {\n            \"input\": \"30\",\n            \"output\": \"NO\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/:contestId/problems/add","description":"<p>This endpoint allows you to add a new problem to a specific contest. The request should be sent as an HTTP POST to /manage/contests/:contestId/problems/add where :contestId should be replaced with ID of contest.</p>\n","urlObject":{"path":["manage","contests",":contestId","problems","add"],"host":["https://code-elevate.onrender.com/api"],"query":[{"disabled":true,"key":"","value":null}],"variable":[{"type":"any","value":"ID of contest","key":"contestId"}]}},"response":[{"id":"9a0471f7-d59d-42d3-b87f-590db6167f43","name":"Added Successfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Drive Overspeeding\",\n    \"statement\": \"Alice is going for a drive. During her drive, she reached a maximum speed of S km/hr.\\n\\nAs per the rules of the government, the speed of the vehicle must not exceed 40 km/hr, otherwise the person will be fined.\\n\\nYou need to tell whether Alice will be fined or not.\",\n    \"input\": \"The only line of input will contain a single integer S - denoting the maximum speed Alice reached while driving.\",\n    \"output\": \"Print YES if Alice will be fined , otherwise print NO.\\n\\nYou may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical).\",\n    \"constraints\": \"1 ≤ S ≤ 50\",\n    \"samples\": [\n        {\n            \"input\": \"40\",\n            \"output\": \"NO\",\n            \"explanation\": \"Since Alice's speed does not exceed 40, she will not be fined.\"\n        },\n        {\n            \"input\": \"41\",\n            \"output\": \"YES\",\n            \"explanation\": \"Since Alice's speed exceeds 40, she will be fined.\"\n        }\n    ],\n    \"difficulty\": \"Easy\",\n    \"tags\": [\n        \"if-else\",\n        \"conditional\"\n    ],\n    \"score\": 100,\n    \"testCases\": [\n        {\n            \"input\": \"50\",\n            \"output\": \"YES\"\n        },\n        {\n            \"input\": \"30\",\n            \"output\": \"NO\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://code-elevate.onrender.com/api/manage/contests/contest-title/problems/add","host":["https://code-elevate.onrender.com/api"],"path":["manage","contests","contest-title","problems","add"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1267"},{"key":"ETag","value":"W/\"4f3-uScgdDlbksvPnN28KRfRcco0u1M\""},{"key":"Date","value":"Sun, 31 Mar 2024 07:03:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Problem added successfully.\",\n    \"problem\": {\n        \"id\": \"drive_overspeeding\",\n        \"title\": \"Drive Overspeeding\",\n        \"statement\": \"Alice is going for a drive. During her drive, she reached a maximum speed of S km/hr.\\n\\nAs per the rules of the government, the speed of the vehicle must not exceed 40 km/hr, otherwise the person will be fined.\\n\\nYou need to tell whether Alice will be fined or not.\",\n        \"input\": \"The only line of input will contain a single integer S - denoting the maximum speed Alice reached while driving.\",\n        \"output\": \"Print YES if Alice will be fined , otherwise print NO.\\n\\nYou may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical).\",\n        \"constraints\": \"1 ≤ S ≤ 50\",\n        \"samples\": [\n            {\n                \"input\": \"40\",\n                \"output\": \"NO\",\n                \"explanation\": \"Since Alice's speed does not exceed 40, she will not be fined.\"\n            },\n            {\n                \"input\": \"41\",\n                \"output\": \"YES\",\n                \"explanation\": \"Since Alice's speed exceeds 40, she will be fined.\"\n            }\n        ],\n        \"difficulty\": \"Easy\",\n        \"tags\": [\n            \"if-else\",\n            \"conditional\"\n        ],\n        \"testCases\": [\n            {\n                \"input\": \"50\",\n                \"output\": \"YES\"\n            },\n            {\n                \"input\": \"30\",\n                \"output\": \"NO\"\n            }\n        ],\n        \"score\": 100,\n        \"contest\": \"contest-title\"\n    }\n}"}],"_postman_id":"cf1b567a-2c4e-469a-98c6-470967fc6c35"},{"name":"Update existing problem","id":"a962ace8-53f8-4d8b-bed3-e3e619edd4a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided while login","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"drive_overspeeding\",\n    \"constraints\": \"1 ≤ S ≤ 100\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/:contestId/problems/update","urlObject":{"path":["manage","contests",":contestId","problems","update"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"ID of contest","key":"contestId"}]}},"response":[{"id":"089293e7-5644-4055-ba1f-4c342a1470d5","name":"Updated Successfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"drive_overspeeding\",\n    \"constraints\": \"1 ≤ S ≤ 100\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://code-elevate.onrender.com/api/manage/contests/:contestId/problems/update","host":["https://code-elevate.onrender.com/api"],"path":["manage","contests",":contestId","problems","update"],"variable":[{"key":"contestId","value":"contest-title","description":"ID of contest"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1270"},{"key":"ETag","value":"W/\"4f6-qoMJtJPIVdV/y0rbx9WNdGR9ygI\""},{"key":"Date","value":"Sun, 31 Mar 2024 07:13:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Problem updated successfully.\",\n    \"problem\": {\n        \"id\": \"drive_overspeeding\",\n        \"title\": \"Drive Overspeeding\",\n        \"statement\": \"Alice is going for a drive. During her drive, she reached a maximum speed of S km/hr.\\n\\nAs per the rules of the government, the speed of the vehicle must not exceed 40 km/hr, otherwise the person will be fined.\\n\\nYou need to tell whether Alice will be fined or not.\",\n        \"input\": \"The only line of input will contain a single integer S - denoting the maximum speed Alice reached while driving.\",\n        \"output\": \"Print YES if Alice will be fined , otherwise print NO.\\n\\nYou may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical).\",\n        \"constraints\": \"1 ≤ S ≤ 100\",\n        \"samples\": [\n            {\n                \"input\": \"40\",\n                \"output\": \"NO\",\n                \"explanation\": \"Since Alice's speed does not exceed 40, she will not be fined.\"\n            },\n            {\n                \"input\": \"41\",\n                \"output\": \"YES\",\n                \"explanation\": \"Since Alice's speed exceeds 40, she will be fined.\"\n            }\n        ],\n        \"difficulty\": \"Easy\",\n        \"tags\": [\n            \"if-else\",\n            \"conditional\"\n        ],\n        \"testCases\": [\n            {\n                \"input\": \"50\",\n                \"output\": \"YES\"\n            },\n            {\n                \"input\": \"30\",\n                \"output\": \"NO\"\n            }\n        ],\n        \"contest\": \"contest-title\"\n    }\n}"}],"_postman_id":"a962ace8-53f8-4d8b-bed3-e3e619edd4a9"},{"name":"Delete contest","id":"6eb82bc5-8a08-4f3f-b5bd-37db69f6a13a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided while login","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"contest-id\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/delete","description":"<p>This endpoint allows you to delete contest.</p>\n","urlObject":{"path":["manage","contests","delete"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6eb82bc5-8a08-4f3f-b5bd-37db69f6a13a"},{"name":"Delete Problem","id":"ff1480ca-d089-4aa8-bedb-75b372293b1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided while login","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"problem-id\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/manage/contests/:contestId/problems/delete","description":"<p>This endpoint allows you to delete problem from contest.</p>\n","urlObject":{"path":["manage","contests",":contestId","problems","delete"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"contest ID","key":"contestId"}]}},"response":[],"_postman_id":"ff1480ca-d089-4aa8-bedb-75b372293b1f"}],"id":"f63844c8-0b5c-4beb-a1a4-34ac5787da95","description":"<p>Routes starting with <code>/manage</code> are used to manage contests and problems.</p>\n","_postman_id":"f63844c8-0b5c-4beb-a1a4-34ac5787da95"},{"name":"Contests","item":[{"name":"Get all contests","id":"e61479cc-7c10-4104-b17b-8e22c2bdde17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://code-elevate.onrender.com/api/contests","description":"<p>This endpoint retrieves information about contests.</p>\n<p>The response will include three arrays:</p>\n<ul>\n<li>\"running\" for currently running contests</li>\n<li>\"upcoming\" for upcoming contests</li>\n<li>\"past\" for past contests</li>\n</ul>\n","urlObject":{"path":["contests"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[]}},"response":[{"id":"18de1ebb-8ee8-4f16-b0ad-5f64775af894","name":"Successful","originalRequest":{"method":"GET","header":[],"url":"https://code-elevate.onrender.com/api/contests"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"577"},{"key":"ETag","value":"W/\"241-HkXbTs7iEidi+WuhZPwtT1Vtxnk\""},{"key":"Date","value":"Sun, 31 Mar 2024 07:18:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"running\": [],\n    \"upcoming\": [\n        {\n            \"id\": \"contest-1\",\n            \"title\": \"Contest 1\",\n            \"description\": \"Description of contest 1\",\n            \"startTime\": \"2024-04-01T00:00:00.000Z\",\n            \"endTime\": \"2024-04-02T00:00:00.000Z\",\n            \"duration\": \"1 day\"\n        },\n        {\n            \"id\": \"contest-title\",\n            \"title\": \"Contest Title\",\n            \"description\": \"Updated description of contest\",\n            \"startTime\": \"2024-04-01T00:00:00.000Z\",\n            \"endTime\": \"2024-04-02T00:00:00.000Z\",\n            \"duration\": \"1 day\"\n        }\n    ],\n    \"past\": [\n        {\n            \"id\": \"contest-2\",\n            \"title\": \"Contest 2\",\n            \"description\": \"Description of contest 2\",\n            \"startTime\": \"2024-03-30T19:10:00.000Z\",\n            \"endTime\": \"2024-03-31T02:00:00.000Z\",\n            \"duration\": \"7 hours\"\n        }\n    ]\n}"}],"_postman_id":"e61479cc-7c10-4104-b17b-8e22c2bdde17"},{"name":"Get specific contest details","id":"d3aa500b-b610-4520-a695-075fcebc8fcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://code-elevate.onrender.com/api/contests/:contestId","description":"<p>This endpoint retrieves details of a specific contest identified by its unique contestId.</p>\n","urlObject":{"path":["contests",":contestId"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"contest ID","key":"contestId"}]}},"response":[{"id":"edc7a4c9-9fed-4ab7-9db9-c10dfc271ea9","name":"Successful","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://code-elevate.onrender.com/api/contests/:contestId","host":["https://code-elevate.onrender.com/api"],"path":["contests",":contestId"],"variable":[{"key":"contestId","value":"contest-1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"354"},{"key":"ETag","value":"W/\"162-Yxf8XmNShBu1jOgzQbIMVeKM0NY\""},{"key":"Date","value":"Sun, 31 Mar 2024 07:20:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"contest-1\",\n    \"title\": \"Contest 1\",\n    \"description\": \"Description of contest 1\",\n    \"status\": \"running\",\n    \"startTime\": \"2024-04-01T00:00:00.000Z\",\n    \"endTime\": \"2024-04-03T00:00:00.000Z\",\n    \"maxTeamSize\": 2,\n    \"duration\": \"2 days\",\n    \"organizers\": [\n        \"userseven\",\n        \"usereight\"\n    ],\n    \"penalty\": {\n        \"isOn\": true,\n        \"value\": 20\n    },\n    \"problems\": [\n        {\n            \"id\": \"overspeeding\",\n            \"title\": \"Overspeeding\",\n            \"difficulty\": \"Easy\",\n            \"tags\": [\n                \"if-else\",\n                \"conditional\"\n            ]\n        },\n        {\n            \"id\": \"sum_of_digits\",\n            \"title\": \"Sum of Digits\",\n            \"difficulty\": \"Easy\",\n            \"tags\": [\n                \"loops\",\n                \"math\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"d3aa500b-b610-4520-a695-075fcebc8fcb"},{"name":"Register team for contest","id":"5969c98f-3dc4-44aa-8a3c-e599f6135b70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":"x-auth-token provided","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Team Name\",\n    \"members\": [\"username2\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/contests/:contestId/register","description":"<p>This endpoint let users register to contests and create teams.</p>\n","urlObject":{"path":["contests",":contestId","register"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"contest id","key":"contestId"}]}},"response":[{"id":"d7c88077-31a6-4b80-a6db-e7e1a60c4acc","name":"Team Created","originalRequest":{"method":"POST","header":[{"key":"x-auth-token","value":"x-auth-token","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Team Name\",\n    \"members\": [\"username2\"]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://code-elevate.onrender.com/api/contests/:contestId/register","host":["https://code-elevate.onrender.com/api"],"path":["contests",":contestId","register"],"variable":[{"key":"contestId","value":"contest Id"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 01 Apr 2024 14:53:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86d968ce783f9c81-SIN"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"6e-whDuia0r678WMun7lHjXPKGXD3A\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"85944929-7c3e-418f"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Team registered successfully.\",\n    \"team\": {\n        \"id\": \"team-name\",\n        \"name\": \"Team Name\",\n        \"members\": [\n            \"username\",\n            \"username2\"\n        ]\n    }\n}"},{"id":"206a2764-521b-4210-a0af-ef876643c4e5","name":"Bad Request","originalRequest":{"method":"POST","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJ1c2Vyc2l4IiwibmFtZSI6IlVzZXIgU2l4IiwiZW1haWwiOiJ1c2Vyc2l4QGdtYWlsLmNvbSIsImlhdCI6MTcxMTk4Mjk5Mn0.s-x4r6DWQzo0lPeQrPC95I9rtBUs7ylgmyvfK9JAZLI","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Team Three\",\n    \"members\": [\"usersix\"]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://code-elevate.onrender.com/api/contests/:contestId/register","host":["https://code-elevate.onrender.com/api"],"path":["contests",":contestId","register"],"variable":[{"key":"contestId","value":"contest-1"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 01 Apr 2024 14:50:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86d96429c93c9c81-SIN"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"20-1NZP7iHCkFTxeDdTVDWlA2/WA4E\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"53628f91-5729-4e94"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Contest not found.\"\n}"}],"_postman_id":"5969c98f-3dc4-44aa-8a3c-e599f6135b70"},{"name":"Get leaderboard for contest","id":"ba2086da-1f6f-4072-9bfc-c49438c45e8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://code-elevate.onrender.com/api/contests/:contestId/leaderboard","description":"<p>This endpoint let users fetch leaderboard for a contest.</p>\n","urlObject":{"path":["contests",":contestId","leaderboard"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"Contest Id","key":"contestId"}]}},"response":[{"id":"f13805c6-38e6-48ec-9a9d-b7cee8a0d33d","name":"Successful","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://code-elevate.onrender.com/api/contests/:contestId/leaderboard","host":["https://code-elevate.onrender.com/api"],"path":["contests",":contestId","leaderboard"],"variable":[{"key":"contestId","value":"contest-1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 02 Apr 2024 06:28:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86dec2e44aee91c1-DEL"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"17e-klQNFclUg/K4NymV5G1dpMFscM8\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"96c7ddb2-d013-4015"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"team-three\",\n        \"name\": \"Team Three\",\n        \"score\": 345.01852256944443,\n        \"scores\": {\n            \"overspeeding\": 172.69421412037036,\n            \"sum_of_digits\": 172.32430844907407\n        },\n        \"rank\": 1\n    },\n    {\n        \"id\": \"team-two\",\n        \"name\": \"Team Two\",\n        \"score\": 298.57653009259263,\n        \"scores\": {\n            \"overspeeding\": 136.96358680555556,\n            \"sum_of_digits\": 161.61294328703704\n        },\n        \"rank\": 2\n    },\n    {\n        \"id\": \"team-three_1\",\n        \"name\": \"Team Three\",\n        \"score\": 0,\n        \"scores\": {},\n        \"rank\": 3\n    }\n]"}],"_postman_id":"ba2086da-1f6f-4072-9bfc-c49438c45e8c"}],"id":"35789fbc-4ea0-47e0-8d0b-e5478a9f1fd8","description":"<p>Routes starting with <code>/contests</code> are used to get information about contests.</p>\n","_postman_id":"35789fbc-4ea0-47e0-8d0b-e5478a9f1fd8"},{"name":"Problems","item":[{"name":"Get specific problem details","id":"d496b879-f8f3-45c7-ac7c-0c07abf3c876","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://code-elevate.onrender.com/api/problems/:problemId","description":"<p>This endpoint retrieve details of a specific problem identified by the problemId parameter.</p>\n","urlObject":{"path":["problems",":problemId"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"Problem ID","key":"problemId"}]}},"response":[{"id":"cc734052-5d10-44ce-9117-ad1a94ffb530","name":"Successful","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://code-elevate.onrender.com/api/problems/:problemId","host":["https://code-elevate.onrender.com/api"],"path":["problems",":problemId"],"variable":[{"key":"problemId","value":"overspeeding"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1275"},{"key":"ETag","value":"W/\"4fb-jclplUZdiAV3OV5ddg6FOpb1Kzs\""},{"key":"Date","value":"Sun, 31 Mar 2024 07:27:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"overspeeding\",\n    \"title\": \"Overspeeding\",\n    \"statement\": \"Alice is going for a drive. During her drive, she reached a maximum speed of S km/hr.\\n\\nAs per the rules of the government, the speed of the vehicle must not exceed 40 km/hr, otherwise the person will be fined.\\n\\nYou need to tell whether Alice will be fined or not.\",\n    \"input\": \"The only line of input will contain a single integer S - denoting the maximum speed Alice reached while driving.\",\n    \"output\": \"Print YES if Alice will be fined , otherwise print NO.\\n\\nYou may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical).\",\n    \"constraints\": \"1 ≤ S ≤ 50\",\n    \"samples\": [\n        {\n            \"input\": \"40\",\n            \"output\": \"NO\",\n            \"explanation\": \"Since Alice's speed does not exceed 40, she will not be fined.\"\n        },\n        {\n            \"input\": \"41\",\n            \"output\": \"YES\",\n            \"explanation\": \"Since Alice's speed exceeds 40, she will be fined.\"\n        }\n    ],\n    \"difficulty\": \"Easy\",\n    \"tags\": [\n        \"if-else\",\n        \"conditional\"\n    ],\n    \"score\": 100,\n    \"contest\": {\n        \"id\": \"contest-1\",\n        \"title\": \"Contest 1\",\n        \"description\": \"Description of contest 1\",\n        \"startTime\": \"2024-04-01T00:00:00.000Z\",\n        \"endTime\": \"2024-04-03T00:00:00.000Z\",\n        \"duration\": \"2 days\",\n        \"organizers\": [\n            \"userseven\",\n            \"usereight\"\n        ]\n    },\n    \"runtimes\": [\n        {\n            \"language\": \"dart\",\n            \"version\": \"2.19.6\"\n        },\n        {\n            \"language\": \"typescript\",\n            \"version\": \"1.32.3\"\n        },\n        {\n            \"language\": \"javascript\",\n            \"version\": \"1.32.3\"\n        },\n        {\n            \"language\": \"c\",\n            \"version\": \"10.2.0\"\n        },\n        {\n            \"language\": \"c++\",\n            \"version\": \"10.2.0\"\n        },\n        {\n            \"language\": \"go\",\n            \"version\": \"1.16.2\"\n        },\n        {\n            \"language\": \"java\",\n            \"version\": \"15.0.2\"\n        },\n        {\n            \"language\": \"javascript\",\n            \"version\": \"18.15.0\"\n        },\n        {\n            \"language\": \"perl\",\n            \"version\": \"5.36.0\"\n        },\n        {\n            \"language\": \"php\",\n            \"version\": \"8.2.3\"\n        },\n        {\n            \"language\": \"python\",\n            \"version\": \"3.10.0\"\n        },\n        {\n            \"language\": \"rscript\",\n            \"version\": \"4.1.1\"\n        },\n        {\n            \"language\": \"ruby\",\n            \"version\": \"3.0.1\"\n        },\n        {\n            \"language\": \"rust\",\n            \"version\": \"1.68.2\"\n        },\n        {\n            \"language\": \"sqlite3\",\n            \"version\": \"3.36.0\"\n        },\n        {\n            \"language\": \"swift\",\n            \"version\": \"5.3.3\"\n        },\n        {\n            \"language\": \"typescript\",\n            \"version\": \"5.0.3\"\n        }\n    ]\n}"},{"id":"e522d6c6-75b3-44e6-bfff-3a4dcc65b6c0","name":"Problem is not pubic yet","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://code-elevate.onrender.com/api/problems/:problemId","host":["https://code-elevate.onrender.com/api"],"path":["problems",":problemId"],"variable":[{"key":"problemId","value":"overspeeding"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-6HLoq+Tn+MWTr5YXwsVcy3W6aCY\""},{"key":"Date","value":"Sun, 31 Mar 2024 07:28:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Problem is not available yet.\"\n}"},{"id":"c206f301-d340-4b98-bacb-55837ed35a0b","name":"Problem not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://code-elevate.onrender.com/api/problems/:problemId","host":["https://code-elevate.onrender.com/api"],"path":["problems",":problemId"],"variable":[{"key":"problemId","value":"overspeeding_random"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-auth-token"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-1Nw6ZeenPdRertase7aLtsA0KeM\""},{"key":"Date","value":"Sun, 31 Mar 2024 07:28:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Problem not found.\"\n}"}],"_postman_id":"d496b879-f8f3-45c7-ac7c-0c07abf3c876"},{"name":"Run on sample inputs","id":"05d96efb-7f1d-490e-a2f7-8569d803e881","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"language\": \"cpp\",\n    \"code\": \"#include <iostream>\\nusing namespace std;\\n\\nint main() {\\n\\tint s;\\n\\tcin >> s;\\n\\tif(s > 40) {\\n\\t\\tcout << \\\"YES\\\";\\n\\t} else {\\n\\t\\tcout << \\\"NO\\\";\\n\\t}\\n\\treturn 0;\\n}\",\n    \"stdin\": [\n        \"40\",\n        \"41\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/problems/:problemId/run","description":"<p>This endpoint let user run their code on sample test cases.</p>\n","urlObject":{"path":["problems",":problemId","run"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"Problem Id","key":"problemId"}]}},"response":[{"id":"bf43fb07-6d4a-4f8c-a5ad-a0feea07d9f6","name":"Successful Run","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"language\": \"cpp\",\n    \"code\": \"#include <iostream>\\nusing namespace std;\\n\\nint main() {\\n\\tint s;\\n\\tcin >> s;\\n\\tif(s > 40) {\\n\\t\\tcout << \\\"YES\\\";\\n\\t} else {\\n\\t\\tcout << \\\"NO\\\";\\n\\t}\\n\\treturn 0;\\n}\",\n    \"stdin\": [\n        \"40\",\n        \"41\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/problems/overspeeding/run"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 02 Apr 2024 06:13:06 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86deabb7a99891c1-DEL"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"10b-xp4wLuOhSxG4WB8tt6o0Unb8VsU\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"8facf54d-78cb-422b"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"language\": \"c++\",\n    \"version\": \"10.2.0\",\n    \"run\": [\n        {\n            \"stdout\": \"NO\",\n            \"stderr\": \"\",\n            \"code\": 0,\n            \"signal\": null,\n            \"output\": \"NO\"\n        },\n        {\n            \"stdout\": \"YES\",\n            \"stderr\": \"\",\n            \"code\": 0,\n            \"signal\": null,\n            \"output\": \"YES\"\n        }\n    ],\n    \"compile\": {\n        \"stdout\": \"\",\n        \"stderr\": \"\",\n        \"code\": 0,\n        \"signal\": null,\n        \"output\": \"\"\n    },\n    \"status\": \"success\"\n}"}],"_postman_id":"05d96efb-7f1d-490e-a2f7-8569d803e881"},{"name":"Submit the solution","id":"f90876a0-6798-4ac5-9cc5-786c3722a1c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"language\": \"cpp\",\n    \"code\": \"#include <iostream>\\nusing namespace std;\\n\\nint main() {\\n\\tint s;\\n\\tcin >> s;\\n\\tif(s > 40) {\\n\\t\\tcout << \\\"YES\\\";\\n\\t} else {\\n\\t\\tcout << \\\"NO\\\";\\n\\t}\\n\\treturn 0;\\n}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/problems/:problemId/submit","description":"<p>This endpoint let user submit their code on for the problem. This will create a new submission.</p>\n","urlObject":{"path":["problems",":problemId","submit"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"Problem Id","key":"problemId"}]}},"response":[{"id":"1185b618-7a2c-43bb-863b-49cae42136bc","name":"Successful Submission","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"language\": \"cpp\",\n    \"code\": \"#include <iostream>\\nusing namespace std;\\n\\nint main() {\\n\\tint s;\\n\\tcin >> s;\\n\\tif(s > 40) {\\n\\t\\tcout << \\\"YES\\\";\\n\\t} else {\\n\\t\\tcout << \\\"NO\\\";\\n\\t}\\n\\treturn 0;\\n}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/problems/overspeeding/submit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 02 Apr 2024 06:15:31 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86deaf372b2991c1-DEL"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"1e6-Fnph6YWF+6WwrzQBB0rEOzDn+q4\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"2579f242-80de-4ea0"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Accepted\",\n    \"submission\": {\n        \"id\": \"contest-1-overspeeding-team-two-1712038526922\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"code\": \"#include <iostream>\\nusing namespace std;\\n\\nint main() {\\n\\tint s;\\n\\tcin >> s;\\n\\tif(s > 40) {\\n\\t\\tcout << \\\"YES\\\";\\n\\t} else {\\n\\t\\tcout << \\\"NO\\\";\\n\\t}\\n\\treturn 0;\\n}\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"AC\",\n        \"verdictMessage\": \"Accepted\",\n        \"time\": \"2024-04-02T06:15:26.922Z\",\n        \"score\": 136.96358680555556\n    }\n}"},{"id":"42a62dd3-a1bc-4fb7-bb21-073febf3dcfe","name":"Unsuccessful Submission","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"language\": \"cpp\",\n    \"code\": \"#include <iostream>\\nusing namespace std;\\n\\nint main {\\n\\tint s;\\n\\tcin >> s;\\n\\tif(s > 40) {\\n\\t\\tcout << \\\"YES\\\";\\n\\t} else {\\n\\t\\tcout << \\\"NO\\\";\\n\\t}\\n\\treturn 0;\\n}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://code-elevate.onrender.com/api/problems/overspeeding/submit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 02 Apr 2024 06:44:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86deda2eacf00e0c-BOM"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"1e5-9p2WxSPnS34AlprDwmGHZj6f5IE\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"0eb5ed8f-f6e1-4632"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"compile_error\",\n    \"message\": \"Compile Error\",\n    \"submission\": {\n        \"id\": \"contest-1-overspeeding-team-two-1712040287244\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"code\": \"#include <iostream>\\nusing namespace std;\\n\\nint main {\\n\\tint s;\\n\\tcin >> s;\\n\\tif(s > 40) {\\n\\t\\tcout << \\\"YES\\\";\\n\\t} else {\\n\\t\\tcout << \\\"NO\\\";\\n\\t}\\n\\treturn 0;\\n}\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"CE\",\n        \"verdictMessage\": \"Compile Error\",\n        \"time\": \"2024-04-02T06:44:47.244Z\",\n        \"score\": -20\n    }\n}"}],"_postman_id":"f90876a0-6798-4ac5-9cc5-786c3722a1c5"},{"name":"Get users submissions on problem","id":"dd8bc949-4013-4db2-b979-1754c040dfc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided","type":"text"}],"url":"https://code-elevate.onrender.com/api/problems/:problemId/submissions","description":"<p>This endpoint let user fetch all their submissions for a problem.</p>\n","urlObject":{"path":["problems",":problemId","submissions"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"Problem ID","key":"problemId"}]}},"response":[{"id":"5b8e46a2-88fe-4123-af16-46a06b82b306","name":"Successful","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-auth-token","value":"x-auth-token provided","type":"text"}],"url":"https://code-elevate.onrender.com/api/problems/overspeeding/submissions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 02 Apr 2024 06:18:40 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86deb3e54c5d91c1-DEL"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"30e-Bf2/XLJQorLeic8ehTZb2WPxcac\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"9b84ecea-d941-45ea"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"contest-1-overspeeding-team-two-1712038526922\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"AC\",\n        \"time\": \"2024-04-02T06:15:26.922Z\"\n    },\n    {\n        \"id\": \"contest-1-overspeeding-team-two-1711976622985\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"AC\",\n        \"time\": \"2024-04-01T13:03:42.985Z\"\n    },\n    {\n        \"id\": \"contest-1-overspeeding-team-two-1711976560064\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"CE\",\n        \"time\": \"2024-04-01T13:02:40.064Z\"\n    },\n    {\n        \"id\": \"contest-1-overspeeding-team-two-1711976532748\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"TLE\",\n        \"time\": \"2024-04-01T13:02:12.748Z\"\n    }\n]"}],"_postman_id":"dd8bc949-4013-4db2-b979-1754c040dfc2"},{"name":"Get all users submissions on problem","id":"070480ee-c763-4494-9123-d28ef5e581bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://code-elevate.onrender.com/api/problems/:problemId/submissions/all","description":"<p>This endpoint let user fetch all users submissions on a problem.</p>\n","urlObject":{"path":["problems",":problemId","submissions","all"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"Problem Id","key":"problemId"}]}},"response":[{"id":"a66c715e-744f-4ddc-94e9-620914421c3d","name":"Successful","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://code-elevate.onrender.com/api/problems/:problemId/submissions/all","host":["https://code-elevate.onrender.com/api"],"path":["problems",":problemId","submissions","all"],"variable":[{"key":"problemId","value":"overspeeding"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 02 Apr 2024 06:22:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86deb9099e8691c1-DEL"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"3d5-ix/BEXIZ41hPCVsP7l9BMRnaklY\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"169bc134-9d8e-40a2"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"contest-1-overspeeding-team-two-1712038526922\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"AC\",\n        \"time\": \"2024-04-02T06:15:26.922Z\"\n    },\n    {\n        \"id\": \"contest-1-overspeeding-team-three-1711976784398\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-three\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"AC\",\n        \"time\": \"2024-04-01T13:06:24.398Z\"\n    },\n    {\n        \"id\": \"contest-1-overspeeding-team-two-1711976622985\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"AC\",\n        \"time\": \"2024-04-01T13:03:42.985Z\"\n    },\n    {\n        \"id\": \"contest-1-overspeeding-team-two-1711976560064\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"CE\",\n        \"time\": \"2024-04-01T13:02:40.064Z\"\n    },\n    {\n        \"id\": \"contest-1-overspeeding-team-two-1711976532748\",\n        \"problem\": \"overspeeding\",\n        \"team\": \"team-two\",\n        \"runtime\": {\n            \"language\": \"cpp\",\n            \"version\": \"10.2.0\"\n        },\n        \"verdict\": \"TLE\",\n        \"time\": \"2024-04-01T13:02:12.748Z\"\n    }\n]"}],"_postman_id":"070480ee-c763-4494-9123-d28ef5e581bc"},{"name":"Get specific submission details","id":"f204cf99-9665-4dc0-8ab7-e77c0a7d0306","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://code-elevate.onrender.com/api/problems/:problemId/submissions/:submissionId","description":"<p>This endpoint let user fetch all details about a submission.</p>\n","urlObject":{"path":["problems",":problemId","submissions",":submissionId"],"host":["https://code-elevate.onrender.com/api"],"query":[],"variable":[{"type":"any","value":"Problem Id","key":"problemId"},{"type":"any","value":"Submission Id","key":"submissionId"}]}},"response":[{"id":"8196af21-cc11-4680-82b5-0ce2ca9b2cb7","name":"Successful","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://code-elevate.onrender.com/api/problems/:problemId/submissions/:submissionId","host":["https://code-elevate.onrender.com/api"],"path":["problems",":problemId","submissions",":submissionId"],"variable":[{"key":"problemId","value":"overspeeding"},{"key":"submissionId","value":"contest-1-overspeeding-team-two-1712038526922"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 02 Apr 2024 06:25:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"86debda19a6591c1-DEL"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"max-age=0"},{"key":"ETag","value":"W/\"1af-tA/qPGqtv8vZM0d7amVJB3RKajA\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"access-control-expose-headers","value":"x-auth-token"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"rndr-id","value":"18c405f9-811f-4497"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"contest-1-overspeeding-team-two-1712038526922\",\n    \"problem\": \"overspeeding\",\n    \"team\": \"team-two\",\n    \"code\": \"#include <iostream>\\nusing namespace std;\\n\\nint main() {\\n\\tint s;\\n\\tcin >> s;\\n\\tif(s > 40) {\\n\\t\\tcout << \\\"YES\\\";\\n\\t} else {\\n\\t\\tcout << \\\"NO\\\";\\n\\t}\\n\\treturn 0;\\n}\",\n    \"runtime\": {\n        \"language\": \"cpp\",\n        \"version\": \"10.2.0\"\n    },\n    \"verdict\": \"AC\",\n    \"verdictMessage\": \"Accepted\",\n    \"time\": \"2024-04-02T06:15:26.922Z\",\n    \"score\": 136.96358680555556\n}"}],"_postman_id":"f204cf99-9665-4dc0-8ab7-e77c0a7d0306"}],"id":"d47a10c2-2113-42cd-a10c-143fed3602ce","description":"<p>Routes starting with <code>/problems</code> are used to get information about problems.</p>\n","_postman_id":"d47a10c2-2113-42cd-a10c-143fed3602ce"}],"event":[{"listen":"prerequest","script":{"id":"692e9e78-893c-4987-a5a0-216c4ec74358","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"6296f916-be17-47ee-a66d-79f594bcf9d8","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"url","value":"https://code-elevate.onrender.com/api","type":"string"}]}