{"info":{"_postman_id":"69ead26c-14e9-4e9d-b972-951603da9b29","name":"DSC Portal APIS","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6749988","collectionId":"69ead26c-14e9-4e9d-b972-951603da9b29","publishedId":"SztD46p7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-05-28T10:31:14.000Z"},"item":[{"name":"Index controller","item":[{"name":"Api index","id":"13cbf3ed-5e78-40cf-8719-0ee5480b67db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.dsckiet.com/dev","description":"<p>Gives 200 response which states that api is running</p>\n","urlObject":{"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"13cbf3ed-5e78-40cf-8719-0ee5480b67db"},{"name":"Get birthdays","id":"80910e7b-3ced-432b-ba27-86290d38665e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.dsckiet.com/dev/birthdays","description":"<ul>\n<li>Internal api for birthday wisher to get all the users birthday</li>\n<li>Requires secret key to get all the birthdays</li>\n</ul>\n","urlObject":{"path":["birthdays"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"80910e7b-3ced-432b-ba27-86290d38665e"}],"id":"2e5a1964-d947-41c3-b6a3-c77a1342e39c","_postman_id":"2e5a1964-d947-41c3-b6a3-c77a1342e39c","description":""},{"name":"Users Controller","item":[{"name":"Get all users / user (w/ id)","id":"8d253cc4-2c76-4cab-84c4-9272621ae9cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.dsckiet.com/dev/users?uid=5ed5fec6f597eb1db5a3e0bc","description":"<ul>\n<li>/users -&gt; all users expect the lead</li>\n<li>/users?uid=123 -&gt; specific user data matching the id</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>Array of users(w/o uid), object of user (w/ uid)</td>\n</tr>\n<tr>\n<td>500</td>\n<td>server error message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users"],"host":["https://api.dsckiet.com/dev"],"query":[{"key":"uid","value":"5ed5fec6f597eb1db5a3e0bc"}],"variable":[]}},"response":[],"_postman_id":"8d253cc4-2c76-4cab-84c4-9272621ae9cb"},{"name":"Add a user","id":"4b46aa69-6ae9-4076-be7e-14e50745555e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","type":"text","value":"Rohan Mehta"},{"key":"email","type":"text","value":"rhnmht30@gmail.com"},{"description":"<p>core, member</p>\n","key":"role","type":"text","value":"core"},{"key":"designation","type":"text","value":"Tech Lead"}]},"url":"https://api.dsckiet.com/dev/users","description":"<ul>\n<li>Adds a user and sends them an email with default login creds</li>\n<li>Requires lead/core auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>created user</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b46aa69-6ae9-4076-be7e-14e50745555e"},{"name":"User Login","id":"c07bf5d9-a287-49cd-815a-cb7195740e19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"rhnmht30@gmail.com","type":"text"},{"key":"password","value":"NgU36mPt","type":"text"}]},"url":"https://api.dsckiet.com/dev/users/login","description":"<ul>\n<li>Login for lead, core and members</li>\n<li>Responds with the token for every other request</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>logged in user</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","login"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"c07bf5d9-a287-49cd-815a-cb7195740e19"},{"name":"Toggle Show on website","id":"2545151b-7c9a-45cf-8ec2-6e2d8241faab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c","type":"text"}],"url":"https://api.dsckiet.com/dev/users/approve/5ed5fec6f597eb1db5a3e0bc","description":"<ul>\n<li>Toggles the showOnWebsite for an added user</li>\n<li>Requires lead token only</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>toggled user</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","approve","5ed5fec6f597eb1db5a3e0bc"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"2545151b-7c9a-45cf-8ec2-6e2d8241faab"},{"name":"Toggle Account revoke","id":"69d6075e-3260-44a2-91e9-a6a94c22b743","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c","type":"text"}],"url":"https://api.dsckiet.com/dev/users/revoke/5ed7349fd913433938228b23","description":"<ul>\n<li>Toggles the account revoke for an user</li>\n<li>Requires lead token only</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>toggled user</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","revoke","5ed7349fd913433938228b23"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"69d6075e-3260-44a2-91e9-a6a94c22b743"},{"name":"Delete User","id":"614e7604-8519-4f49-b095-e1a6e5ad5c77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/users/5ed7349fd913433938228b23","description":"<ul>\n<li>Deletes the user from db</li>\n<li>Requires lead/core tokens</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","5ed7349fd913433938228b23"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"614e7604-8519-4f49-b095-e1a6e5ad5c77"},{"name":"User profile","id":"4837c2d0-a81e-448f-8301-08db92230732","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/users/profile?uid=5ed74d376624067a2d5f29fc","description":"<ul>\n<li>gets the user profile</li>\n<li>/profile -&gt; requires any token to get the profile of the user who requested this api.</li>\n<li>/profile?uid=123 -&gt; requires any token to get the profile of the user whose uid is provided</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>user object</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","profile"],"host":["https://api.dsckiet.com/dev"],"query":[{"key":"uid","value":"5ed74d376624067a2d5f29fc"}],"variable":[]}},"response":[],"_postman_id":"4837c2d0-a81e-448f-8301-08db92230732"},{"name":"Update user profile","id":"a99202cf-574a-4022-808f-1af855773809","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDc0ZDM3NjYyNDA2N2EyZDVmMjlmYyIsIm5hbWUiOiJSb2hhbiBNZWh0YSIsImVtYWlsIjoicmhubWh0MzBAZ21haWwuY29tIiwicm9sZSI6ImNvcmUiLCJpYXQiOjE1OTExNjgzMTF9.4fxHiDe-LNOWHszo8OqinWKmK1x7FZpep9Ne5U0NQHA"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Rohan Mehta","type":"text","description":"<p>this update will expire the session and user would need to login again on further requests</p>\n"},{"key":"email","value":"rhnmht30@gmail.com","type":"text","description":"<p>this update will expire the session and user would need to login again on further requests</p>\n"},{"key":"password","value":"password","type":"text"},{"key":"contact","value":"9140366322","type":"text"},{"key":"designation","value":"Tech Lead","type":"text"},{"key":"github","value":"https://github.com/rhnmht30","type":"text"},{"key":"linkedin","value":"https://linkedin.com/in/rhnmht30","type":"text"},{"key":"twitter","value":"https://twitter.com/rhnmht30","type":"text"},{"key":"portfolio","value":"https://rhnmht30.dev","type":"text"},{"key":"dob","value":"1997-12-30","type":"text"},{"key":"image","description":"<p>this is a file</p>\n","type":"file","value":null}]},"url":"https://api.dsckiet.com/dev/users/profile","description":"<ul>\n<li>updates the user profile </li>\n<li>Requires auth tokens(any)</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>update user</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","profile"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"a99202cf-574a-4022-808f-1af855773809"},{"name":"Forgot Password","id":"891a92ee-cdb7-4a17-acc6-91ab8c3ea786","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","type":"text","value":"email"}]},"url":"https://api.dsckiet.com/dev/users/forgot","description":"<ul>\n<li>sends an email with the frontend url that contains the reset token, which then needs to be sent to /reset</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","forgot"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"891a92ee-cdb7-4a17-acc6-91ab8c3ea786"},{"name":"Reset password","id":"4f2c88f2-d624-4882-a492-c9f58e73f78d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","type":"text","value":"reset_token"},{"key":"id","value":"user id","description":"<p>here we are using id instead of uid for specific reasons</p>\n","type":"text"},{"key":"pwd","value":"new password","type":"text"}]},"url":"https://api.dsckiet.com/dev/users/forgot","description":"<ul>\n<li>needs reset token, user id and new password</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","forgot"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f2c88f2-d624-4882-a492-c9f58e73f78d"}],"id":"d178b610-14b2-4664-bbbc-295846653193","_postman_id":"d178b610-14b2-4664-bbbc-295846653193","description":""},{"name":"Events Controller","item":[{"name":"Participants","item":[{"name":"Get participants","id":"25573c9a-a496-45ed-867e-e577b386d3a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c","type":"text"}],"url":"https://api.dsckiet.com/dev/events/participants?eid=eventid&query=any-search-query&branch=ece&year=2&sortBy[0]=branch&sortBy[1]=year","description":"<ul>\n<li>/events/participants </li>\n<li>option queries\n -eid, query, branch, year, sortBy</li>\n<li>reuiures core/lead auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>data :{totalParticipants, participants}</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","participants"],"host":["https://api.dsckiet.com/dev"],"query":[{"key":"eid","value":"eventid"},{"key":"query","value":"any-search-query"},{"key":"branch","value":"ece"},{"key":"year","value":"2"},{"description":{"content":"<p>Type array containing these : createdAt, branch, year, name</p>\n","type":"text/plain"},"key":"sortBy[0]","value":"branch"},{"description":{"content":"<p>Type array containing these : createdAt, branch, year, name</p>\n","type":"text/plain"},"key":"sortBy[1]","value":"year"}],"variable":[]}},"response":[],"_postman_id":"25573c9a-a496-45ed-867e-e577b386d3a6"},{"name":"Register participant","id":"a84aa725-3175-493a-a8cb-c7e7c14440ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Rohan Mehta","type":"text"},{"key":"email","value":"rhnmht30@gmail.com","type":"text"},{"key":"branch","value":"ECE","type":"text"},{"key":"year","value":"2","type":"text"},{"key":"phone","value":"9140366322","type":"text"}]},"url":"https://api.dsckiet.com/dev/events/participants","description":"<ul>\n<li>/events/participants </li>\n<li>option queries\n -eid, query, branch, year, sortBy</li>\n<li>reuiures core/lead auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>data :{totalParticipants, participants}</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","participants"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"a84aa725-3175-493a-a8cb-c7e7c14440ab"},{"name":"Update participant","id":"16fdd762-7aee-40da-87a3-2f93be7f75d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Rohan mehta","type":"text"},{"key":"email","value":"rhnmht30@gmail.com","type":"text"},{"key":"branch","value":"ECE","type":"text"},{"key":"year","value":"2","type":"text"},{"key":"phone","value":"9140363322","type":"text"},{"key":"password","value":"password","type":"text"},{"key":"image","description":"<p>this is a file</p>\n","type":"file","value":null}]},"url":"https://api.dsckiet.com/dev/events/participants","description":"<ul>\n<li>/events/participants </li>\n<li>option queries\n -eid, query, branch, year, sortBy</li>\n<li>reuiures core/lead auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>data :{totalParticipants, participants}</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","participants"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"16fdd762-7aee-40da-87a3-2f93be7f75d7"},{"name":"Delete participant","id":"e2b930ab-d647-480f-accb-323f80077650","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/events/participants/5ed7654f6624067a2d5f29fe","description":"<ul>\n<li>Deletes the event from db</li>\n<li>Requires lead token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","participants","5ed7654f6624067a2d5f29fe"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2b930ab-d647-480f-accb-323f80077650"},{"name":"Participants login","id":"0b0a72d3-6af8-44c9-a8a2-0c4615d97bcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"email","type":"text"},{"key":"password","value":"password","type":"text"}]},"url":"https://api.dsckiet.com/dev/events/participants/login","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>participant, token</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","participants","login"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b0a72d3-6af8-44c9-a8a2-0c4615d97bcb"},{"name":"Forgot Password","id":"ed830855-4ae7-46f9-80e1-ac87125ffd4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","type":"text","value":"email"}]},"url":"https://api.dsckiet.com/devevents/participants/forgot-pwd","description":"<ul>\n<li>sends an email with the frontend url that contains the reset token, which then needs to be sent to /reset</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["participants","forgot-pwd"],"host":["https://api.dsckiet.com/devevents"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed830855-4ae7-46f9-80e1-ac87125ffd4f"},{"name":"Reset password","id":"32aeb0ad-199e-4eb9-980c-21431a7ea5c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","type":"text","value":"reset_token"},{"description":"<p>here we are using id instead of pid for specific reasons</p>\n","key":"id","type":"text","value":"participant id"},{"key":"pwd","type":"text","value":"new password"}]},"url":"https://api.dsckiet.com/devevents/participants/reset-pwd","description":"<ul>\n<li>needs reset token, participant id and new password</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["participants","reset-pwd"],"host":["https://api.dsckiet.com/devevents"],"query":[],"variable":[]}},"response":[],"_postman_id":"32aeb0ad-199e-4eb9-980c-21431a7ea5c2"},{"name":"Toggle Account revoke","id":"9a32944c-55e0-4ea2-b836-a809e7a4868a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c","type":"text"}],"url":"https://api.dsckiet.com/devevents/participants/revoke/5ed7349fd913433938228b23","description":"<ul>\n<li>Toggles the account revoke for participant</li>\n<li>Requires lead token only</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>toggled participant</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["participants","revoke","5ed7349fd913433938228b23"],"host":["https://api.dsckiet.com/devevents"],"query":[],"variable":[]}},"response":[],"_postman_id":"9a32944c-55e0-4ea2-b836-a809e7a4868a"},{"name":"Participant profile","id":"cd7d828b-7e68-4f35-bb74-7c70e84b6c51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/events/participants/profile?pid=5ed74d376624067a2d5f29fc","description":"<ul>\n<li>gets the user profile</li>\n<li>/profile -&gt; requires any token to get the profile of the user who requested this api.</li>\n<li>/profile?uid=123 -&gt; requires any token to get the profile of the user whose uid is provided</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>user object</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","participants","profile"],"host":["https://api.dsckiet.com/dev"],"query":[{"key":"pid","value":"5ed74d376624067a2d5f29fc"}],"variable":[]}},"response":[],"_postman_id":"cd7d828b-7e68-4f35-bb74-7c70e84b6c51"}],"id":"85029512-fcbc-43c2-bc6e-48fc1eba13c3","_postman_id":"85029512-fcbc-43c2-bc6e-48fc1eba13c3","description":""},{"name":"Events","item":[{"name":"Get all events","id":"6181aa83-cdfe-42ac-acd3-4f0817857f5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.dsckiet.com/dev/events?eid=5ed764d66624067a2d5f29fd","description":"<ul>\n<li>/events -&gt; all events</li>\n<li>/events?eid=123 -&gt; specific event data matching the id</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>Array of events(w/o eid), object of event (w/ eid)</td>\n</tr>\n<tr>\n<td>500</td>\n<td>server error message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events"],"host":["https://api.dsckiet.com/dev"],"query":[{"key":"eid","value":"5ed764d66624067a2d5f29fd"}],"variable":[]}},"response":[],"_postman_id":"6181aa83-cdfe-42ac-acd3-4f0817857f5a"},{"name":"Add an event","id":"7fc1c47f-e5c1-41dd-9e89-632660603c3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Event title -2","type":"text"},{"key":"description","value":"Event desc","type":"text"},{"key":"startDate","value":"2020-06-02","type":"text"},{"key":"endDate","value":"2020-06-17","type":"text"},{"key":"time","value":"9 am to 1pm","type":"text"},{"key":"venue","value":"event place","type":"text"},{"key":"isRegistrationRequired","value":"true","type":"text"},{"key":"isRegistrationOpened","value":"true","type":"text"},{"key":"maxRegister","value":"20","type":"text"},{"key":"image","type":"file","value":null}]},"url":"https://api.dsckiet.com/dev/events","description":"<ul>\n<li>Adds an event</li>\n<li>Requires lead auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>created event</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"7fc1c47f-e5c1-41dd-9e89-632660603c3f"},{"name":"Update event","id":"1e71f6b2-5c7a-40f5-a85a-a53fd4dd6e18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDc0ZDM3NjYyNDA2N2EyZDVmMjlmYyIsIm5hbWUiOiJSb2hhbiBNZWh0YSIsImVtYWlsIjoicmhubWh0MzBAZ21haWwuY29tIiwicm9sZSI6ImNvcmUiLCJpYXQiOjE1OTExNjgzMTF9.4fxHiDe-LNOWHszo8OqinWKmK1x7FZpep9Ne5U0NQHA"}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Event title -updated","type":"text"},{"key":"description","value":"Event desc","type":"text"},{"key":"startDate","value":"2020-06-02","type":"text"},{"key":"endDate","value":"2020-06-17","type":"text"},{"key":"time","value":"9 am to 1pm","type":"text"},{"key":"venue","value":"event place","type":"text"},{"key":"isRegistrationRequired","value":"true","type":"text"},{"key":"isRegistrationOpened","value":"true","type":"text"},{"key":"maxRegister","value":"20","type":"text"},{"description":"<p>this is a file</p>\n","key":"image","type":"file","value":null}]},"url":"https://api.dsckiet.com/dev/events/5ed764d66624067a2d5f29fd","description":"<ul>\n<li>updates the event </li>\n<li>Requires lead/core tokens</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>updated event</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","5ed764d66624067a2d5f29fd"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e71f6b2-5c7a-40f5-a85a-a53fd4dd6e18"},{"name":"Delete Event","id":"10ee3a91-fa4e-405d-8af8-2a4c88e41645","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/events/5ed7654f6624067a2d5f29fe","description":"<ul>\n<li>Deletes the event from db</li>\n<li>Requires lead token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","5ed7654f6624067a2d5f29fe"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"10ee3a91-fa4e-405d-8af8-2a4c88e41645"},{"name":"Toggle event registration open","id":"9c56c596-02a9-44c2-8376-993ff31f1aac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"eid","type":"text","value":"eventid"}]},"url":"https://api.dsckiet.com/dev/events/toggle-reg/","description":"<ul>\n<li>Changes the event code</li>\n<li>Requires core/lead token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>event</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","toggle-reg",""],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c56c596-02a9-44c2-8376-993ff31f1aac"},{"name":"Change event code","id":"dfdb63e0-85c1-422a-9886-3bbcf7a5dc2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"eid","type":"text","value":"eventid"}]},"url":"https://api.dsckiet.com/dev/events/change-code/","description":"<ul>\n<li>Changes the event code</li>\n<li>Requires core/lead token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>event</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","change-code",""],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfdb63e0-85c1-422a-9886-3bbcf7a5dc2a"},{"name":"Register in event","id":"5c6e6cad-4734-4e97-91ed-4f98c2bfff8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"eid","value":"eventid","type":"text","disabled":true}]},"url":"https://api.dsckiet.com/dev/events/register","description":"<ul>\n<li>Requires participant auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>event</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","register"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c6e6cad-4734-4e97-91ed-4f98c2bfff8c"}],"id":"377d1530-5767-4346-9f91-6d4bfeb4d3b2","_postman_id":"377d1530-5767-4346-9f91-6d4bfeb4d3b2","description":""},{"name":"Feedback","item":[{"name":"Post feedback for event","id":"cbb6182a-2186-4c03-9162-864bb08df8be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>required</p>\n","key":"eid","type":"text","value":"eventid"},{"key":"feedback","value":"Array of values","description":"<p>to be decided</p>\n","type":"text"}]},"url":"https://api.dsckiet.com/dev/events/feedback","description":"<ul>\n<li>Requires participant auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>fb</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","feedback"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbb6182a-2186-4c03-9162-864bb08df8be"},{"name":"Get feedback report for event","id":"33c88099-143d-42d4-8ec1-87075d20e56f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/events/feedback/5ed7349fd913433938228b23","description":"<ul>\n<li>Requires core/lead auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>feedback</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","feedback","5ed7349fd913433938228b23"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"33c88099-143d-42d4-8ec1-87075d20e56f"}],"id":"de9135d5-2017-4383-a0b4-ebf210e8ed9e","_postman_id":"de9135d5-2017-4383-a0b4-ebf210e8ed9e","description":""},{"name":"Attendance","item":[{"name":"Attendance report","id":"374d6011-5767-4d9d-979f-14d8ddbc7773","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/events/attendance/report?eid=eventid&query=any search&branch=ece&year=2&presentOn=all&sortBy[0]=branch","description":"<ul>\n<li>gives the attendance report for an event</li>\n<li>Requires core/lead token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>filteredAttendance</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","attendance","report"],"host":["https://api.dsckiet.com/dev"],"query":[{"description":{"content":"<p>required</p>\n","type":"text/plain"},"key":"eid","value":"eventid"},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"query","value":"any search"},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"branch","value":"ece"},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"year","value":"2"},{"description":{"content":"<p>all,none -&gt; any and optioal</p>\n","type":"text/plain"},"key":"presentOn","value":"all"},{"description":{"content":"<p>['branch','year','name']: type array</p>\n","type":"text/plain"},"key":"sortBy[0]","value":"branch"}],"variable":[]}},"response":[],"_postman_id":"374d6011-5767-4d9d-979f-14d8ddbc7773"},{"name":"Attendance stats for an event","id":"b735d30c-9858-457e-9a20-b44ebf5bf22b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/events/attendance/stats?eid=eventid","description":"<ul>\n<li>gives attendance stats for an event</li>\n<li>Requires core/lead token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>data = {totalRegistrations,present0days,presentAlldays,dayWiseAttendance}</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","attendance","stats"],"host":["https://api.dsckiet.com/dev"],"query":[{"description":{"content":"<p>required</p>\n","type":"text/plain"},"key":"eid","value":"eventid"}],"variable":[]}},"response":[],"_postman_id":"b735d30c-9858-457e-9a20-b44ebf5bf22b"},{"name":"Attendance for a user for an event","id":"2f2d7b1e-58e9-46cc-8de2-a0bf4bb3e608","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/events/attendance/user?eid=eventid","description":"<ul>\n<li>gives attendance for a user for an event</li>\n<li>Requires participant auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>data = {event,attendance}</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","attendance","user"],"host":["https://api.dsckiet.com/dev"],"query":[{"description":{"content":"<p>required</p>\n","type":"text/plain"},"key":"eid","value":"eventid"}],"variable":[]}},"response":[],"_postman_id":"2f2d7b1e-58e9-46cc-8de2-a0bf4bb3e608"},{"name":"Mark attendance","id":"4419489a-8622-481a-aac7-db987174156c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"code","type":"text","value":"eventcode"}]},"url":"https://api.dsckiet.com/dev/events/attendance/mark","description":"<ul>\n<li>Requires participant auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","attendance","mark"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"4419489a-8622-481a-aac7-db987174156c"}],"id":"8577e045-b6dc-4a59-a6e2-b974a8ef4e29","_postman_id":"8577e045-b6dc-4a59-a6e2-b974a8ef4e29","description":""},{"name":"Certificate","item":[{"name":"Preview certificate","id":"6ad74858-f8f6-4b18-9e26-562a0adcf7d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Rohan Mehta","type":"text"},{"key":"x","value":"456","type":"text"},{"key":"y","value":"990","type":"text"},{"key":"size","value":"23","type":"text","description":"<p>font size</p>\n"},{"key":"red","value":"66","type":"text","description":"<p>0-255</p>\n"},{"key":"green","value":"344","type":"text","description":"<p>0-255</p>\n"},{"key":"blue","value":"88","type":"text","description":"<p>0-255</p>\n"},{"key":"pdffile","description":"<p>required</p>\n","type":"file","value":null},{"key":"fontfile","description":"<p>required</p>\n","type":"file","value":null}]},"url":"https://api.dsckiet.com/dev/events/certificate/preview","description":"<ul>\n<li>Requires core/lead auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>pdf binary</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","certificate","preview"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ad74858-f8f6-4b18-9e26-562a0adcf7d5"},{"name":"Add certificate for an event","id":"b7fb65bd-4a13-4e7c-b8e6-d10ce17faf48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"formdata","formdata":[{"key":"x","type":"text","value":"456"},{"key":"y","type":"text","value":"990"},{"description":"<p>font size</p>\n","key":"size","type":"text","value":"23"},{"description":"<p>0-255</p>\n","key":"red","type":"text","value":"66"},{"description":"<p>0-255</p>\n","key":"green","type":"text","value":"344"},{"description":"<p>0-255</p>\n","key":"blue","type":"text","value":"88"},{"description":"<p>required</p>\n","key":"pdffile","type":"file","value":null},{"description":"<p>required</p>\n","key":"fontfile","type":"file","value":null}]},"url":"https://api.dsckiet.com/dev/events/certificate/5ed74d376624067a2d5f29fc","description":"<ul>\n<li>Requires core/lead auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","certificate","5ed74d376624067a2d5f29fc"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7fb65bd-4a13-4e7c-b8e6-d10ce17faf48"},{"name":"Generate certificate","id":"014ed58f-435f-499b-9910-1fc1ca0837c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"url":"https://api.dsckiet.com/dev/events/certificate/5ed74d376624067a2d5f29fc","description":"<ul>\n<li>Requires participant auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>pdf binary</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","certificate","5ed74d376624067a2d5f29fc"],"host":["https://api.dsckiet.com/dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"014ed58f-435f-499b-9910-1fc1ca0837c6"}],"id":"ac8f81ce-93a4-4a1a-9d5f-3c58af5c9948","_postman_id":"ac8f81ce-93a4-4a1a-9d5f-3c58af5c9948","description":""},{"name":"Custom Emails","item":[{"name":"Send email for an event","id":"6a04f9b9-f3e3-48c7-b68b-b99e113435d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZDVmZWM2ZjU5N2ViMWRiNWEzZTBiYyIsIm5hbWUiOiJEc2MgTGVhZCIsImVtYWlsIjoibGVhZEBkc2NraWV0LmNvbSIsInJvbGUiOiJsZWFkIiwiaWF0IjoxNTkxMTY3MzY4fQ.kASC4soyAvlfbL8Xbpp2WNgY210peRqbRGahaVJVw8c"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"type","value":"event-reminder","type":"text","description":"<p>event-reminder, event-followup, event-thanks, other</p>\n"},{"key":"users[0][name]","value":"Rohan Mehta","type":"text","description":"<p>[{ name, email }]</p>\n"},{"key":"users[0][email]","value":"rhnmht30@gmail.com","type":"text"},{"key":"users[1][name]","value":"DSCKIET","type":"text"},{"key":"users[1][email]","value":"dsckiet@gmail.com","type":"text"},{"key":"subject","value":"TEST SUBSCRIPTION","type":"text","description":"<p>String </p>\n"},{"key":"content","value":"Hey {{NAME}}, <br> welcome","type":"text","description":"<p>html, supported placeholder: {{NAME}}, {{SUBSCRIBER_ID}}</p>\n"}]},"url":"http://localhost:5000/api/v1/events/email","description":"<ul>\n<li>Requires lead auth token</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response code</th>\n<th>Message</th>\n<th>Error</th>\n<th>Data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>false</td>\n<td>null</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Specific message</td>\n<td>true</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["events","email"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a04f9b9-f3e3-48c7-b68b-b99e113435d8"}],"id":"c9c655c1-1337-44a5-8fda-eeadf7a95734","_postman_id":"c9c655c1-1337-44a5-8fda-eeadf7a95734","description":""}],"id":"a9721778-dd38-4c5d-9bb6-74e9f4a631ed","description":"<ul>\n<li><p>GET / -&gt; get all events (open)</p>\n</li>\n<li><p>POST / -&gt; add an event (lead)</p>\n</li>\n<li><p>PUT /:eid -&gt; update event (core)</p>\n</li>\n<li><p>DELETE /:eid -&gt; delete event (lead)</p>\n</li>\n<li><p>POST /change-code -&gt; change event code (core)</p>\n</li>\n<li><p>POST /toggle-reg -&gt; toggle event reg open (lead)</p>\n</li>\n<li><p>POST /register -&gt; register in an event (participant)</p>\n</li>\n<li><p>GET /participants -&gt; get participants list for all/particular event (core auth)</p>\n</li>\n<li><p>POST /participants -&gt; register a participant on the portal (open)</p>\n</li>\n<li><p>PUT /participants -&gt; update profile data of participant (participant auth)</p>\n</li>\n<li><p>DELETE /participants/:pid -&gt; delete a participant (lead auth)</p>\n</li>\n<li><p>POST /participants/login -&gt; Login a participant (open)</p>\n</li>\n<li><p>POST /participants/forgot-pwd -&gt; get a reset link on mail (open)</p>\n</li>\n<li><p>POST /participants/reset-pwd -&gt; update with new password  (open)</p>\n</li>\n<li><p>PUT /participants/revoke/:pid -&gt; revoke the access to portal for a participant (lead)</p>\n</li>\n<li><p>GET /participants/profile -&gt; get a participant profile (all auth)</p>\n</li>\n<li><p>GET /attendance/report -&gt; get report for an event (core auth)</p>\n</li>\n<li><p>GET /attendance/stats -&gt; get simple stats for an event (core auth)</p>\n</li>\n<li><p>GET /attendance/user?eid -&gt; get a event attendance for a participant (participant auth)</p>\n</li>\n<li><p>POST /attendance/mark -&gt; mark user attendance with code (participant auth)</p>\n</li>\n<li><p>POST /feedback -&gt; submit a feedback for an event (participant auth)</p>\n</li>\n<li><p>GET /feedback/:eid -&gt; get all feedbacks for an event (core auth)</p>\n</li>\n<li><p>GET /certificate/:eid -&gt; get a certificate for an event (participant auth)</p>\n</li>\n<li><p>POST /certificate/preview -&gt; preview a certificate by uploading meta (core auth)</p>\n</li>\n<li><p>POST /certificate/:eid -&gt; post the certificate meta for an event (core auth)</p>\n</li>\n<li><p>POST /email -&gt; send emails for an event (lead auth)</p>\n</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"184ecf17-d882-454a-8313-7422c39f1bd9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"463e04c5-503c-40c7-975a-af2b5004f956","type":"text/javascript","exec":[""]}}],"_postman_id":"a9721778-dd38-4c5d-9bb6-74e9f4a631ed"}],"event":[{"listen":"prerequest","script":{"id":"69504fcc-9f85-4ca8-8495-376d37c656fa","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"60422d13-a8a6-4d94-a322-6dbbbb15a974","type":"text/javascript","exec":[""]}}],"variable":[{"key":"LOCAL","value":"http://localhost:5000/api/v1"},{"key":"dev_server","value":"https://api.dsckiet.com/dev"},{"key":"prod_server","value":"https://api.dsckiet.com/prod"}]}