{"info":{"_postman_id":"af28340b-8dde-4600-b962-175a44ab9435","name":"JavaScript Deep Dive","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6370155","collectionId":"af28340b-8dde-4600-b962-175a44ab9435","publishedId":"UV5UkeWC","public":true,"customColor":{"top-bar":"303030","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-10-14T22:04:24.000Z"},"item":[{"name":"Create user","id":"005b2d07-c156-4ca8-ae22-6a6f14cb52b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Paul Park\",\n    \"email\": \"paul@example.com\",\n    \"username\": \"paul\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user","urlObject":{"path":["user"],"host":["http://localhost:4000/api"],"query":[],"variable":[]}},"response":[{"id":"9d65ca11-32e1-4fb7-a265-b3c67494c860","name":"Create user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Richard Boyewa\",\n    \"email\": \"richard@example.com\",\n    \"username\": \"richard\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"141"},{"key":"ETag","value":"W/\"8d-B5YMf6HP7XhWEkvMDEfsttY5sNA\""},{"key":"Date","value":"Tue, 19 Oct 2021 23:06:48 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"User save successfully. Here is your unique link: https://jsdd-calendar.herokuapp.com/dashboard?username=richard\"\n}"}],"_postman_id":"005b2d07-c156-4ca8-ae22-6a6f14cb52b2"},{"name":"Set Free Date","id":"a7dcb71c-8473-4417-80ea-c729c3cd0112","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"date\": \"2021-12-12\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/availability/:username","urlObject":{"path":["user","availability",":username"],"host":["http://localhost:4000/api"],"query":[],"variable":[]}},"response":[{"id":"37629def-5697-4fdb-9cc0-39989dc11491","name":"Set Free Date","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"date\": \"2021-11-10\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/availability/:username"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-O8NLe+iHXZdjvPnmJ04pRTE32ps\""},{"key":"Date","value":"Thu, 14 Oct 2021 22:00:43 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Free date set successfully\"\n}"}],"_postman_id":"a7dcb71c-8473-4417-80ea-c729c3cd0112"},{"name":"Book Appointment","id":"604f8c7b-18e4-4223-b70f-2ed83dc9ecd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"mary\",\n    \"email\": \"mary@gamil.com\",\n    \"reason\": \"some reason\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/appointment/:userAvailabilityId","urlObject":{"path":["appointment",":userAvailabilityId"],"host":["http://localhost:4000/api"],"query":[],"variable":[]}},"response":[{"id":"751d3938-fb3a-452c-8f83-8aeaa916b642","name":"Book Appointment","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"mary\",\n    \"email\": \"mary@gamil.com\",\n    \"reason\": \"some reason\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/appointment/:userAvailabilityId"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"57"},{"key":"ETag","value":"W/\"39-8aHmGyAjeSoY330YsJXG6Fwjh2I\""},{"key":"Date","value":"Sat, 16 Oct 2021 00:25:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Appointment set successfully\"\n}"}],"_postman_id":"604f8c7b-18e4-4223-b70f-2ed83dc9ecd0"},{"name":"Get All Scheduled Appointments","id":"22411727-d182-4327-b445-a22cd908e1db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/user/:username/appointments","urlObject":{"path":["user",":username","appointments"],"host":["http://localhost:4000/api"],"query":[],"variable":[]}},"response":[{"id":"ce168d2a-e7b6-453b-afb6-d6a23d642143","name":"Get All Scheduled Appointments","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/user/:userId/appointments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2837"},{"key":"ETag","value":"W/\"b15-YLrvPBhe8W51CnWqQZPtEaJ3k4A\""},{"key":"Date","value":"Tue, 19 Oct 2021 12:25:20 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"appointments\": [\n        {\n            \"_id\": \"616c94e2bedec1f15cab25ea\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"616888eb79fddf1dec816863\",\n                \"date\": \"2021-10-20T00:00:00.000Z\"\n            },\n            \"name\": \"Tobiloba\",\n            \"email\": \"tobi@gmail.com\",\n            \"reason\": \"i need therapy\",\n            \"createdAt\": \"2021-10-17T21:25:18.351Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616c9fa26690230b0c7313ed\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"616888eb79fddf1dec816863\",\n                \"date\": \"2021-10-20T00:00:00.000Z\"\n            },\n            \"name\": \"Phil Thompson\",\n            \"email\": \"phil@gmail.com\",\n            \"reason\": \"Career Related\",\n            \"createdAt\": \"2021-10-17T22:10:36.278Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616e77657247f820e0b4c66c\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"6167a2dea850518fb4dde07b\",\n                \"date\": \"2021-12-10T08:00:00.000Z\"\n            },\n            \"name\": \"George Samu\",\n            \"email\": \"george@yahoo.com\",\n            \"reason\": \"Mental Health\",\n            \"createdAt\": \"2021-10-19T07:33:18.917Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616e794b7247f820e0b4c672\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"6167a2dea850518fb4dde07b\",\n                \"date\": \"2021-12-10T08:00:00.000Z\"\n            },\n            \"name\": \"George Samu\",\n            \"email\": \"george@yahoo.com\",\n            \"reason\": \"Mental Health\",\n            \"createdAt\": \"2021-10-19T07:33:18.917Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616e79817247f820e0b4c675\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"6167a2dea850518fb4dde07b\",\n                \"date\": \"2021-12-10T08:00:00.000Z\"\n            },\n            \"name\": \"George Samu\",\n            \"email\": \"george@yahoo.com\",\n            \"reason\": \"Mental Health\",\n            \"createdAt\": \"2021-10-19T07:33:18.917Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616eb4a49a57c5d1591b213e\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"616888eb79fddf1dec816863\",\n                \"date\": \"2021-10-20T00:00:00.000Z\"\n            },\n            \"name\": \"George Samu\",\n            \"email\": \"george@yahoo.com\",\n            \"reason\": \"Mental Health\",\n            \"createdAt\": \"2021-10-19T12:05:18.505Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616eb4bc9a57c5d1591b2141\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"616888eb79fddf1dec816863\",\n                \"date\": \"2021-10-20T00:00:00.000Z\"\n            },\n            \"name\": \"George Samu\",\n            \"email\": \"george@yahoo.com\",\n            \"reason\": \"Mental Health\",\n            \"createdAt\": \"2021-10-19T12:05:18.505Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616eb5fb9a57c5d1591b2144\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"6167a2dea850518fb4dde07b\",\n                \"date\": \"2021-12-10T08:00:00.000Z\"\n            },\n            \"name\": \"George Samu\",\n            \"email\": \"george@yahoo.com\",\n            \"reason\": \"Mental Health\",\n            \"createdAt\": \"2021-10-19T12:05:18.505Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616eb639d50fbe1eb78e2a20\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"6167a2dea850518fb4dde07b\",\n                \"date\": \"2021-12-10T08:00:00.000Z\"\n            },\n            \"name\": \"George Samu\",\n            \"email\": \"george@yahoo.com\",\n            \"reason\": \"Mental Health\",\n            \"createdAt\": \"2021-10-19T12:12:35.372Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"616eb6e39d2c877f4fe80aed\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"userAvailabilityId\": {\n                \"_id\": \"6168a88b6b0cfd1ed700f13f\",\n                \"date\": \"2021-11-10T00:00:00.000Z\"\n            },\n            \"name\": \"George Samu\",\n            \"email\": \"gen@yahoo.com\",\n            \"reason\": \"Mental Health\",\n            \"createdAt\": \"2021-10-19T12:14:23.969Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"22411727-d182-4327-b445-a22cd908e1db"},{"name":"Get All Pending Appointments","id":"747f4d78-44a9-40de-8279-574387f65eb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/user/dashboard/:username","urlObject":{"path":["user","dashboard",":username"],"host":["http://localhost:4000/api"],"query":[],"variable":[]}},"response":[{"id":"2e98ef3b-88b6-4b07-8b2e-12370e847550","name":"Get All Pending Appointments","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/user/dashboard/:username"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"198"},{"key":"ETag","value":"W/\"c6-KHHiZduD1yX5UEBn6m2981BHM1c\""},{"key":"Date","value":"Tue, 19 Oct 2021 17:52:49 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": [\n        {\n            \"_id\": \"616dac6da98a5f00fc65aa51\",\n            \"userId\": \"6165f9c2d09e5e5603ca539b\",\n            \"date\": \"2021-11-10T00:00:00.000Z\",\n            \"status\": \"pending\",\n            \"createdAt\": \"2021-10-18T17:18:11.633Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"747f4d78-44a9-40de-8279-574387f65eb1"}],"event":[{"listen":"prerequest","script":{"id":"9db64eb3-f5ec-4314-9a73-bfa4f5ce1747","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"66cfc1cc-0e64-4de1-819c-d84be0b587d5","type":"text/javascript","exec":[""]}}],"variable":[{"key":"username","value":":username"},{"key":"base_url","value":"http://localhost:4000/api"},{"key":"user_id","value":":userId"},{"key":"user_availability_id","value":":userAvailabilityId"}]}