{"info":{"_postman_id":"dd9795c1-4586-43f2-8c26-796a9936c7a0","name":"Dev Camper API","description":"<html><head></head><body><p>Backend API for the DevCamper application to manage all the bootcamps, courses, reviews, users and authentication. It used Express NodeJS, MongoDB and npm packages.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"4496307","collectionId":"dd9795c1-4586-43f2-8c26-796a9936c7a0","publishedId":"UVXnGZL2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-01-19T02:05:27.000Z"},"item":[{"name":"Tuition","item":[{"name":"Get All Tutitions","id":"50e58616-85e2-42a3-bd93-e9d2b6e03b3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bootcamps","description":"<p>Fetch all bootcamps from database. Includes pagination, filtering, etc</p>\n","urlObject":{"path":["api","v1","bootcamps"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"50e58616-85e2-42a3-bd93-e9d2b6e03b3a"},{"name":"Get Single Tuition","id":"07d146c8-d33e-4d4d-8376-441bb79fbedf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bootcamps/61108ffa7dc38d0015b0cc07","description":"<p>Get single bootcamp by ID</p>\n","urlObject":{"path":["api","v1","bootcamps","61108ffa7dc38d0015b0cc07"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"1ed161a9-d1e4-4af7-b26b-6b20519af472","name":"Get Single Tuition","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bootcamps/61108ffa7dc38d0015b0cc07"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"Expect-Ct","value":"max-age=0"},{"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-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Ratelimit-Limit","value":"100"},{"key":"X-Ratelimit-Remaining","value":"97"},{"key":"Date","value":"Thu, 13 Jan 2022 01:01:51 GMT"},{"key":"X-Ratelimit-Reset","value":"1642035756"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"874"},{"key":"Etag","value":"W/\"36a-rH7iQUTH5BOHrKK3J21yAROuM+U\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                -71.324239,\n                42.650484\n            ],\n            \"formattedAddress\": \"220 Pawtucket St, Lowell, MA 01854-3502, US\",\n            \"city\": \"Lowell\",\n            \"state\": \"MA\",\n            \"zipcode\": \"01854-3502\",\n            \"country\": \"US\"\n        },\n        \"careers\": [\n            \"Web Development\",\n            \"UI/UX\",\n            \"Mobile Development\"\n        ],\n        \"photo\": \"no-photo.jpg\",\n        \"housing\": false,\n        \"jobAssistance\": true,\n        \"jobGuarantee\": false,\n        \"acceptGi\": true,\n        \"_id\": \"61108ffa7dc38d0015b0cc07\",\n        \"name\": \"Web Development for Student\",\n        \"description\": \"ModernTech has one goal, and that is to make you a rockstar developer and/or designer with a six figure salary. We teach both development and UI/UX\",\n        \"website\": \"https://moderntech.com\",\n        \"phone\": \"(222) 222-2222\",\n        \"email\": \"enroll@moderntech.com\",\n        \"user\": \"61108fae7dc38d0015b0cc05\",\n        \"createdAt\": \"2021-08-09T02:16:26.379Z\",\n        \"slug\": \"web-development-for-student\",\n        \"__v\": 0,\n        \"averageCost\": 10000,\n        \"id\": \"61108ffa7dc38d0015b0cc07\"\n    }\n}"}],"_postman_id":"07d146c8-d33e-4d4d-8376-441bb79fbedf"},{"name":"Create New Tuition","id":"d559ceeb-5188-4ece-aa97-db6a8365f1ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"ModernTech Bootcamp\",\n\t\t\"description\": \"ModernTech has one goal, and that is to make you a rockstar developer and/or designer with a six figure salary. We teach both development and UI/UX\",\n\t\t\"website\": \"https://moderntech.com\",\n\t\t\"phone\": \"(222) 222-2222\",\n\t\t\"email\": \"enroll@moderntech.com\",\n\t\t\"address\": \"220 Pawtucket St, Lowell, MA 01854\",\n\t\t\"careers\": [\"Web Development\", \"UI/UX\", \"Mobile Development\"],\n\t\t\"housing\": false,\n\t\t\"jobAssistance\": true,\n\t\t\"jobGuarantee\": false,\n\t\t\"acceptGi\": true\n}"},"url":"{{URL}}/api/v1/bootcamps","description":"<p>Add new bootcamp to database. Must be authenticated and must be publisher or admin. Only 1 bootcamp allowed per publisher</p>\n","urlObject":{"path":["api","v1","bootcamps"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d559ceeb-5188-4ece-aa97-db6a8365f1ea"},{"name":"Update Tuition","id":"cd1df5ea-9944-468c-9062-aac346fde290","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"careers\": [\"Web Development\", \"UI/UX\"]\n}"},"url":"{{URL}}/api/v1/bootcamps/5d713a66ec8f2b88b8f830b8","description":"<p>Update single bootcamp in database</p>\n","urlObject":{"path":["api","v1","bootcamps","5d713a66ec8f2b88b8f830b8"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd1df5ea-9944-468c-9062-aac346fde290"},{"name":"Delete Tuition","id":"7153df88-83ad-46ea-b66f-9b561d36b69a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"url":"{{URL}}/api/v1/bootcamps/5d713a66ec8f2b88b8f830b8","description":"<p>Delete bootcamp from database</p>\n","urlObject":{"path":["api","v1","bootcamps","5d713a66ec8f2b88b8f830b8"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7153df88-83ad-46ea-b66f-9b561d36b69a"}],"id":"5e9eda6b-9d5f-4a43-a22f-20e3cf579ea0","description":"<p>Bootcamps CRUD functionality</p>\n","_postman_id":"5e9eda6b-9d5f-4a43-a22f-20e3cf579ea0"},{"name":"Courses","item":[{"name":"Get All Courses","id":"80a78818-f0ab-4468-9ca3-a93040d780d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/courses/","description":"<p>Get all courses in database</p>\n","urlObject":{"path":["api","v1","courses",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80a78818-f0ab-4468-9ca3-a93040d780d5"},{"name":"Get Courses For Tuition","id":"9f02459c-255e-4cfa-868d-a2a211341d3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bootcamps/5d713995b721c3bb38c1f5d0/courses","description":"<p>Get the specific courses for a bootcamp</p>\n","urlObject":{"path":["api","v1","bootcamps","5d713995b721c3bb38c1f5d0","courses"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f02459c-255e-4cfa-868d-a2a211341d3e"},{"name":"Get Single Course","id":"c812c6d6-c3b8-46ee-aee9-60131c2ba49a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/courses/5d725c84c4ded7bcb480eaa0","description":"<p>Get a single course by its ID</p>\n","urlObject":{"path":["api","v1","courses","5d725c84c4ded7bcb480eaa0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c812c6d6-c3b8-46ee-aee9-60131c2ba49a"},{"name":"Create Course","id":"770f3c81-c51b-4966-98ef-9120ce11572c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Full Stack Web Development\",\n    \"description\": \"In this course you will learn full stack web development, first learning all about the frontend with HTML/CSS/JS/Vue and then the backend with Node.js/Express/MongoDB\",\n    \"weeks\": 12,\n    \"tuition\": 10000,\n    \"minimumSkill\": \"intermediate\",\n    \"scholarhipsAvailable\": true\n}"},"url":"{{URL}}/api/v1/bootcamps/5d725a1b7b292f5f8ceff788/courses","description":"<p>Create a course for a specific bootcamp</p>\n","urlObject":{"path":["api","v1","bootcamps","5d725a1b7b292f5f8ceff788","courses"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"770f3c81-c51b-4966-98ef-9120ce11572c"},{"name":"Update Course","id":"413a18f8-628c-4227-aaef-f3a17e8096e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"tuition\": 13000,\n\t\"minimumSkill\": \"advanced\"\n}"},"url":"{{URL}}/api/v1/courses/5d725c84c4ded7bcb480eaa0","description":"<p>Update course in database</p>\n","urlObject":{"path":["api","v1","courses","5d725c84c4ded7bcb480eaa0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"413a18f8-628c-4227-aaef-f3a17e8096e1"},{"name":"Delete Course","id":"3ffd658b-5658-48f0-9404-2a71867c2204","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"url":"{{URL}}/api/v1/courses/5d725c84c4ded7bcb480eaa0","description":"<p>Remove course from database</p>\n","urlObject":{"path":["api","v1","courses","5d725c84c4ded7bcb480eaa0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ffd658b-5658-48f0-9404-2a71867c2204"}],"id":"0156b647-e1dd-4af5-a5e7-4a5ab34109a9","description":"<p>Create, read, update and delete courses</p>\n","_postman_id":"0156b647-e1dd-4af5-a5e7-4a5ab34109a9"},{"name":"Authentication","item":[{"name":"Register User","event":[{"listen":"test","script":{"id":"2089e40c-ab82-43bc-90aa-683b8485c46e","exec":["pm.environment.set(\"TOKEN\", pm.response.json().token)"],"type":"text/javascript"}}],"id":"8772aad1-2040-43d1-8576-ff8696d121f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"John Doe\",\n\t\"email\": \"john@gmail.com\",\n\t\"password\": \"123456\",\n\t\"role\": \"publisher\"\n}"},"url":"{{URL}}/api/v1/auth/register","description":"<p>Add user to database with encrypted password</p>\n","urlObject":{"path":["api","v1","auth","register"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8772aad1-2040-43d1-8576-ff8696d121f4"},{"name":"Login User","event":[{"listen":"test","script":{"id":"10861dd7-af32-401c-ab66-21fe2f8274e5","exec":["pm.environment.set(\"TOKEN\", pm.response.json().token)"],"type":"text/javascript"}}],"id":"fcde6cf7-a7d0-4c6f-8a58-b2a7446df3ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"john@gmail.com\",\n\t\"password\": \"123456\"\n}"},"url":"{{URL}}/api/v1/auth/login","urlObject":{"path":["api","v1","auth","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fcde6cf7-a7d0-4c6f-8a58-b2a7446df3ae"},{"name":"Get Logged In User via Token","id":"d83dd647-94d9-4a57-b4f9-51663faf3099","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"url":"{{URL}}/api/v1/auth/me","urlObject":{"path":["api","v1","auth","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d83dd647-94d9-4a57-b4f9-51663faf3099"},{"name":"Forgot Password","id":"1e0dd77f-aaa1-48d0-982e-0001614a7941","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"kishan@gmail.com\"\n}"},"url":"{{URL}}/api/v1/auth/forgotpassword","description":"<p>Generate password token and send email</p>\n","urlObject":{"path":["api","v1","auth","forgotpassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e0dd77f-aaa1-48d0-982e-0001614a7941"},{"name":"Reset Password","id":"67928db5-793d-4a98-b75c-827b96d2a2dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"1234567\"\n}"},"url":"{{URL}}/api/v1/auth/resetpassword/cd4739d9ae2f1b04299c99e1d4c2bfa0046caf77","description":"<p>Reset user password using token</p>\n","urlObject":{"path":["api","v1","auth","resetpassword","cd4739d9ae2f1b04299c99e1d4c2bfa0046caf77"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"67928db5-793d-4a98-b75c-827b96d2a2dc"},{"name":"Update User Details","id":"f475f6e6-bf0f-4cec-beeb-00fefcbd041a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"john@gmail.com\",\n\t\"name\": \"John Doe\"\n}"},"url":"{{URL}}/api/v1/auth/updatedetails","description":"<p>Update logged in user name and email</p>\n","urlObject":{"path":["api","v1","auth","updatedetails"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f475f6e6-bf0f-4cec-beeb-00fefcbd041a"},{"name":"Update Password","id":"cbc86fab-f59b-4982-9eb7-296ca22ce7d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"currentPassword\": \"1234567\",\n\t\"newPassword\": \"123456\"\n}"},"url":"{{URL}}/api/v1/auth/updatepassword","description":"<p>Update logged in user password, send in the body currentPassword and newPassword</p>\n","urlObject":{"path":["api","v1","auth","updatepassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbc86fab-f59b-4982-9eb7-296ca22ce7d6"},{"name":"Logout User","id":"bf13de32-640e-4879-8af3-1397981fc26a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"url":"{{URL}}/api/v1/auth/logout","description":"<p>Clear token cookie </p>\n","urlObject":{"path":["api","v1","auth","logout"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf13de32-640e-4879-8af3-1397981fc26a"}],"id":"ddf9f97f-0139-4d61-be53-696b8b392088","description":"<p>Routes for user authentication including register, login, reset password, etc</p>\n","_postman_id":"ddf9f97f-0139-4d61-be53-696b8b392088"},{"name":"Users","item":[{"name":"Get All Users","id":"3fb55d1b-f1f8-4321-960a-fcc42b13e42b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"url":"{{URL}}/api/v1/users","description":"<p>Get all users (admin)</p>\n","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3fb55d1b-f1f8-4321-960a-fcc42b13e42b"},{"name":"Get Single User","id":"d3c47efc-0ea9-4e52-8363-472d4e563d62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"url":"{{URL}}/api/v1/users/5c8a1d5b0190b214360dc038","description":"<p>get single user by id (admin)</p>\n","urlObject":{"path":["api","v1","users","5c8a1d5b0190b214360dc038"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3c47efc-0ea9-4e52-8363-472d4e563d62"},{"name":"Create User","id":"414f27e6-6799-4151-bbf3-efd1bca24e3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Nate Smith\",\n\t\"email\": \"nate@gmail.com\",\n\t\"password\": \"123456\"\n}"},"url":"{{URL}}/api/v1/users/","description":"<p>Add user to database (admin)</p>\n","urlObject":{"path":["api","v1","users",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"414f27e6-6799-4151-bbf3-efd1bca24e3d"},{"name":"Update User","id":"aa0211d8-8125-4d32-b6a5-291ee0dbd911","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Nate Johnson\"\n}"},"url":"{{URL}}/api/v1/users/5d98b144deacc60761649c61","description":"<p>Update user in database (admin)</p>\n","urlObject":{"path":["api","v1","users","5d98b144deacc60761649c61"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa0211d8-8125-4d32-b6a5-291ee0dbd911"},{"name":"Delete User","id":"f8c7db29-e666-4077-89f1-532b13aaa4ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"url":"{{URL}}/api/v1/users/5d98b144deacc60761649c61","description":"<p>Delete user from database (admin)</p>\n","urlObject":{"path":["api","v1","users","5d98b144deacc60761649c61"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"Author","value":""}],"variable":[]}},"response":[],"_postman_id":"f8c7db29-e666-4077-89f1-532b13aaa4ac"}],"id":"d006a000-9895-4904-aa86-307a4c3470c9","description":"<p>CRUD functionality for users only available to admin users</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"b7d58f5c-cceb-4454-b748-b68dc4d17859","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6ace3ed2-250d-4bd0-be2b-2d8e938bee88","type":"text/javascript","exec":[""]}}],"_postman_id":"d006a000-9895-4904-aa86-307a4c3470c9"},{"name":"Reviews","item":[{"name":"Get All Reviews","id":"9ead821e-868a-4442-b1d2-4927ca7a7ac4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews","description":"<p>Get all reviews from database and populate with bootcamp name and description</p>\n","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ead821e-868a-4442-b1d2-4927ca7a7ac4"},{"name":"Get Reviews For Bootcamp","id":"595e6cc3-42e2-426a-8825-a30fb6ae845d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bootcamps/5d725a1b7b292f5f8ceff788/reviews","description":"<p>Fetch the reviews for a specific bootcamp</p>\n","urlObject":{"path":["api","v1","bootcamps","5d725a1b7b292f5f8ceff788","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"595e6cc3-42e2-426a-8825-a30fb6ae845d"},{"name":"Get Single Review","id":"d5f14c07-117f-49a7-800d-69bec5e7e224","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews/5d7a514b5d2c12c7449be027","description":"<p>Fetch a review from database by id and populate Bootcamp name and description</p>\n","urlObject":{"path":["api","v1","reviews","5d7a514b5d2c12c7449be027"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5f14c07-117f-49a7-800d-69bec5e7e224"},{"name":"Add Review For Bootcamp","id":"351eae70-4829-4661-b3c0-8191cdde1d9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Nice Bootcamp\",\n\t\"text\": \"I learned a lot\",\n\t\"rating\": 8\n}"},"url":"{{URL}}/api/v1/bootcamps/5d725a1b7b292f5f8ceff788/reviews","description":"<p>Insert review for a specific bootcamp</p>\n","urlObject":{"path":["api","v1","bootcamps","5d725a1b7b292f5f8ceff788","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"351eae70-4829-4661-b3c0-8191cdde1d9d"},{"name":"Update Review","id":"38b39910-1919-4b9b-9248-d428540b85bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Had Fun\"\n}"},"url":"{{URL}}/api/v1/reviews/5da0942ee0b3f01c6d89f053","description":"<p>Update review in database</p>\n","urlObject":{"path":["api","v1","reviews","5da0942ee0b3f01c6d89f053"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"38b39910-1919-4b9b-9248-d428540b85bc"},{"name":"Delete Review","id":"c60da572-03f3-4b86-82b7-bbfa29af9c44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkN2E1MTRiNWQyYzEyYzc0NDliZTA0NSIsImlhdCI6MTU3MTA1NzkzMywiZXhwIjoxNTczNjQ5OTMzfQ.rTumDmWSKzoiGrarbCRqpVBVVfHo5su4TNagQM6c2Ts","type":"text"}],"url":"{{URL}}/api/v1/reviews/5da0942ee0b3f01c6d89f053","description":"<p>Remove review from database</p>\n","urlObject":{"path":["api","v1","reviews","5da0942ee0b3f01c6d89f053"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"Autho","value":""}],"variable":[]}},"response":[],"_postman_id":"c60da572-03f3-4b86-82b7-bbfa29af9c44"}],"id":"17883ded-f367-4389-95e1-8f9ff6ff65cd","description":"<p>Manage course reviews</p>\n","_postman_id":"17883ded-f367-4389-95e1-8f9ff6ff65cd"}]}