{"info":{"_postman_id":"7e84e163-48bb-4ef7-bd13-8dd5352d36d1","name":"Contestish API","description":"<html><head></head><body><p>All endpoints associated with the Contestify project.</p>\n<h4 id=\"pagination\">Pagination</h4>\n<p>All <code>GET</code> endpoints in this collection implements the following query parameters for pagination.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Query Params</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>itemsPage</code></td>\n<td><code>number</code></td>\n<td>This is the current page. If this parameter is omitted, the request will not be paginated regardless of any other parameter that is set</td>\n</tr>\n<tr>\n<td><code>itemsPerPage</code></td>\n<td><code>number</code></td>\n<td>(optional) Max no. of items to return in a single page/request. Defaults to 10.</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3749709","collectionId":"7e84e163-48bb-4ef7-bd13-8dd5352d36d1","publishedId":"SztD6oGk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"1177B1"},"publishDate":"2020-05-29T21:18:10.000Z"},"item":[{"name":"Authentication","item":[{"name":"Social Auth","event":[{"listen":"test","script":{"id":"fd938aff-f26a-4a8e-b8f9-b2f22746e250","exec":["var data = pm.response.json().data;","","if (data) {","    pm.environment.set(\"TOKEN\", data.token);","    pm.environment.set(\"REFRESH_TOKEN\", data.refreshToken);","}"],"type":"text/javascript"}}],"id":"91931209-9d93-4650-9a8d-379c47d067d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"ghost@gmail.com\",\n\t\"name\": \"The Ghost\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/social","description":"<p>Authenticate a new/existing user via Facebook or Google.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>email</code></td>\n<td><code>string</code></td>\n<td>valid email of the existing/new user</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","auth","social"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"433f23f4-0f6d-4154-a811-eb676b748f55","name":"Social Auth - Invalid Param Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"ghost@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/social"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 18 Jun 2020 20:32:16 GMT"},{"key":"X-Ratelimit-Reset","value":"1592513061"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"94"},{"key":"Etag","value":"W/\"5e-0eptnLRrNcR2rlHkUscrgci0cAw\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"INVALID_PARAM\",\n    \"message\": \"Name is required\",\n    \"data\": null,\n    \"meta\": null\n}"},{"id":"75a3f9bf-7fc3-4b67-bef3-7f3f73a3bcd6","name":"Social Auth","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"ghost@gmail.com\",\n\t\"name\": \"The Ghost\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/social"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 18 Jun 2020 20:33:05 GMT"},{"key":"X-Ratelimit-Reset","value":"1592513061"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"792"},{"key":"Etag","value":"W/\"318-KIQooK/+woXXny02wXcCrij/6K0\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"subscriptionStatus\": \"free\",\n        \"renewalStatus\": \"none\",\n        \"subscriptionExpires\": null,\n        \"_id\": \"5eebcf8110f9070004e07f97\",\n        \"name\": \"The Ghost\",\n        \"mobile\": null,\n        \"password\": null,\n        \"avatar\": null,\n        \"gender\": \"unspecified\",\n        \"location\": null,\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZWViY2Y4MTEwZjkwNzAwMDRlMDdmOTciLCJyb2xlIjoiTWVtYmVyIiwiaWF0IjoxNTkyNTEyMzg1LCJleHAiOjE1OTI1OTg3ODV9.TS24xgYSLmBzEsh-iBOhCFW7qiKUbpMe88S2Ip23_Ns\",\n        \"refreshToken\": \"bP3yQ7MRzwtZFpiF8SKMooxPTnw9Ey5i\",\n        \"requestedEmailVerification\": false,\n        \"requestedPhoneVerification\": false,\n        \"emailVerified\": false,\n        \"phoneVerified\": false,\n        \"status\": \"pending\",\n        \"role\": \"Member\",\n        \"email\": \"ghost@gmail.com\",\n        \"createdAt\": \"2020-06-18T20:33:05.196Z\",\n        \"updatedAt\": \"2020-06-18T20:33:05.196Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"91931209-9d93-4650-9a8d-379c47d067d5"},{"name":"Refresh Access Token","event":[{"listen":"test","script":{"id":"ec3332d0-ecba-4ccf-b3b9-957797f7745b","exec":["var data = pm.response.json().data;","","if (data) {","    pm.environment.set(\"TOKEN\", data.accessToken);","    pm.environment.set(\"REFRESH_TOKEN\", data.refreshToken);","}"],"type":"text/javascript"}}],"id":"ad08487e-86b8-4ca9-93a8-ecf5c4a5aab4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"accessToken\": \"{{TOKEN}}\",\n\t\"refreshToken\": \"{{REFRESH_TOKEN}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/refresh-access-token","description":"<p>Requests a new access token for an expired access token.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>refreshToken</code></td>\n<td><code>string</code></td>\n<td>refresh token of the user requesting an access token</td>\n</tr>\n<tr>\n<td><code>accessToken</code></td>\n<td><code>string</code></td>\n<td>expired or old access token of the user</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","auth","refresh-access-token"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"2bb09dae-c587-4a10-adf0-b411deb83de3","name":"Refresh Access Token - Error on Invalidated Refresh Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"accessToken\": \"{{TOKEN}}\",\n\t\"refreshToken\": \"{{REFRESH_TOKEN}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/refresh-access-token"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Wed, 08 Apr 2020 20:13:47 GMT"},{"key":"X-RateLimit-Reset","value":"1586377715"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"134"},{"key":"ETag","value":"W/\"86-J7VaUF7bkzkyEyV2ZMwTreKj+FE\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"FORBIDDEN\",\n    \"message\": \"You don't have sufficient permission to access that resource\",\n    \"data\": null,\n    \"meta\": null\n}"},{"id":"ccc37777-1288-4906-9b91-6bebbad5562f","name":"Refresh Access Token - Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"accessToken\": \"{{TOKEN}}\",\n\t\"refreshToken\": \"{{REFRESH_TOKEN}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/refresh-access-token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Wed, 08 Apr 2020 20:02:19 GMT"},{"key":"X-RateLimit-Reset","value":"1586376218"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"358"},{"key":"ETag","value":"W/\"166-jereLXIdn1xu1tM/uT5BD1sYOfs\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"Access token has been refreshed!\",\n    \"data\": {\n        \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZTMwMGE1OTUxNTY5OTExMmY2MzZiMjIiLCJyb2xlIjoiUGF0aWVudCIsImlhdCI6MTU4NjM3NjEzOSwiZXhwIjoyNDUwMjg5NzM5fQ.DP-OoGhsDwELWI7N_dpeAANLjxPWv-_66gfMmM4wPXA\",\n        \"refreshToken\": \"KjAJ7V9US8ezDc6Eq7Txvd9OYxjtAgTG\"\n    },\n    \"meta\": null\n}"},{"id":"e5d8fc15-b3ce-4ef3-9979-093b54ba621e","name":"Refresh Access Token - Invalid Param Errors","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"accessToken\": \"{{TOKEN}}\",\n\t\"refreshToken\": \"{{REFRESH_TOKEN}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/refresh-access-token"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Wed, 08 Apr 2020 19:57:03 GMT"},{"key":"X-RateLimit-Reset","value":"1586376218"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"185"},{"key":"ETag","value":"W/\"b9-YFToXUYQBPa+NzdteTcpqDAv6vo\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"INVALID_PARAM\",\n    \"message\": \"Invalid parameter(s)\",\n    \"data\": [\n        \"accessToken is not allowed to be empty\",\n        \"refreshToken length must be 32 characters long\"\n    ],\n    \"meta\": null\n}"}],"_postman_id":"ad08487e-86b8-4ca9-93a8-ecf5c4a5aab4"},{"name":"Invalidate a Refresh Token","event":[{"listen":"test","script":{"id":"0d1b525d-31b0-419d-8bd9-85601329fd99","exec":[""],"type":"text/javascript"}}],"id":"a70e4f43-8543-4ce8-8614-53fa2a7415a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"refreshToken\": \"{{REFRESH_TOKEN}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/invalidate-refresh-token","description":"<p>Marks a refresh token as invalid in the case of security breach. Server logs all attempted activities on an invalidated refresh token.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>refreshToken</code></td>\n<td><code>string</code></td>\n<td>refresh token to be invalidated</td>\n</tr>\n<tr>\n<td><code>user</code></td>\n<td><code>string</code></td>\n<td>id of the user to invalidate refresh token for</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"nb-only-one-of-the-above-properties-can-be-sent-at-once\">N/B: Only one of the above properties can be sent at once.</h5>\n","urlObject":{"path":["users","auth","invalidate-refresh-token"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"a8986d16-cd78-4a1a-adc6-c8aa593d6bc3","name":"Invalidate a Refresh Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"refreshToken\": \"{{REFRESH_TOKEN}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/invalidate-refresh-token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Wed, 08 Apr 2020 20:10:46 GMT"},{"key":"X-RateLimit-Reset","value":"1586377118"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"102"},{"key":"ETag","value":"W/\"66-XXQLOAU/4MGQ5Zi3vz1SI00vZU0\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"Refresh token has been invalidated!\",\n    \"data\": null,\n    \"meta\": null\n}"}],"_postman_id":"a70e4f43-8543-4ce8-8614-53fa2a7415a1"},{"name":"Request Authentication","id":"29d1db3c-8870-47e8-968d-0a16a49d1ca0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"mobile\": {\n\t\t\"code\": \"234\",\n\t\t\"phone\": \"9068169777\"\n\t}\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/request-verification?type=phone&resend=true","description":"<p>Requests authentication via email or phone number for a user.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>mobile</code></td>\n<td><code>RequestAuthMobileOptions</code></td>\n<td><code>id</code> of the doctor to be added as favorite</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"query-params\">Query Params</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td><code>string</code></td>\n<td>can be any one of <code>phone</code> or <code>email</code></td>\n</tr>\n<tr>\n<td><code>resend</code></td>\n<td><code>boolean</code></td>\n<td>(optional) <code>true</code> - forces a resend of the verification message</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"interfaces\">Interfaces</h4>\n<p><strong>RequestAuthMobileOptions</strong></p>\n<ul>\n<li><code>code</code>: string (i.e. Country Code)</li>\n<li><code>phone</code>: string (i.e. the remaining part of the phone number)</li>\n</ul>\n","urlObject":{"path":["users","auth","request-verification"],"host":["{{BASE_URL}}"],"query":[{"description":{"content":"<p>\"phone\" | \"email\" - Specifies the type of verification to be carried out</p>\n","type":"text/plain"},"key":"type","value":"phone"},{"description":{"content":"<p>(optional) Forces a resend of the verification code. Used only with verification type as \"email\"</p>\n","type":"text/plain"},"key":"resend","value":"true"}],"variable":[]}},"response":[{"id":"855f9565-6e99-4433-a418-3f2814274640","name":"Request Authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"mobile\": {\n\t\t\"code\": \"234\",\n\t\t\"phone\": \"9068169777\"\n\t}\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/users/auth/request-verification?type=phone","host":["{{BASE_URL}}"],"path":["users","auth","request-verification"],"query":[{"key":"type","value":"phone","description":"\"phone\" | \"email\" - Specifies the type of verification to be carried out"},{"key":"resend","value":"1","description":"(optional) Forces a resend of the verification code. Used only with verification type as \"email\"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Tue, 10 Dec 2019 17:58:47 GMT"},{"key":"X-RateLimit-Reset","value":"1576001609"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"237"},{"key":"ETag","value":"W/\"ed-xXy4rlIKtgQS0Vxs5KvWZCFGwyI\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"carrier\": \"MTN\",\n        \"is_cellphone\": true,\n        \"message\": \"Text message sent to +234 906-816-9777.\",\n        \"seconds_to_expire\": 599,\n        \"uuid\": \"a4797200-fda4-0137-2bbc-0a259c954b0d\",\n        \"success\": true\n    },\n    \"meta\": null\n}"}],"_postman_id":"29d1db3c-8870-47e8-968d-0a16a49d1ca0"},{"name":"Verify User Authentication","id":"119e5dbd-c9a6-44a3-8df3-fbfd080e1049","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"790390\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/verify?type=email","description":"<p>Verifies a user's authentication made via email or phone number.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>token</code></td>\n<td><code>string</code></td>\n<td>one-time token received via email or SMS</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"query-params\">Query Params</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td><code>string</code></td>\n<td>can be any one of <code>phone</code> or <code>email</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","auth","verify"],"host":["{{BASE_URL}}"],"query":[{"description":{"content":"<p>\"phone\" | \"email\" - Specifies the type of verification to be carried out</p>\n","type":"text/plain"},"key":"type","value":"email"}],"variable":[]}},"response":[{"id":"3577f8ec-e1ec-4c7c-9cb4-746614d7e1ee","name":"Verify User Phone","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"092788\",\n    \"mobile\": {\n        \"code\": \"234\",\n        \"phone\": \"09068169777\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/users/auth/verify?type=phone","host":["{{BASE_URL}}"],"path":["users","auth","verify"],"query":[{"key":"type","value":"phone","description":"\"phone\" | \"email\" - Specifies the type of verification to be carried out"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Tue, 10 Dec 2019 17:58:59 GMT"},{"key":"X-RateLimit-Reset","value":"1576001609"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"434"},{"key":"ETag","value":"W/\"1b2-XYTnZ9o8Qw56uX2YePwUCEK1EPw\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"mobile\": \"+2349068169777\",\n        \"fullName\": null,\n        \"email\": null,\n        \"avatar\": null,\n        \"requestedEmailVerification\": false,\n        \"emailVerified\": false,\n        \"phoneVerified\": true,\n        \"password\": null,\n        \"status\": \"enabled\",\n        \"gender\": \"unspecified\",\n        \"facebookProvider\": null,\n        \"googleProvider\": null,\n        \"_id\": \"5defdce5301a55926d10cd2b\",\n        \"createdAt\": \"2019-12-10T17:59:01.068Z\",\n        \"updatedAt\": \"2019-12-10T17:59:01.068Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"},{"id":"5ae2ca0a-b58f-4c48-8040-e10e1ab1c645","name":"Verify User Email","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"120458\",\n    \"email\": \"msmahrt@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/users/auth/verify?type=email","host":["{{BASE_URL}}"],"path":["users","auth","verify"],"query":[{"key":"type","value":"email","description":"\"phone\" | \"email\" - Specifies the type of verification to be carried out"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 17 Jan 2020 11:55:27 GMT"},{"key":"X-RateLimit-Reset","value":"1579262893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"751"},{"key":"ETag","value":"W/\"2ef-oWjpFOLYiUsrjIMaqXpN9vILpK4\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"doctors\": [],\n        \"country\": null,\n        \"location\": null,\n        \"avatar\": null,\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZTIxYTA3ODFmOWY1MjE5NzdlZjU0OTciLCJpYXQiOjE1NzkyNjIxMjcsImV4cCI6MTU3OTM0ODUyN30.cjVP5KSSUunXCwNTMy-ayBiu1Ub5JPk2UrtDhCK-1MA\",\n        \"requestedEmailVerification\": false,\n        \"requestedPhoneVerification\": false,\n        \"emailVerified\": true,\n        \"phoneVerified\": false,\n        \"password\": \"$2b$10$tofQBeCxo2dGuT48rnkiaup0xyEpatyZvDqO8OBKhiqYpiDjR9dDa\",\n        \"status\": \"enabled\",\n        \"gender\": \"unspecified\",\n        \"role\": \"Patient\",\n        \"_id\": \"5e21a0781f9f521977ef5497\",\n        \"email\": \"msmahrt@gmail.com\",\n        \"fullName\": \"Kubiat Morgan\",\n        \"mobile\": \"+2349068169777\",\n        \"createdAt\": \"2020-01-17T11:54:32.034Z\",\n        \"updatedAt\": \"2020-01-17T11:55:27.254Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"119e5dbd-c9a6-44a3-8df3-fbfd080e1049"},{"name":"Login User","event":[{"listen":"test","script":{"id":"51deba27-6393-41f8-88f1-18d100a02c1f","exec":["var data = pm.response.json().data;","","if (data) {","    pm.environment.set(\"TOKEN\", data.token);","    pm.environment.set(\"REFRESH_TOKEN\", data.refreshToken);","}"],"type":"text/javascript"}}],"id":"8e7a8a38-33ff-42b9-817f-d22b22c12592","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"msmahrt@gmail.com\",\n\t\"password\": \"Awesome0.\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/local","description":"<p>Logs in an authorized user.</p>\n<p>N/B: Save the <code>refreshToken</code> and <code>accessToken</code> in the response body in a secure location.</p>\n<p>The <code>refreshToken</code> will be needed to generate a new <code>accessToken</code> for the user while the <code>accessToken</code> can be used to authenticate requests made by the user to the API.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>email</code></td>\n<td><code>string</code></td>\n<td>registered email of the user</td>\n</tr>\n<tr>\n<td><code>password</code></td>\n<td><code>string</code></td>\n<td>associated password of the user</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","auth","local"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"ed5e396b-30b9-4d4e-83ae-93d608354db1","name":"Login User","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"kidsmahrt@gmail.com\",\n\t\"password\": \"password100\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/local"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 18 Jun 2020 20:34:13 GMT"},{"key":"X-Ratelimit-Reset","value":"1592513061"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"858"},{"key":"Etag","value":"W/\"35a-H5d0aIICavx486ZbX1JKCvJgfvM\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"subscriptionStatus\": \"free\",\n        \"renewalStatus\": \"none\",\n        \"subscriptionExpires\": null,\n        \"name\": \"Kubiat Morgan\",\n        \"mobile\": null,\n        \"password\": \"$2b$10$eEYrZ7MkaBeMAABthYJbCOX7Mg.jJJ6ikffzqCU7kLzPy0Tn2Ylpu\",\n        \"avatar\": null,\n        \"gender\": \"unspecified\",\n        \"location\": null,\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZWViY2VjNDEwZjkwNzAwMDRlMDdmOTUiLCJyb2xlIjoiTWVtYmVyIiwiaWF0IjoxNTkyNTEyNDUzLCJleHAiOjE1OTI1OTg4NTN9.eijtxisduoyYMjei3UprgtSQ8uaPH6Y9cPmmugdmDpk\",\n        \"refreshToken\": \"HoJtevOhXFcoffj1uxuLMfo70HBGLeFh\",\n        \"requestedEmailVerification\": false,\n        \"requestedPhoneVerification\": false,\n        \"emailVerified\": false,\n        \"phoneVerified\": false,\n        \"status\": \"pending\",\n        \"role\": \"Member\",\n        \"_id\": \"5eebcec410f9070004e07f95\",\n        \"email\": \"kidsmahrt@gmail.com\",\n        \"createdAt\": \"2020-06-18T20:29:56.033Z\",\n        \"updatedAt\": \"2020-06-18T20:29:56.033Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"8e7a8a38-33ff-42b9-817f-d22b22c12592"},{"name":"Forgot Password","id":"cbed9f8f-143b-4135-ab87-d7996e4aeef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"joelekpenyong@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/forgot-password","description":"<p>Sends a password reset email to the provided email address.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>email</code></td>\n<td><code>string</code></td>\n<td>registered email of the user</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","auth","forgot-password"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"93a6bbe2-b76b-45b8-aff4-1510215b740c","name":"Forgot Password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"msmahrt@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/forgot-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 17 Jan 2020 11:58:59 GMT"},{"key":"X-RateLimit-Reset","value":"1579262893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"585"},{"key":"ETag","value":"W/\"249-B/UNnimObQwLhITYK5CfYZK0LQw\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"doctors\": [],\n        \"country\": null,\n        \"location\": null,\n        \"avatar\": null,\n        \"token\": \"810581\",\n        \"requestedEmailVerification\": false,\n        \"requestedPhoneVerification\": false,\n        \"emailVerified\": true,\n        \"phoneVerified\": false,\n        \"password\": \"$2b$10$tofQBeCxo2dGuT48rnkiaup0xyEpatyZvDqO8OBKhiqYpiDjR9dDa\",\n        \"status\": \"enabled\",\n        \"gender\": \"unspecified\",\n        \"role\": \"Patient\",\n        \"_id\": \"5e21a0781f9f521977ef5497\",\n        \"email\": \"msmahrt@gmail.com\",\n        \"fullName\": \"Kubiat Morgan\",\n        \"mobile\": \"+2349068169777\",\n        \"createdAt\": \"2020-01-17T11:54:32.034Z\",\n        \"updatedAt\": \"2020-01-17T11:59:00.002Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"cbed9f8f-143b-4135-ab87-d7996e4aeef5"},{"name":"Reset Password","id":"6aeef36e-bd7d-426a-91cb-abc64acb293b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\": \"810581\",\n\t\"newPassword\": \"passwordNew\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/reset-password","description":"<p>Receives the token retrieved from the password reset email sent to the user and the user's new password and sets it.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>token</code></td>\n<td><code>string</code></td>\n<td>one-time token received via email</td>\n</tr>\n<tr>\n<td><code>newPassword</code></td>\n<td><code>string</code></td>\n<td>user's new password</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","auth","reset-password"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"3924b77e-4f3b-488e-8a21-25a1bdcfb0d2","name":"Reset Password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"token\": \"810581\",\n\t\"newPassword\": \"passwordNew\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/reset-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 17 Jan 2020 12:01:27 GMT"},{"key":"X-RateLimit-Reset","value":"1579262893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"585"},{"key":"ETag","value":"W/\"249-aeO6EWJQMmkO2S1lfSwEqS6tlXY\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"doctors\": [],\n        \"country\": null,\n        \"location\": null,\n        \"avatar\": null,\n        \"token\": \"810581\",\n        \"requestedEmailVerification\": false,\n        \"requestedPhoneVerification\": false,\n        \"emailVerified\": true,\n        \"phoneVerified\": false,\n        \"password\": \"$2b$10$9rHtQtsmrPul4ecZZQJNdeLwXYOvMFlHjnBzUivUjzjZbN.zrH1.2\",\n        \"status\": \"enabled\",\n        \"gender\": \"unspecified\",\n        \"role\": \"Patient\",\n        \"_id\": \"5e21a0781f9f521977ef5497\",\n        \"email\": \"msmahrt@gmail.com\",\n        \"fullName\": \"Kubiat Morgan\",\n        \"mobile\": \"+2349068169777\",\n        \"createdAt\": \"2020-01-17T11:54:32.034Z\",\n        \"updatedAt\": \"2020-01-17T12:01:27.630Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"6aeef36e-bd7d-426a-91cb-abc64acb293b"},{"name":"Change Password","id":"14a6a018-5876-47d4-ab49-0e9b49e9ddc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"msmahrt@gmail.com\",\n\t\"oldPassword\": \"passwordNew\",\n\t\"newPassword\": \"password100\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/change-password","description":"<p>Changes the current password of the user to the supplied new password.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>email</code></td>\n<td><code>string</code></td>\n<td>registered email of the user</td>\n</tr>\n<tr>\n<td><code>newPassword</code></td>\n<td><code>string</code></td>\n<td>user's new password</td>\n</tr>\n<tr>\n<td><code>oldPassword</code></td>\n<td><code>string</code></td>\n<td>user's old password</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","auth","change-password"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"9f4571fa-0e21-437d-b677-68a26284d898","name":"Change Password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"msmahrt@gmail.com\",\n\t\"oldPassword\": \"passwordNew\",\n\t\"newPassword\": \"password100\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users/auth/change-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 17 Jan 2020 12:03:42 GMT"},{"key":"X-RateLimit-Reset","value":"1579262893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"585"},{"key":"ETag","value":"W/\"249-GYEjqevdzMRiTpy4xuNKfek0VlE\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"doctors\": [],\n        \"country\": null,\n        \"location\": null,\n        \"avatar\": null,\n        \"token\": \"810581\",\n        \"requestedEmailVerification\": false,\n        \"requestedPhoneVerification\": false,\n        \"emailVerified\": true,\n        \"phoneVerified\": false,\n        \"password\": \"$2b$10$u.xN4cI.g5.YD/dgDXP9Pu4Vq8ywHjjTPrZ1fxwfZOYnWyI9Dy6C6\",\n        \"status\": \"enabled\",\n        \"gender\": \"unspecified\",\n        \"role\": \"Patient\",\n        \"_id\": \"5e21a0781f9f521977ef5497\",\n        \"email\": \"msmahrt@gmail.com\",\n        \"fullName\": \"Kubiat Morgan\",\n        \"mobile\": \"+2349068169777\",\n        \"createdAt\": \"2020-01-17T11:54:32.034Z\",\n        \"updatedAt\": \"2020-01-17T12:03:43.066Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"14a6a018-5876-47d4-ab49-0e9b49e9ddc2"}],"id":"b3a09c84-557f-4afb-ba02-fa642d117c7c","description":"<p>Associated with authentications of the user (e.g. social auth, phone auth, etc.)</p>\n","event":[{"listen":"prerequest","script":{"id":"84f0c6c1-1781-45ea-9836-304273c7084c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5aaba1e9-211f-446f-a39b-6bbb446ba366","type":"text/javascript","exec":[""]}}],"_postman_id":"b3a09c84-557f-4afb-ba02-fa642d117c7c"},{"name":"Users","item":[{"name":"List all users","id":"7504724c-2c53-4afa-afa4-d8cae9de27b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/users","description":"<p>This will fetch all users (members and admins alike) on the platform</p>\n","urlObject":{"path":["users"],"host":["{{BASE_URL}}"],"query":[{"disabled":true,"key":"itemsPage","value":"1"},{"disabled":true,"key":"itemsPerPage","value":"5"}],"variable":[]}},"response":[{"id":"e1ac27d3-db82-40ee-ab00-818be283752c","name":"List all users","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/users?itemsPage=1","host":["{{BASE_URL}}"],"path":["users"],"query":[{"key":"itemsPage","value":"1"},{"key":"itemsPerPage","value":"5","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Wed, 15 Jan 2020 09:46:23 GMT"},{"key":"X-RateLimit-Reset","value":"1579082029"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1345"},{"key":"ETag","value":"W/\"541-tEpgL/7VkjZeM5Th0m8eErPAWE8\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"_id\": \"5defdce5301a55926d10cd2b\",\n            \"mobile\": \"+2349068169777\",\n            \"fullName\": null,\n            \"email\": null,\n            \"avatar\": null,\n            \"emailVerified\": false,\n            \"phoneVerified\": true,\n            \"status\": \"enabled\",\n            \"gender\": \"unspecified\",\n            \"doctors\": [\n                \"5df5fa4fa0e7ec0619565bd4\"\n            ],\n            \"createdAt\": \"2019-12-10T17:59:01.068Z\",\n            \"updatedAt\": \"2019-12-10T17:59:01.068Z\"\n        },\n        {\n            \"_id\": \"5df5fa4fa0e7ec0619565bd4\",\n            \"specialties\": [\n                \"5defdce5301a55926d10cd2b\"\n            ],\n            \"media\": [],\n            \"mobile\": null,\n            \"fullName\": null,\n            \"country\": null,\n            \"location\": null,\n            \"email\": \"test@doctor.com\",\n            \"avatar\": null,\n            \"emailVerified\": false,\n            \"phoneVerified\": false,\n            \"status\": \"pending\",\n            \"gender\": \"unspecified\",\n            \"role\": \"Doctor\",\n            \"qualification\": \"BSc Med Stuff\",\n            \"hours\": {\n                \"start\": 830,\n                \"end\": 1830\n            },\n            \"experience\": 12,\n            \"fee\": 500,\n            \"createdAt\": \"2019-12-15T09:18:07.066Z\",\n            \"updatedAt\": \"2019-12-15T09:18:07.066Z\"\n        },\n        {\n            \"_id\": \"5df6a8af18d6da12fa6f5fe2\",\n            \"specialties\": [\n                \"5df6a7aaa35dd012c854bb03\"\n            ],\n            \"media\": [],\n            \"mobile\": null,\n            \"fullName\": null,\n            \"country\": null,\n            \"location\": null,\n            \"email\": \"another@doctor.com\",\n            \"avatar\": null,\n            \"emailVerified\": false,\n            \"phoneVerified\": false,\n            \"status\": \"pending\",\n            \"gender\": \"unspecified\",\n            \"role\": \"Doctor\",\n            \"qualification\": \"BSc Med Stuff\",\n            \"hours\": {\n                \"start\": 830,\n                \"end\": 1830\n            },\n            \"experience\": 12,\n            \"fee\": 500,\n            \"createdAt\": \"2019-12-15T21:42:07.966Z\",\n            \"updatedAt\": \"2019-12-15T21:42:07.966Z\"\n        }\n    ],\n    \"meta\": {\n        \"items\": 3,\n        \"page\": 1,\n        \"itemsPerPage\": 10,\n        \"pages\": 1\n    }\n}"}],"_postman_id":"7504724c-2c53-4afa-afa4-d8cae9de27b2"},{"name":"Remove User","id":"cabb3430-6961-4e9e-b6e5-2c01832e83d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{BASE_URL}}/users/:id","description":"<p>Deletes a user from the platform</p>\n","urlObject":{"path":["users",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Unique ID of the user specified</p>\n","type":"text/plain"},"type":"string","value":"","key":"id"}]}},"response":[],"_postman_id":"cabb3430-6961-4e9e-b6e5-2c01832e83d6"},{"name":"Update User","id":"0e001acd-deae-484a-b07b-9f1856848e24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[],"url":"{{BASE_URL}}/users/:id","description":"<p>Updates a user's details on the platform</p>\n","urlObject":{"path":["users",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Unique ID of the user</p>\n","type":"text/plain"},"type":"string","value":"","key":"id"}]}},"response":[],"_postman_id":"0e001acd-deae-484a-b07b-9f1856848e24"},{"name":"Add User (Sign up as User)","event":[{"listen":"test","script":{"id":"8e533591-9ea4-439b-975b-d862010c8a6d","exec":["var data = pm.response.json().data;","","if (data) {","    pm.environment.set(\"TOKEN\", data.token);","    pm.environment.set(\"REFRESH_TOKEN\", data.refreshToken);","}"],"type":"text/javascript"}}],"id":"380ec28d-42fb-4605-83cd-15d3a27ddd93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"kidsmahrt@gmail.com\",\n\t\"password\": \"password100\",\n\t\"name\": \"Kubiat Morgan\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users","description":"<p>Creates a new account for a member.</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td><code>string</code></td>\n<td>valid full name of the user</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>string</code></td>\n<td>valid email of the user</td>\n</tr>\n<tr>\n<td><code>password</code></td>\n<td><code>string</code></td>\n<td>chosen password of the user</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"9fe33725-61bb-4e84-911f-d347c03b7202","name":"Add User (Sign up as User)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"kidsmahrt@gmail.com\",\n\t\"password\": \"password100\",\n\t\"name\": \"Kubiat Morgan\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 18 Jun 2020 20:29:55 GMT"},{"key":"X-Ratelimit-Reset","value":"1592513061"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"858"},{"key":"Etag","value":"W/\"35a-X3/3ZrZOE8SxoiFy4tdzbD0ZSmA\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"subscriptionStatus\": \"free\",\n        \"renewalStatus\": \"none\",\n        \"subscriptionExpires\": null,\n        \"_id\": \"5eebcec410f9070004e07f95\",\n        \"name\": \"Kubiat Morgan\",\n        \"mobile\": null,\n        \"password\": \"$2b$10$eEYrZ7MkaBeMAABthYJbCOX7Mg.jJJ6ikffzqCU7kLzPy0Tn2Ylpu\",\n        \"avatar\": null,\n        \"gender\": \"unspecified\",\n        \"location\": null,\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZWViY2VjNDEwZjkwNzAwMDRlMDdmOTUiLCJyb2xlIjoiTWVtYmVyIiwiaWF0IjoxNTkyNTEyMTk2LCJleHAiOjE1OTI1OTg1OTZ9.TYOkC8QiDIjVO96pJo-1Hz1irwew1hP9kbaRIelfNJE\",\n        \"refreshToken\": \"HoJtevOhXFcoffj1uxuLMfo70HBGLeFh\",\n        \"requestedEmailVerification\": false,\n        \"requestedPhoneVerification\": false,\n        \"emailVerified\": false,\n        \"phoneVerified\": false,\n        \"status\": \"pending\",\n        \"role\": \"Member\",\n        \"email\": \"kidsmahrt@gmail.com\",\n        \"createdAt\": \"2020-06-18T20:29:56.033Z\",\n        \"updatedAt\": \"2020-06-18T20:29:56.033Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"380ec28d-42fb-4605-83cd-15d3a27ddd93"}],"id":"17f3d038-bf32-40a4-9fe1-b7a48977bda7","description":"<p>All endpoints associated with the users resource.</p>\n","event":[{"listen":"prerequest","script":{"id":"68f13b1c-a28d-4bdd-9a4c-1ac58d694640","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"adb9a387-e4d7-4d3c-bdda-b85aa0c61c61","type":"text/javascript","exec":[""]}}],"_postman_id":"17f3d038-bf32-40a4-9fe1-b7a48977bda7"},{"name":"Forms","item":[{"name":"FormQuestions","item":[{"name":"FormQuestionOptions","item":[{"name":"Add Option","id":"7dab4d59-1ec5-4093-8c75-0c17dc094f2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"label\": \"I just like y'all\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/forms/:form/questions/:question/options","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms",":form","questions",":question","options"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"622a063878e94f0043293f11","key":"form"},{"type":"any","value":"622a0e477776950043ba988c","key":"question"}]}},"response":[{"id":"938188fc-d0e3-44da-8ac2-bf4414398cb2","name":"Add Options","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"label\": \"I just like y'all\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/forms/:form/questions/:question/options","host":["{{BASE_URL}}"],"path":["forms",":form","questions",":question","options"],"variable":[{"key":"form","value":"622a063878e94f0043293f11"},{"key":"question","value":"622a0e477776950043ba988c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 10 Mar 2022 14:47:16 GMT"},{"key":"X-Ratelimit-Reset","value":"1646923893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"241"},{"key":"Etag","value":"W/\"f1-hbhGJ8ToJ/UBpaGUlH//U7FPg9o\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"_id\": \"622a0f747776950043ba9894\",\n        \"label\": \"I just like y'all\",\n        \"form\": \"622a063878e94f0043293f11\",\n        \"question\": \"622a0e477776950043ba988c\",\n        \"author\": \"6158c16f62f0190043645440\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"7dab4d59-1ec5-4093-8c75-0c17dc094f2e"},{"name":"Update Option","id":"efca95c3-c16c-44de-ada6-cbc92e8e7fc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"label\": \"I dig y'all\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/forms/:form/questions/:question/options/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms",":form","questions",":question","options",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"622a063878e94f0043293f11","key":"form"},{"type":"any","value":"622a0e477776950043ba988c","key":"question"},{"type":"any","value":"622a0f747776950043ba9894","key":"id"}]}},"response":[{"id":"281512bc-0e06-45d1-8206-e583069c79ed","name":"Update Option","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"label\": \"I dig y'all\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/forms/:form/questions/:question/options/:id","host":["{{BASE_URL}}"],"path":["forms",":form","questions",":question","options",":id"],"variable":[{"key":"form","value":"622a063878e94f0043293f11"},{"key":"question","value":"622a0e477776950043ba988c"},{"key":"id","value":"622a0f747776950043ba9894"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 10 Mar 2022 14:49:04 GMT"},{"key":"X-Ratelimit-Reset","value":"1646923893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"235"},{"key":"Etag","value":"W/\"eb-ZW/WumAVkXK0CGNsnKhKfBooJJY\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"_id\": \"622a0f747776950043ba9894\",\n        \"label\": \"I dig y'all\",\n        \"form\": \"622a063878e94f0043293f11\",\n        \"question\": \"622a0e477776950043ba988c\",\n        \"author\": \"6158c16f62f0190043645440\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"efca95c3-c16c-44de-ada6-cbc92e8e7fc9"},{"name":"Delete Option","id":"60929ca5-ea8b-49a5-b6ca-47c63afb2509","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{BASE_URL}}/forms/:form/questions/:question/options/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms",":form","questions",":question","options",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":null,"key":"form"},{"type":"any","value":null,"key":"question"},{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"60929ca5-ea8b-49a5-b6ca-47c63afb2509"}],"id":"2217c655-5802-4cdb-a905-643a9d73e033","_postman_id":"2217c655-5802-4cdb-a905-643a9d73e033","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}}},{"name":"Add Question","id":"74fdb4ce-e577-486f-81a3-8a7e4e230d0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"label\": \"Why you here?\",\n    \"order\": 2,\n    \"required\": true,\n    \"type\": \"dropdown\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/forms/:form/questions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms",":form","questions"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"622a063878e94f0043293f11","key":"form"}]}},"response":[{"id":"965080cb-b2a5-417c-9d3f-d11c3bfe7e14","name":"Add Question","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"label\": \"Why you here?\",\n    \"order\": 2,\n    \"required\": true,\n    \"type\": \"dropdown\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/forms/:form/questions","host":["{{BASE_URL}}"],"path":["forms",":form","questions"],"variable":[{"key":"form","value":"622a063878e94f0043293f11"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 10 Mar 2022 14:42:15 GMT"},{"key":"X-Ratelimit-Reset","value":"1646923893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"362"},{"key":"Etag","value":"W/\"16a-Zd11kt6v+Sy0t9qGAc03xhQhUsg\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"isProfilePhoto\": false,\n        \"isEditable\": true,\n        \"_id\": \"622a0e477776950043ba988c\",\n        \"label\": \"Why you here?\",\n        \"order\": 2,\n        \"required\": true,\n        \"type\": \"dropdown\",\n        \"form\": \"622a063878e94f0043293f11\",\n        \"author\": \"6158c16f62f0190043645440\",\n        \"createdAt\": \"2022-03-10T14:42:15.135Z\",\n        \"updatedAt\": \"2022-03-10T14:42:15.135Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"74fdb4ce-e577-486f-81a3-8a7e4e230d0d"},{"name":"Update Question","id":"2418d4f6-76d0-4613-8dd3-e82b02bd2e01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"label\": \"Why you wan show?\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/forms/:form/questions/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms",":form","questions",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"622a063878e94f0043293f11","key":"form"},{"type":"any","value":"622a0e477776950043ba988c","key":"id"}]}},"response":[{"id":"e0675b78-ec2b-4b91-acd1-0e8b87dcaa46","name":"Update Question","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"label\": \"Why you wan show?\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/forms/:form/questions/:id","host":["{{BASE_URL}}"],"path":["forms",":form","questions",":id"],"variable":[{"key":"form","value":"622a063878e94f0043293f11"},{"key":"id","value":"622a0e477776950043ba988c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 10 Mar 2022 14:44:14 GMT"},{"key":"X-Ratelimit-Reset","value":"1646923893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"366"},{"key":"Etag","value":"W/\"16e-BVKStkkVU5UxVKoTyw5eS1tjguc\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"isProfilePhoto\": false,\n        \"isEditable\": true,\n        \"_id\": \"622a0e477776950043ba988c\",\n        \"label\": \"Why you wan show?\",\n        \"order\": 2,\n        \"required\": true,\n        \"type\": \"dropdown\",\n        \"form\": \"622a063878e94f0043293f11\",\n        \"author\": \"6158c16f62f0190043645440\",\n        \"createdAt\": \"2022-03-10T14:42:15.135Z\",\n        \"updatedAt\": \"2022-03-10T14:44:14.933Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"2418d4f6-76d0-4613-8dd3-e82b02bd2e01"},{"name":"Delete Question","id":"80a3e618-f708-4e0a-9f71-2a1cdb3ebd0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{BASE_URL}}/forms/:form/questions/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms",":form","questions",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":null,"key":"form"},{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"80a3e618-f708-4e0a-9f71-2a1cdb3ebd0b"}],"id":"82ac065f-eb08-4c26-af81-0ef605201132","_postman_id":"82ac065f-eb08-4c26-af81-0ef605201132","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}}},{"name":"Create Form","id":"adc0d001-95e7-4473-bf29-f7409ea981c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contest\": \"61f5bd2ef8f1e00043de886a\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/forms","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"adc0d001-95e7-4473-bf29-f7409ea981c6"},{"name":"Get Single Form","id":"66602984-344a-49fb-9696-4132d82dc519","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/forms/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"622a063878e94f0043293f11","key":"id"}]}},"response":[{"id":"2db97d59-b1f2-4488-bda6-efbb1ea43e8e","name":"Get Single Form","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/forms/:id","host":["{{BASE_URL}}"],"path":["forms",":id"],"variable":[{"key":"id","value":"622a063878e94f0043293f11"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 10 Mar 2022 14:50:50 GMT"},{"key":"X-Ratelimit-Reset","value":"1646923893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1322"},{"key":"Etag","value":"W/\"52a-leG0/3kdpW/GzCVJcpYcA9TSPHU\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"_id\": \"622a063878e94f0043293f11\",\n        \"title\": \"MGBN Form\",\n        \"description\": \"you know what it is\",\n        \"status\": \"draft\",\n        \"contest\": \"61f5bd2ef8f1e00043de886a\",\n        \"author\": \"6158c16f62f0190043645440\",\n        \"createdAt\": \"2022-03-10T14:07:52.077Z\",\n        \"updatedAt\": \"2022-03-10T14:37:35.860Z\",\n        \"questions\": [\n            {\n                \"_id\": \"622a063878e94f0043293f12\",\n                \"isProfilePhoto\": true,\n                \"isEditable\": false,\n                \"author\": \"6158c16f62f0190043645440\",\n                \"label\": \"Photo\",\n                \"order\": 0,\n                \"required\": true,\n                \"type\": \"file\",\n                \"form\": \"622a063878e94f0043293f11\",\n                \"createdAt\": \"2022-03-10T14:07:52.078Z\",\n                \"updatedAt\": \"2022-03-10T14:07:52.078Z\",\n                \"__v\": 0,\n                \"options\": []\n            },\n            {\n                \"_id\": \"622a063878e94f0043293f13\",\n                \"isProfilePhoto\": false,\n                \"isEditable\": false,\n                \"author\": \"6158c16f62f0190043645440\",\n                \"label\": \"Full name\",\n                \"order\": 1,\n                \"required\": true,\n                \"type\": \"shortAnswer\",\n                \"form\": \"622a063878e94f0043293f11\",\n                \"createdAt\": \"2022-03-10T14:07:52.078Z\",\n                \"updatedAt\": \"2022-03-10T14:07:52.078Z\",\n                \"__v\": 0,\n                \"options\": []\n            },\n            {\n                \"_id\": \"622a0e477776950043ba988c\",\n                \"isProfilePhoto\": false,\n                \"isEditable\": true,\n                \"label\": \"Why you wan show?\",\n                \"order\": 2,\n                \"required\": true,\n                \"type\": \"dropdown\",\n                \"form\": \"622a063878e94f0043293f11\",\n                \"author\": \"6158c16f62f0190043645440\",\n                \"createdAt\": \"2022-03-10T14:42:15.135Z\",\n                \"updatedAt\": \"2022-03-10T14:44:14.933Z\",\n                \"__v\": 0,\n                \"options\": [\n                    {\n                        \"_id\": \"622a0f747776950043ba9894\",\n                        \"label\": \"I dig y'all\"\n                    }\n                ]\n            }\n        ]\n    },\n    \"meta\": null\n}"}],"_postman_id":"66602984-344a-49fb-9696-4132d82dc519"},{"name":"Update Form","id":"0db0c0dd-82b4-4d44-b050-95b2700f996e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"MGBN Form\",\n    \"description\": \"you know what it is\",\n    \"status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/forms/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","name":"Forms","type":"folder"}},"urlObject":{"path":["forms",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"622a063878e94f0043293f11","key":"id"}]}},"response":[{"id":"54b89dad-3b6e-4136-9970-396305444239","name":"Update Form","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"MGBN Form\",\n    \"description\": \"you know what it is\",\n    \"status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/forms/:id","host":["{{BASE_URL}}"],"path":["forms",":id"],"variable":[{"key":"id","value":"622a063878e94f0043293f11"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Thu, 10 Mar 2022 14:37:35 GMT"},{"key":"X-Ratelimit-Reset","value":"1646923893"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"329"},{"key":"Etag","value":"W/\"149-RjbRHfWdQ12B++4Nmyc4QpF9FCs\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"title\": \"MGBN Form\",\n        \"description\": \"you know what it is\",\n        \"status\": \"draft\",\n        \"_id\": \"622a063878e94f0043293f11\",\n        \"contest\": \"61f5bd2ef8f1e00043de886a\",\n        \"author\": \"6158c16f62f0190043645440\",\n        \"createdAt\": \"2022-03-10T14:07:52.077Z\",\n        \"updatedAt\": \"2022-03-10T14:37:35.860Z\",\n        \"__v\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"0db0c0dd-82b4-4d44-b050-95b2700f996e"}],"id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e67e7c58-c8f0-4875-b27c-8ebc7ecf6364","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"131ec27c-3d6c-4360-9a92-fb561316a1a0","type":"text/javascript","exec":[""]}}],"_postman_id":"1c6e304b-7294-40a9-aaf2-6e56d076d087","description":""},{"name":"Form Responses","item":[{"name":"Get Form Responses By Contestant","id":"d8716123-94c8-4de2-a455-5d2951aaabda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/forms/contest/:contest/responses/:contestant","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"972b5856-d74f-4228-87bf-3d5f640d4baa","id":"972b5856-d74f-4228-87bf-3d5f640d4baa","name":"Form Responses","type":"folder"}},"urlObject":{"path":["forms","contest",":contest","responses",":contestant"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"6298e21d4fd24b255889b8f0","key":"contest"},{"type":"any","value":"6298e2ad4fd24b255889b916","key":"contestant"}]}},"response":[{"id":"f73939f7-8b3e-4b9d-9e1b-3f68d4e0e146","name":"Get Form Responses By Contestant","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/forms/contest/:contest/responses/:contestant","host":["{{BASE_URL}}"],"path":["forms","contest",":contest","responses",":contestant"],"variable":[{"key":"contest","value":"6298e21d4fd24b255889b8f0"},{"key":"contestant","value":"6298e2ad4fd24b255889b916"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Tue, 14 Jun 2022 10:35:23 GMT"},{"key":"X-RateLimit-Reset","value":"1655203810"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2653"},{"key":"ETag","value":"W/\"a5d-y0HZIYCuhVLZtTtsH92JegO7hyA\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"responses\": [\n                {\n                    \"_id\": \"62a20c105a2e402a91d3135c\",\n                    \"contestant\": \"6298e2ad4fd24b255889b916\",\n                    \"form\": \"6298e2df4fd24b255889b93e\",\n                    \"question\": {\n                        \"_id\": \"629f01dc28bea60d0317b52f\",\n                        \"isProfilePhoto\": false,\n                        \"isEditable\": true,\n                        \"label\": \"Multi\",\n                        \"type\": \"checkbox\",\n                        \"required\": false,\n                        \"order\": 3,\n                        \"form\": \"6298e2df4fd24b255889b93e\",\n                        \"author\": \"629e1ccee05f4c6cd0116455\",\n                        \"createdAt\": \"2022-06-07T07:44:28.081Z\",\n                        \"updatedAt\": \"2022-06-07T07:44:46.972Z\",\n                        \"__v\": 0,\n                        \"options\": []\n                    },\n                    \"response\": \"Option 1, Option 2\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"62a20c105a2e402a91d3135d\",\n                    \"contestant\": \"6298e2ad4fd24b255889b916\",\n                    \"form\": \"6298e2df4fd24b255889b93e\",\n                    \"question\": {\n                        \"_id\": \"629f01f328bea60d0317b551\",\n                        \"isProfilePhoto\": false,\n                        \"isEditable\": true,\n                        \"label\": \"Dropdown\",\n                        \"type\": \"dropdown\",\n                        \"required\": false,\n                        \"order\": 4,\n                        \"form\": \"6298e2df4fd24b255889b93e\",\n                        \"author\": \"629e1ccee05f4c6cd0116455\",\n                        \"createdAt\": \"2022-06-07T07:44:51.226Z\",\n                        \"updatedAt\": \"2022-06-07T07:45:06.217Z\",\n                        \"__v\": 0,\n                        \"options\": []\n                    },\n                    \"response\": \"Option 2\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"62a20c105a2e402a91d3135e\",\n                    \"contestant\": \"6298e2ad4fd24b255889b916\",\n                    \"form\": \"6298e2df4fd24b255889b93e\",\n                    \"question\": {\n                        \"_id\": \"629f020728bea60d0317b565\",\n                        \"isProfilePhoto\": false,\n                        \"isEditable\": true,\n                        \"label\": \"State\",\n                        \"type\": \"shortAnswer\",\n                        \"required\": false,\n                        \"order\": 5,\n                        \"form\": \"6298e2df4fd24b255889b93e\",\n                        \"author\": \"629e1ccee05f4c6cd0116455\",\n                        \"createdAt\": \"2022-06-07T07:45:11.627Z\",\n                        \"updatedAt\": \"2022-06-07T07:45:22.055Z\",\n                        \"__v\": 0,\n                        \"options\": []\n                    },\n                    \"response\": \"Lagos\",\n                    \"__v\": 0\n                }\n            ],\n            \"contestant\": {\n                \"_id\": \"6298e2ad4fd24b255889b916\",\n                \"image\": \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654186689/development_contestants/6298e2ad4fd24b255889b916_1654186685665.png\",\n                \"media\": [\n                    \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654186711/development_contestants_media/6298e2ad4fd24b255889b916_0_1654186704415.png\",\n                    \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654186711/development_contestants_media/6298e2ad4fd24b255889b916_1_1654186704418.png\",\n                    \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654186712/development_contestants_media/6298e2ad4fd24b255889b916_2_1654186704421.png\"\n                ],\n                \"name\": \"Kubiat Morgan\",\n                \"status\": \"approved\",\n                \"user\": {\n                    \"_id\": \"6158c16f62f0190043645440\",\n                    \"name\": \"Kubiat Morgan\",\n                    \"avatar\": \"https://res.cloudinary.com/strawberry-ng/image/upload/v1641473306/avatars/6158c16f62f0190043645440_1641473306916.jpg\"\n                },\n                \"contest\": \"6298e21d4fd24b255889b8f0\",\n                \"author\": {\n                    \"_id\": \"61d709577fa315004305ec4e\",\n                    \"name\": \"Joel Ekpenyong\",\n                    \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14Gif8uaOXjWwALwSPvB1_b3S6xY0UInsie07KAdnTw=s96-c\",\n                    \"role\": \"Member\"\n                },\n                \"slug\": \"51025704\",\n                \"createdAt\": \"2022-06-02T16:17:49.744Z\",\n                \"updatedAt\": \"2022-06-02T16:18:36.168Z\",\n                \"__v\": 1\n            }\n        }\n    ],\n    \"meta\": null\n}"}],"_postman_id":"d8716123-94c8-4de2-a455-5d2951aaabda"},{"name":"Add Response To Form","id":"df475e30-294c-4dda-9be4-5ee10b21f99b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contestant\": \"\",\n    \"formResponses\": [\n        {\n            \"question\": \"\",\n            \"response\": \"\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/forms/contest/:contest/responses","description":"<p>Records a set of responses to an entry form by a contestant</p>\n<h4 id=\"body\">Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>contestant</code></td>\n<td><code>string</code></td>\n<td>id of contestant</td>\n</tr>\n<tr>\n<td><code>formResponses</code></td>\n<td><code>CreateFormResponseOption[]</code></td>\n<td>array of form responses</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"interfaces\">Interfaces</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>CreateFormResponseOption {\n  question: IQuestion['_id'];\n  response: string;\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"972b5856-d74f-4228-87bf-3d5f640d4baa","id":"972b5856-d74f-4228-87bf-3d5f640d4baa","name":"Form Responses","type":"folder"}},"urlObject":{"path":["forms","contest",":contest","responses"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":null,"key":"contest"}]}},"response":[],"_postman_id":"df475e30-294c-4dda-9be4-5ee10b21f99b"}],"id":"972b5856-d74f-4228-87bf-3d5f640d4baa","description":"<h3 id=\"interfaces--models\">Interfaces &amp; Models</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>interface IFormResponse {\n  form: IForm['_id'];\n  question: IFormQuestion['_id'];\n  response: string;\n  contestant: IContestant['_id'];\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"8d461950-6564-4399-801b-7808277c6dee","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8010800a-b342-414d-aad1-ae90b08fcadb","type":"text/javascript","exec":[""]}}],"_postman_id":"972b5856-d74f-4228-87bf-3d5f640d4baa"},{"name":"Contests","item":[{"name":"Get Contests","id":"830b9766-b7df-467d-ad95-644c0ad2af9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/contests?status=draft","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"0a399c8b-164d-4745-b834-f88f04af8738","id":"0a399c8b-164d-4745-b834-f88f04af8738","name":"Contests","type":"folder"}},"urlObject":{"path":["contests"],"host":["{{BASE_URL}}"],"query":[{"key":"status","value":"draft"}],"variable":[]}},"response":[],"_postman_id":"830b9766-b7df-467d-ad95-644c0ad2af9b"},{"name":"Get Single Contest","id":"12a0180f-244e-43d0-aa1d-07150a46c06d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/contests/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"0a399c8b-164d-4745-b834-f88f04af8738","id":"0a399c8b-164d-4745-b834-f88f04af8738","name":"Contests","type":"folder"}},"urlObject":{"path":["contests",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"somethingbeImBVn9","key":"id"}]}},"response":[{"id":"6757f356-2e40-4838-93f0-a7c4dbbee3da","name":"Get Single Contest","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/contests/:id","host":["{{BASE_URL}}"],"path":["contests",":id"],"variable":[{"key":"id","value":"somethingbeImBVn9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 17 Jun 2022 09:51:03 GMT"},{"key":"X-RateLimit-Reset","value":"1655460210"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1368"},{"key":"ETag","value":"W/\"558-d/uVB1vd7Wt9G86k3tt9Bieh5I8\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"_id\": \"62ab98be78ed6eb973434122\",\n        \"organization\": null,\n        \"title\": \"something else\",\n        \"description\": \"<p>details about the contest</p>\",\n        \"slug\": \"somethingbeImBVn9\",\n        \"image\": \"https://res.cloudinary.com/strawberry-ng/image/upload/v1655459325/development_contests/62ab98be78ed6eb973434122_1655459323267.jpg\",\n        \"isContestPrivate\": false,\n        \"isRegistrationPrivate\": true,\n        \"entryFee\": {\n            \"_id\": \"62ab991478ed6eb973434144\",\n            \"currency\": \"NGN\",\n            \"value\": \"26\"\n        },\n        \"registrationStarts\": \"2022-06-16T22:17:56.877Z\",\n        \"registrationEnds\": \"2022-06-17T20:56:56.878Z\",\n        \"isVotingPrivate\": false,\n        \"firstSave\": true,\n        \"votingRule\": \"ONCE_PER_CONTEST_PER_DAY\",\n        \"votingStarts\": \"2022-06-18T20:55:30.596Z\",\n        \"votingEnds\": \"2022-06-30T20:55:38.446Z\",\n        \"votingFee\": {\n            \"_id\": \"62ab98be78ed6eb973434121\",\n            \"currency\": \"NGN\",\n            \"value\": \"10\"\n        },\n        \"status\": \"draft\",\n        \"author\": {\n            \"_id\": \"61d709577fa315004305ec4e\",\n            \"name\": \"Joel Ekpenyong\",\n            \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14Gif8uaOXjWwALwSPvB1_b3S6xY0UInsie07KAdnTw=s96-c\"\n        },\n        \"createdAt\": \"2022-06-16T20:55:26.392Z\",\n        \"updatedAt\": \"2022-06-17T09:50:00.745Z\",\n        \"contestants\": [\n            {\n                \"_id\": \"62abac2e75439ed40edeaeb1\",\n                \"user\": \"6158c16f62f0190043645440\"\n            },\n            {\n                \"_id\": \"62abac5e75439ed40edeaedd\",\n                \"user\": \"61d43085222b170043b5de3a\"\n            }\n        ],\n        \"nContestants\": 2,\n        \"nVoters\": 0,\n        \"hasEntryForm\": true,\n        \"entryForm\": {\n            \"_id\": \"62abac7075439ed40edeaf02\",\n            \"status\": \"published\"\n        },\n        \"nVotes\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"12a0180f-244e-43d0-aa1d-07150a46c06d"},{"name":"Check Contest Publish Eligibility","id":"19e9668b-7bcd-46b0-bc68-7e96721ae33b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/contests/:id/eligibility","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"0a399c8b-164d-4745-b834-f88f04af8738","id":"0a399c8b-164d-4745-b834-f88f04af8738","name":"Contests","type":"folder"}},"urlObject":{"path":["contests",":id","eligibility"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"62d81c390851111ccd694efc","key":"id"}]}},"response":[{"id":"585ae3e8-3ec0-4f5a-9807-d25599a073af","name":"Check Contest Publish Eligibility","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/contests/:id/eligibility","host":["{{BASE_URL}}"],"path":["contests",":id","eligibility"],"variable":[{"key":"id","value":"62ab98be78ed6eb973434122"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 22 Jul 2022 12:34:05 GMT"},{"key":"X-Ratelimit-Reset","value":"1658493834"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"129"},{"key":"Etag","value":"W/\"81-vLKcdBt7B03DYaTc7p4tPXjPfL4\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"isEligible\": true,\n        \"message\": \"Contest is eligible for publishing\"\n    },\n    \"meta\": null\n}"},{"id":"7366a932-6880-494b-bc45-181ce236fee5","name":"Check Contest Publish Eligibility [Failed]","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/contests/:id/eligibility","host":["{{BASE_URL}}"],"path":["contests",":id","eligibility"],"variable":[{"key":"id","value":"62d81c390851111ccd694efc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"X-Ratelimit-Limit","value":"0"},{"key":"X-Ratelimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 22 Jul 2022 12:41:36 GMT"},{"key":"X-Ratelimit-Reset","value":"1658493834"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"159"},{"key":"Etag","value":"W/\"9f-zNfMmggaBwEFem+CpL6wifPvW9o\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": {\n        \"isEligible\": false,\n        \"message\": \"The following fields image must be completed to publish contest\"\n    },\n    \"meta\": null\n}"}],"_postman_id":"19e9668b-7bcd-46b0-bc68-7e96721ae33b"},{"name":"Update Contest","id":"ee7e55bf-0be7-4322-8f12-ab5b1275a101","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/contests/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"0a399c8b-164d-4745-b834-f88f04af8738","id":"0a399c8b-164d-4745-b834-f88f04af8738","name":"Contests","type":"folder"}},"urlObject":{"path":["contests",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"62ab98be78ed6eb973434122","key":"id"}]}},"response":[{"id":"5f7c644e-b237-452f-b666-05d5d0e90a86","name":"Update Contest","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/contests/:id","host":["{{BASE_URL}}"],"path":["contests",":id"],"variable":[{"key":"id","value":"62ab98be78ed6eb973434122"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 17 Jun 2022 09:49:59 GMT"},{"key":"X-RateLimit-Reset","value":"1655460210"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1382"},{"key":"ETag","value":"W/\"566-jS/Pc7ExiOm3rWnqpOz3rQiWFS8\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"Changes saved!\",\n    \"data\": {\n        \"_id\": \"62ab98be78ed6eb973434122\",\n        \"organization\": null,\n        \"title\": \"something else\",\n        \"description\": \"<p>details about the contest</p>\",\n        \"slug\": \"somethingbeImBVn9\",\n        \"image\": \"https://res.cloudinary.com/strawberry-ng/image/upload/v1655459325/development_contests/62ab98be78ed6eb973434122_1655459323267.jpg\",\n        \"isContestPrivate\": false,\n        \"isRegistrationPrivate\": true,\n        \"entryFee\": {\n            \"_id\": \"62ab991478ed6eb973434144\",\n            \"currency\": \"NGN\",\n            \"value\": \"26\"\n        },\n        \"registrationStarts\": \"2022-06-16T22:17:56.877Z\",\n        \"registrationEnds\": \"2022-06-17T20:56:56.878Z\",\n        \"isVotingPrivate\": false,\n        \"firstSave\": true,\n        \"votingRule\": \"ONCE_PER_CONTEST_PER_DAY\",\n        \"votingStarts\": \"2022-06-18T20:55:30.596Z\",\n        \"votingEnds\": \"2022-06-30T20:55:38.446Z\",\n        \"votingFee\": {\n            \"_id\": \"62ab98be78ed6eb973434121\",\n            \"currency\": \"NGN\",\n            \"value\": \"10\"\n        },\n        \"status\": \"draft\",\n        \"author\": {\n            \"_id\": \"61d709577fa315004305ec4e\",\n            \"name\": \"Joel Ekpenyong\",\n            \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14Gif8uaOXjWwALwSPvB1_b3S6xY0UInsie07KAdnTw=s96-c\"\n        },\n        \"createdAt\": \"2022-06-16T20:55:26.392Z\",\n        \"updatedAt\": \"2022-06-17T09:50:00.745Z\",\n        \"contestants\": [\n            {\n                \"_id\": \"62abac2e75439ed40edeaeb1\",\n                \"user\": \"6158c16f62f0190043645440\"\n            },\n            {\n                \"_id\": \"62abac5e75439ed40edeaedd\",\n                \"user\": \"61d43085222b170043b5de3a\"\n            }\n        ],\n        \"nContestants\": 2,\n        \"nVoters\": 0,\n        \"hasEntryForm\": true,\n        \"entryForm\": {\n            \"_id\": \"62abac7075439ed40edeaf02\",\n            \"status\": \"published\"\n        },\n        \"nVotes\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"ee7e55bf-0be7-4322-8f12-ab5b1275a101"},{"name":"Update Contest Image","id":"83fa9b36-ab0d-4016-a277-71f1f3f7a5f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","description":"<p>Image to be uploaded</p>\n","type":"file","src":"/Users/user/Pictures/Sapid/1x/1x/sapid-logo-alt-5.jpg"}]},"url":"{{BASE_URL}}/contests/:id/upload","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"0a399c8b-164d-4745-b834-f88f04af8738","id":"0a399c8b-164d-4745-b834-f88f04af8738","name":"Contests","type":"folder"}},"urlObject":{"path":["contests",":id","upload"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"62ab98be78ed6eb973434122","key":"id"}]}},"response":[{"id":"8b37412b-5fcb-433e-9bf6-d6d7c87c0ebe","name":"Update Contest Image","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","description":"Image to be uploaded","type":"file","src":"/Users/user/Pictures/Sapid/1x/1x/sapid-logo-alt-5.jpg"}]},"url":{"raw":"{{BASE_URL}}/contests/:id/upload","host":["{{BASE_URL}}"],"path":["contests",":id","upload"],"variable":[{"key":"id","value":"62ab98be78ed6eb973434122"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Fri, 17 Jun 2022 09:48:42 GMT"},{"key":"X-RateLimit-Reset","value":"1655460210"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1395"},{"key":"ETag","value":"W/\"573-sAgAY7d8jspezh1enUYc1Z83XvI\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"Image uploaded successfully\",\n    \"data\": {\n        \"_id\": \"62ab98be78ed6eb973434122\",\n        \"organization\": null,\n        \"title\": \"something else\",\n        \"description\": \"<p>details about the contest</p>\",\n        \"slug\": \"somethingbeImBVn9\",\n        \"image\": \"https://res.cloudinary.com/strawberry-ng/image/upload/v1655459325/development_contests/62ab98be78ed6eb973434122_1655459323267.jpg\",\n        \"isContestPrivate\": false,\n        \"isRegistrationPrivate\": true,\n        \"entryFee\": {\n            \"_id\": \"62ab991478ed6eb973434144\",\n            \"currency\": \"NGN\",\n            \"value\": \"26\"\n        },\n        \"registrationStarts\": \"2022-06-16T22:17:56.877Z\",\n        \"registrationEnds\": \"2022-06-17T20:56:56.878Z\",\n        \"isVotingPrivate\": false,\n        \"firstSave\": true,\n        \"votingRule\": \"ONCE_PER_CONTEST_PER_DAY\",\n        \"votingStarts\": \"2022-06-18T20:55:30.596Z\",\n        \"votingEnds\": \"2022-06-30T20:55:38.446Z\",\n        \"votingFee\": {\n            \"_id\": \"62ab98be78ed6eb973434121\",\n            \"currency\": \"NGN\",\n            \"value\": \"10\"\n        },\n        \"status\": \"draft\",\n        \"author\": {\n            \"_id\": \"61d709577fa315004305ec4e\",\n            \"name\": \"Joel Ekpenyong\",\n            \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14Gif8uaOXjWwALwSPvB1_b3S6xY0UInsie07KAdnTw=s96-c\"\n        },\n        \"createdAt\": \"2022-06-16T20:55:26.392Z\",\n        \"updatedAt\": \"2022-06-17T09:48:47.125Z\",\n        \"contestants\": [\n            {\n                \"_id\": \"62abac2e75439ed40edeaeb1\",\n                \"user\": \"6158c16f62f0190043645440\"\n            },\n            {\n                \"_id\": \"62abac5e75439ed40edeaedd\",\n                \"user\": \"61d43085222b170043b5de3a\"\n            }\n        ],\n        \"nContestants\": 2,\n        \"nVoters\": 0,\n        \"hasEntryForm\": true,\n        \"entryForm\": {\n            \"_id\": \"62abac7075439ed40edeaf02\",\n            \"status\": \"published\"\n        },\n        \"nVotes\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"83fa9b36-ab0d-4016-a277-71f1f3f7a5f6"}],"id":"0a399c8b-164d-4745-b834-f88f04af8738","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"cefbea67-5278-45a3-b830-b71a4466e673","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a6ba4068-71a2-4021-a075-861ffcde571b","type":"text/javascript","exec":[""]}}],"_postman_id":"0a399c8b-164d-4745-b834-f88f04af8738","description":""},{"name":"Contestants","item":[{"name":"Get Contestants For Contest","id":"18ec2901-13e1-449e-865c-75592e2a9dff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/contests/:id/contestants?status=pending","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"12cdaceb-5826-49a0-be91-ca430c607682","id":"12cdaceb-5826-49a0-be91-ca430c607682","name":"Contestants","type":"folder"}},"urlObject":{"path":["contests",":id","contestants"],"host":["{{BASE_URL}}"],"query":[{"description":{"content":"<p>Allowed values: ContestantStatus, comma-separated ContestantStatus or 'all'</p>\n","type":"text/plain"},"key":"status","value":"pending"}],"variable":[{"type":"any","value":"62a854db5dd89f76073d8031","key":"id"}]}},"response":[{"id":"de014f2e-e8fb-4ada-b6e3-42832cfdf8fd","name":"Get Contestants For Contest","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/contests/:id/contestants?status=all","host":["{{BASE_URL}}"],"path":["contests",":id","contestants"],"query":[{"key":"status","value":"all","description":"Allowed values: ContestantStatus, comma-separated ContestantStatus or 'all'"}],"variable":[{"key":"id","value":"6298e21d4fd24b255889b8f0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Tue, 14 Jun 2022 12:01:44 GMT"},{"key":"X-RateLimit-Reset","value":"1655208995"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3008"},{"key":"ETag","value":"W/\"bc0-w8pQyEZ9/pnXaAs20RtsI2YyZeo\""},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"_id\": \"6298e2ad4fd24b255889b916\",\n            \"image\": \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654186689/development_contestants/6298e2ad4fd24b255889b916_1654186685665.png\",\n            \"media\": [\n                \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654186711/development_contestants_media/6298e2ad4fd24b255889b916_0_1654186704415.png\",\n                \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654186711/development_contestants_media/6298e2ad4fd24b255889b916_1_1654186704418.png\",\n                \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654186712/development_contestants_media/6298e2ad4fd24b255889b916_2_1654186704421.png\"\n            ],\n            \"name\": \"Kubiat Morgan\",\n            \"status\": \"approved\",\n            \"user\": {\n                \"_id\": \"6158c16f62f0190043645440\",\n                \"name\": \"Kubiat Morgan\",\n                \"avatar\": \"https://res.cloudinary.com/strawberry-ng/image/upload/v1641473306/avatars/6158c16f62f0190043645440_1641473306916.jpg\",\n                \"email\": \"msmahrt@gmail.com\"\n            },\n            \"contest\": \"6298e21d4fd24b255889b8f0\",\n            \"author\": {\n                \"_id\": \"61d709577fa315004305ec4e\",\n                \"name\": \"Joel Ekpenyong\",\n                \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14Gif8uaOXjWwALwSPvB1_b3S6xY0UInsie07KAdnTw=s96-c\",\n                \"role\": \"Member\"\n            },\n            \"slug\": \"51025704\",\n            \"createdAt\": \"2022-06-02T16:17:49.744Z\",\n            \"updatedAt\": \"2022-06-02T16:18:36.168Z\",\n            \"__v\": 1,\n            \"nContestants\": 2,\n            \"allVotes\": [\n                {\n                    \"_id\": \"6298e5bb4fd24b255889b9e0\",\n                    \"nVotes\": 3\n                }\n            ],\n            \"position\": 0,\n            \"nVotes\": 0,\n            \"userVotes\": 0,\n            \"userTotalVotes\": 0,\n            \"lastOwnVoteAt\": null,\n            \"seriesVoteCount\": null\n        },\n        {\n            \"_id\": \"6298e5bb4fd24b255889b9e0\",\n            \"image\": \"https://res.cloudinary.com/strawberry-ng/image/upload/v1654187464/development_contestants/6298e5bb4fd24b255889b9e0_1654187461575.png\",\n            \"media\": [],\n            \"name\": \"ADEGOKE DAMILOLA TOYIN\",\n            \"status\": \"approved\",\n            \"user\": {\n                \"_id\": \"61deba4144352500432c6acc\",\n                \"name\": \"ADEGOKE DAMILOLA TOYIN\",\n                \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14GjD-FfuaaiuqDf7d1k63zC1LLFMXmMuYiiclr41Rw=s96-c\",\n                \"email\": \"adegokedamilolatoyin@gmail.com\"\n            },\n            \"contest\": \"6298e21d4fd24b255889b8f0\",\n            \"author\": {\n                \"_id\": \"61d709577fa315004305ec4e\",\n                \"name\": \"Joel Ekpenyong\",\n                \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14Gif8uaOXjWwALwSPvB1_b3S6xY0UInsie07KAdnTw=s96-c\",\n                \"role\": \"Member\"\n            },\n            \"slug\": \"33108752\",\n            \"createdAt\": \"2022-06-02T16:30:51.727Z\",\n            \"updatedAt\": \"2022-06-02T16:31:18.940Z\",\n            \"__v\": 0,\n            \"nContestants\": 2,\n            \"allVotes\": [\n                {\n                    \"_id\": \"6298e5bb4fd24b255889b9e0\",\n                    \"nVotes\": 3\n                }\n            ],\n            \"position\": 1,\n            \"nVotes\": 3,\n            \"userVotes\": 0,\n            \"userTotalVotes\": 0,\n            \"lastOwnVoteAt\": null,\n            \"seriesVoteCount\": null\n        },\n        {\n            \"_id\": \"629e14283a46126029a813b5\",\n            \"image\": null,\n            \"media\": [],\n            \"name\": null,\n            \"status\": \"pending\",\n            \"user\": {\n                \"_id\": \"61f6f66d877bd710b833c000\",\n                \"name\": \"jojo\",\n                \"avatar\": null,\n                \"email\": \"jayekpenyong0@gmail.com\"\n            },\n            \"contest\": \"6298e21d4fd24b255889b8f0\",\n            \"author\": {\n                \"_id\": \"61f6f66d877bd710b833c000\",\n                \"name\": \"jojo\",\n                \"avatar\": null,\n                \"role\": \"Member\"\n            },\n            \"slug\": \"11438585\",\n            \"createdAt\": \"2022-06-06T14:50:16.695Z\",\n            \"updatedAt\": \"2022-06-06T14:50:16.695Z\",\n            \"__v\": 0,\n            \"nContestants\": 2,\n            \"allVotes\": [\n                {\n                    \"_id\": \"6298e5bb4fd24b255889b9e0\",\n                    \"nVotes\": 3\n                }\n            ],\n            \"position\": 0,\n            \"nVotes\": 0,\n            \"userVotes\": 0,\n            \"userTotalVotes\": 0,\n            \"lastOwnVoteAt\": null,\n            \"seriesVoteCount\": null\n        }\n    ],\n    \"meta\": null\n}"}],"_postman_id":"18ec2901-13e1-449e-865c-75592e2a9dff"},{"name":"Create Contestant","id":"2c86d2d2-83dd-47c3-a37e-c262db0be58a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"61d337e335946400432aa01f\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/contests/:id/contestants","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"12cdaceb-5826-49a0-be91-ca430c607682","id":"12cdaceb-5826-49a0-be91-ca430c607682","name":"Contestants","type":"folder"}},"urlObject":{"path":["contests",":id","contestants"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"62a854db5dd89f76073d8031","key":"id"}]}},"response":[{"id":"1a9a2b11-c9c7-4c7a-85ee-42fed6766db4","name":"Create Contestant","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"61d337e335946400432aa01f\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{BASE_URL}}/contests/:id/contestants","host":["{{BASE_URL}}"],"path":["contests",":id","contestants"],"variable":[{"key":"id","value":"62a854db5dd89f76073d8031"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept, Authorization"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-RateLimit-Limit","value":"0"},{"key":"X-RateLimit-Remaining","value":"0"},{"key":"Date","value":"Wed, 15 Jun 2022 13:06:14 GMT"},{"key":"X-RateLimit-Reset","value":"1655299018"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"771"},{"key":"ETag","value":"W/\"303-s2l3JbFppb/dWZt4XSo2GoJ9KUA\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"\",\n    \"message\": \"Contestant has been created successfully!\",\n    \"data\": {\n        \"_id\": \"62a9d947c9576e34f1c05e68\",\n        \"image\": null,\n        \"media\": [],\n        \"name\": null,\n        \"status\": \"pending\",\n        \"user\": {\n            \"_id\": \"61d337e335946400432aa01f\",\n            \"name\": \"Kubiat Morgan\",\n            \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14Gjd19cmn8LEywy109MqqGQ-y5Jthzwo_1dInIUN3u4=s96-c\",\n            \"email\": \"kidsmahrt@gmail.com\"\n        },\n        \"contest\": \"62a854db5dd89f76073d8031\",\n        \"author\": {\n            \"_id\": \"61d709577fa315004305ec4e\",\n            \"name\": \"Joel Ekpenyong\",\n            \"avatar\": \"https://lh3.googleusercontent.com/a-/AOh14Gif8uaOXjWwALwSPvB1_b3S6xY0UInsie07KAdnTw=s96-c\",\n            \"role\": \"Member\"\n        },\n        \"slug\": \"50838864\",\n        \"createdAt\": \"2022-06-15T13:06:15.247Z\",\n        \"updatedAt\": \"2022-06-15T13:06:15.247Z\",\n        \"__v\": 0,\n        \"nContestants\": 2,\n        \"allVotes\": [],\n        \"position\": 0,\n        \"nVotes\": 0\n    },\n    \"meta\": null\n}"}],"_postman_id":"2c86d2d2-83dd-47c3-a37e-c262db0be58a"}],"id":"12cdaceb-5826-49a0-be91-ca430c607682","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f06c987b-9765-4b1c-a5d7-310745fd3959","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c42d8a89-bcbb-49b1-9876-2fdd7d9baf69","type":"text/javascript","exec":[""]}}],"_postman_id":"12cdaceb-5826-49a0-be91-ca430c607682","description":""},{"name":"Plans","item":[{"name":"Create Plan","id":"507334a4-2296-461c-b9ef-153eac46e2bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/plans","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","name":"Plans","type":"folder"}},"urlObject":{"path":["plans"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"507334a4-2296-461c-b9ef-153eac46e2bd"},{"name":"Get Plans","id":"abdec640-71b8-46f7-97a8-073cdd6a87dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/plans","description":"<p>This returns all available plans regardless of status if authenticated user is Admin but only returns active plans otherwise.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","name":"Plans","type":"folder"}},"urlObject":{"path":["plans"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"abdec640-71b8-46f7-97a8-073cdd6a87dd"},{"name":"Update Plan","id":"e9cc3587-f8ca-4e36-b71a-9298a3e53b5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"isActive\": true\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/plans/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","name":"Plans","type":"folder"}},"urlObject":{"path":["plans",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Id of plan to update</p>\n","type":"text/plain"},"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"e9cc3587-f8ca-4e36-b71a-9298a3e53b5c"},{"name":"Delete Plan","id":"fc9ee698-f16a-42c4-9a93-f234c0417411","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{BASE_URL}}/plans/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","name":"Plans","type":"folder"}},"urlObject":{"path":["plans",":id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Id of plan to delete</p>\n","type":"text/plain"},"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"fc9ee698-f16a-42c4-9a93-f234c0417411"}],"id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"954dfa1b-1ad7-448e-ba7d-edf83c7bae7e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fbd1bf9e-72b1-4533-9b07-dcd6c2050c10","type":"text/javascript","exec":[""]}}],"_postman_id":"a8272464-1e16-4e14-8f8d-bd0522d17bc0","description":""}],"event":[{"listen":"prerequest","script":{"id":"8e702bb7-1c9a-4d57-b59f-f46fe2f81c2b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"23091bfd-dbd8-4eea-9b41-64accff945c4","type":"text/javascript","exec":[""]}}]}