{"info":{"_postman_id":"33c094cf-2806-4e7a-a2ee-7b0c332a61ce","name":"stackhack-backend","description":"<html><head></head><body><p>Backend Api for STACKHACK</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11454502","collectionId":"33c094cf-2806-4e7a-a2ee-7b0c332a61ce","publishedId":"SztHXQjd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-06-04T07:25:07.000Z"},"item":[{"name":"Register","id":"155d6d98-66d3-4a40-8191-21ec52af54f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://stackhack-backendserver.herokuapp.com/auth/register","description":"<p>This endpoint is used to register the admin</p>\n","urlObject":{"protocol":"https","path":["auth","register"],"host":["stackhack-backendserver","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"34f97fd1-5d3d-47fd-aac6-1878c025ae81","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test@test.com\",\n    \"password\": \"testadmin\"\n}","options":{"raw":{"language":"json"}}},"url":"https://stackhack-backendserver.herokuapp.com/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"Etag","value":"W/\"41-tgJ5OVEp8L9S0ek0tmG3FysvL7A\""},{"key":"Date","value":"Thu, 04 Jun 2020 07:18:45 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin created!\",\n    \"AdminId\": \"5ed8a055e0f0ee0004ba9a40\"\n}"}],"_postman_id":"155d6d98-66d3-4a40-8191-21ec52af54f3"},{"name":"Login","id":"80dab156-44f7-44f3-99d2-0a6f3735da8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://stackhack-backendserver.herokuapp.com/auth/login","description":"<p>This endpoint is used to authenticate the admin</p>\n","urlObject":{"protocol":"https","path":["auth","login"],"host":["stackhack-backendserver","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"7a61a7a2-b868-4a9d-911e-0cffc7747132","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test@test.com\",\n    \"password\": \"testadmin\"\n}","options":{"raw":{"language":"json"}}},"url":"https://stackhack-backendserver.herokuapp.com/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"258"},{"key":"Etag","value":"W/\"102-xJT3IOlHjEW0XVYf9skC3+uhmdY\""},{"key":"Date","value":"Thu, 04 Jun 2020 07:19:18 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJBZG1pbklkIjoiNWVkOGEwNTVlMGYwZWUwMDA0YmE5YTQwIiwiaWF0IjoxNTkxMjU1MTU4LCJleHAiOjE1OTEyNTg3NTh9.UOT_fUuYKetQ4u9TDDJPrK8omK9aZD6ed7shAyAHva8\",\n    \"AdminId\": \"5ed8a055e0f0ee0004ba9a40\"\n}"}],"_postman_id":"80dab156-44f7-44f3-99d2-0a6f3735da8f"},{"name":"Post Registration Details of the User","id":"77ed4622-81dc-4ac0-88ee-ee381351aeac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://stackhack-backendserver.herokuapp.com/reg/registration","description":"<p>this endpoint is to post all the registration data of the user to server and store in the database </p>\n","urlObject":{"protocol":"https","path":["reg","registration"],"host":["stackhack-backendserver","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"cd541225-8e1c-4747-a0c3-f71767baea94","name":"Post Registration Details of the User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\r\n \"IdCardUrl\": \"test\",\r\n    \"Fullname\": \"test\",\r\n    \"EmailId\": \"test2011@gmail.com\",\r\n    \"MobileNumber\": \"1234512345\",\r\n    \"RegistrationType\": \"self\",\r\n    \"TicketNumber\": \"1\"\r\n }","options":{"raw":{"language":"json"}}},"url":"https://stackhack-backendserver.herokuapp.com/reg/registration"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"305"},{"key":"Etag","value":"W/\"131-A9cNjeLEv7vn6eISuxgz1uzeIe8\""},{"key":"Date","value":"Thu, 04 Jun 2020 07:21:28 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registered successfully!\",\n    \"result\": {\n        \"_id\": \"5ed8a0f7e0f0ee0004ba9a41\",\n        \"IdCardUrl\": \"test\",\n        \"Fullname\": \"test\",\n        \"EmailId\": \"test2011@gmail.com\",\n        \"MobileNumber\": 1234512345,\n        \"RegistrationType\": \"self\",\n        \"TicketNumber\": 1,\n        \"createdAt\": \"2020-06-04T07:21:27.822Z\",\n        \"updatedAt\": \"2020-06-04T07:21:27.822Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"77ed4622-81dc-4ac0-88ee-ee381351aeac"},{"name":"Fetch All Registration Details","id":"bde12f20-729f-4a78-8bbd-511655c76a44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://stackhack-backendserver.herokuapp.com/reg/registration","description":"<p>when authenticated this endpoint retrives all registration details from the server</p>\n","urlObject":{"protocol":"https","path":["reg","registration"],"host":["stackhack-backendserver","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"04ff17af-6c7e-48b5-8bfe-88a7929b8386","name":"Fetch All Registration Details","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://stackhack-backendserver.herokuapp.com/reg/registration"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2684"},{"key":"Etag","value":"W/\"a7c-KnlnJasLSPYn/HYlOeDZ3pm5RGM\""},{"key":"Date","value":"Thu, 04 Jun 2020 07:22:01 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Fetched Registration Details Successfully.\",\n    \"Registrations\": [\n        {\n            \"_id\": \"5eccbc03781c7139f8eb644c\",\n            \"IdCardUrl\": \"test\",\n            \"Fullname\": \"test\",\n            \"EmailId\": \"akashdeepbhattacharya2011@gmail.com\",\n            \"MobileNumber\": 8961249128,\n            \"RegistrationType\": \"test\",\n            \"TicketNumber\": 1234,\n            \"createdAt\": \"2020-05-26T06:49:39.596Z\",\n            \"updatedAt\": \"2020-05-26T06:49:39.596Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5eccbd08df376a2928a416fe\",\n            \"IdCardUrl\": \"test\",\n            \"Fullname\": \"test\",\n            \"EmailId\": \"akashdeepbhattachary2011@gmail.com\",\n            \"MobileNumber\": 8961249128,\n            \"RegistrationType\": \"test\",\n            \"TicketNumber\": 1234,\n            \"createdAt\": \"2020-05-26T06:54:00.581Z\",\n            \"updatedAt\": \"2020-05-26T06:54:00.581Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5ecfb0776bbe5aabaab07aa6\",\n            \"IdCardUrl\": \"test\",\n            \"Fullname\": \"test\",\n            \"EmailId\": \"test@test.com\",\n            \"MobileNumber\": 8961249128,\n            \"RegistrationType\": \"test\",\n            \"TicketNumber\": 1234,\n            \"createdAt\": \"2020-05-28T12:37:11.780Z\",\n            \"updatedAt\": \"2020-05-28T12:37:11.780Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5ed1f3b6880a312a6c4acdd8\",\n            \"IdCardUrl\": \"C:\\\\fakepath\\\\Aazaadv3.png\",\n            \"Fullname\": \"Aritra\",\n            \"EmailId\": \"whoisaritra@gmail.com\",\n            \"MobileNumber\": 1234567891,\n            \"RegistrationType\": \"coorporate\",\n            \"TicketNumber\": 123545,\n            \"createdAt\": \"2020-05-30T05:48:38.758Z\",\n            \"updatedAt\": \"2020-05-30T05:48:38.758Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5ed24f476e65e36f335dfd67\",\n            \"IdCardUrl\": \"https://firebasestorage.googleapis.com/v0/b/generated-arena-265309.appspot.com/o/images%2F1234567895.png?alt=media&token=93a380a6-19e5-4b2d-a5b6-45ae36b7ca17\",\n            \"Fullname\": \"Joladhon\",\n            \"EmailId\": \"joladhon@gmail.com\",\n            \"MobileNumber\": 1234567895,\n            \"RegistrationType\": \"coorporate\",\n            \"TicketNumber\": 213123,\n            \"createdAt\": \"2020-05-30T12:19:19.612Z\",\n            \"updatedAt\": \"2020-05-30T12:19:19.612Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5ed49328ab64786fe9393f3c\",\n            \"IdCardUrl\": \"test\",\n            \"Fullname\": \"test\",\n            \"EmailId\": \"akashdeepchary2011@gmail.com\",\n            \"MobileNumber\": 8961249128,\n            \"RegistrationType\": \"test\",\n            \"TicketNumber\": 1234,\n            \"createdAt\": \"2020-06-01T05:33:28.395Z\",\n            \"updatedAt\": \"2020-06-01T05:33:28.395Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5ed889ad1d78311078562733\",\n            \"IdCardUrl\": \"test\",\n            \"Fullname\": \"test\",\n            \"EmailId\": \"akaspchary2011@gmail.com\",\n            \"MobileNumber\": 8961249128,\n            \"RegistrationType\": \"test\",\n            \"TicketNumber\": 1234,\n            \"createdAt\": \"2020-06-04T05:42:05.542Z\",\n            \"updatedAt\": \"2020-06-04T05:42:05.542Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5ed8984fe0f0ee0004ba9a3f\",\n            \"IdCardUrl\": \"test\",\n            \"Fullname\": \"test\",\n            \"EmailId\": \"akaschary2011@gmail.com\",\n            \"MobileNumber\": 8961249128,\n            \"RegistrationType\": \"test\",\n            \"TicketNumber\": 1234,\n            \"createdAt\": \"2020-06-04T06:44:31.485Z\",\n            \"updatedAt\": \"2020-06-04T06:44:31.485Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5ed8a0f7e0f0ee0004ba9a41\",\n            \"IdCardUrl\": \"test\",\n            \"Fullname\": \"test\",\n            \"EmailId\": \"test2011@gmail.com\",\n            \"MobileNumber\": 1234512345,\n            \"RegistrationType\": \"self\",\n            \"TicketNumber\": 1,\n            \"createdAt\": \"2020-06-04T07:21:27.822Z\",\n            \"updatedAt\": \"2020-06-04T07:21:27.822Z\",\n            \"__v\": 0\n        }\n    ],\n    \"totalItems\": 9\n}"}],"_postman_id":"bde12f20-729f-4a78-8bbd-511655c76a44"},{"name":"Fetch Registration Details of single User","id":"24398763-e0c8-461d-97b4-e57dcc19f8d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://stackhack-backendserver.herokuapp.com/reg/registration/:regId","description":"<p>when authenticated this endpont retrives all the details about the user who registration is passed as parameter</p>\n","urlObject":{"protocol":"https","path":["reg","registration",":regId"],"host":["stackhack-backendserver","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"regId"}]}},"response":[{"id":"21810155-8fd5-4aed-be61-0c702085f999","name":"Fetch Registration Details of single User","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://stackhack-backendserver.herokuapp.com/reg/registration/:regId","protocol":"https","host":["stackhack-backendserver","herokuapp","com"],"path":["reg","registration",":regId"],"variable":[{"key":"regId","value":"5eccbc03781c7139f8eb644c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"335"},{"key":"Etag","value":"W/\"14f-Uw+ESXQ9y7AuaFOS8b1IUlHhyKM\""},{"key":"Date","value":"Thu, 04 Jun 2020 07:23:18 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration Details fetched\",\n    \"registration\": {\n        \"_id\": \"5eccbc03781c7139f8eb644c\",\n        \"IdCardUrl\": \"test\",\n        \"Fullname\": \"test\",\n        \"EmailId\": \"akashdeepbhattacharya2011@gmail.com\",\n        \"MobileNumber\": 8961249128,\n        \"RegistrationType\": \"test\",\n        \"TicketNumber\": 1234,\n        \"createdAt\": \"2020-05-26T06:49:39.596Z\",\n        \"updatedAt\": \"2020-05-26T06:49:39.596Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"24398763-e0c8-461d-97b4-e57dcc19f8d6"},{"name":"Fetch Count","id":"336771c3-2a59-4ff5-bc13-6b650d0d91dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://stackhack-backendserver.herokuapp.com/reg/count/:counttype","description":"<p>when authenticated this endpont retrives the number of users registered for the event of that type which is passed as parameter</p>\n","urlObject":{"protocol":"https","path":["reg","count",":counttype"],"host":["stackhack-backendserver","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"counttype"}]}},"response":[{"id":"29868a11-792a-4901-8fb3-2fc747af4d8a","name":"Fetch Count","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://stackhack-backendserver.herokuapp.com/reg/count/:counttype","protocol":"https","host":["stackhack-backendserver","herokuapp","com"],"path":["reg","count",":counttype"],"variable":[{"key":"counttype","value":"self"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"Etag","value":"W/\"2a-RWiDMTgZZe/1aBAAgPgDjzJ+aZg\""},{"key":"Date","value":"Thu, 04 Jun 2020 07:23:45 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"\"Number of documents in the collection: 1\""}],"_postman_id":"336771c3-2a59-4ff5-bc13-6b650d0d91dd"}]}