{"info":{"_postman_id":"4dfe5443-33dd-42af-9e39-ec2580f46826","name":"Bootcamp API","description":"<html><head></head><body><p>Backend API for the Bootcamp application to manage bootcamps, courses, reviews, users and authentication</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"12284827","collectionId":"4dfe5443-33dd-42af-9e39-ec2580f46826","publishedId":"T1LMjnmx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-08-31T09:38:49.000Z"},"item":[{"name":"Bootcamps","item":[{"name":"Get All Bootcamps","id":"c956b680-3608-4f61-93bd-24d7857e589b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bootcamps","description":"<p>Fetchs all bootcamps from database. Includes pagination, filtering, etc.</p>\n","urlObject":{"path":["api","v1","bootcamps"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c956b680-3608-4f61-93bd-24d7857e589b"},{"name":"Get Single Bootcamp","id":"5a4da434-4e08-4e46-b538-21b8edd56c5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bootcamps/5f2e5067fdc1330200ee5d6a","description":"<p>Get single Bootcamp by ID</p>\n","urlObject":{"path":["api","v1","bootcamps","5f2e5067fdc1330200ee5d6a"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a4da434-4e08-4e46-b538-21b8edd56c5b"},{"name":"Create New Bootcamp","id":"798dcc65-d066-4d20-b8df-eb53f2caa050","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.eyJpZCI6IjVmMzI0MDc1NjdkMTgyMmM2OGRhMjM3YSIsImlhdCI6MTU5NzE5Nzg0NiwiZXhwIjoxNTk5Nzg5ODQ2fQ.4jIKl5ipXE2vRpKc0vrBNl5r5qStaahy7c-EGJdqO5U","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\"name\": \"Codemaster sTEST\",\r\n\t\t\"description\": \"Is coding your passion? Codemasters will give you the skills and the tools to become the best developer possible. We specialize in full stack web development and data science\",\r\n\t\t\"website\": \"https://codemasters.com\",\r\n\t\t\"phone\": \"(333) 333-3333\",\r\n\t\t\"email\": \"enroll@codemasters.com\",\r\n\t\t\"address\": \"85 South Prospect Street Burlington VT 05405\",\r\n\t\t\"careers\": [\"Web Development\", \"Data Science\", \"Business\"],\r\n\t\t\"housing\": false,\r\n\t\t\"jobAssistance\": false,\r\n\t\t\"jobGuarantee\": false,\r\n\t\t\"acceptGi\": false\r\n}"},"url":"{{URL}}/api/v1/bootcamps","description":"<p>Add new bootcamp to database. Must be authenticated and must be publisher or admin.</p>\n","urlObject":{"path":["api","v1","bootcamps"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"798dcc65-d066-4d20-b8df-eb53f2caa050"},{"name":"Update Bootcamp","id":"0b6bb30f-b785-40e2-964b-4b6dece0967f","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"}],"body":{"mode":"raw","raw":"{\r\n    \"careers\": [\"Web Development\", \"UI/UX\"]\r\n}"},"url":"{{URL}}/api/v1/bootcamps/5f2e5067fdc1330200ee5d6a","description":"<p>Update single bootcamp in database.</p>\n","urlObject":{"path":["api","v1","bootcamps","5f2e5067fdc1330200ee5d6a"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b6bb30f-b785-40e2-964b-4b6dece0967f"},{"name":"Delete Bootcamp","id":"2321c337-9d2c-43b6-994b-998520a3f69e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/bootcamps/5f334e28d6f91627f49144cf","description":"<p>Delete bootcamp from database.</p>\n","urlObject":{"path":["api","v1","bootcamps","5f334e28d6f91627f49144cf"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2321c337-9d2c-43b6-994b-998520a3f69e"},{"name":"Get Bootcamps By Distance","id":"149f9c05-5004-44b4-ace2-252c23d26e31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bootcamps/radius/02118/10","description":"<p>Get bootcamps within a radius of a specific zipcode</p>\n","urlObject":{"path":["api","v1","bootcamps","radius","02118","10"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"149f9c05-5004-44b4-ace2-252c23d26e31"},{"name":"Upload photo","id":"d8dd59cf-eb3d-48af-965f-38476ba6157e","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"}],"body":{"mode":"raw","raw":"{\r\n    \"careers\": [\"Web Development\", \"UI/UX\"]\r\n}"},"url":"{{URL}}/api/v1/bootcamps/5d725a1b7b292f5f8ceff788/photo","description":"<p>Route to upload a bootcamp photo</p>\n","urlObject":{"path":["api","v1","bootcamps","5d725a1b7b292f5f8ceff788","photo"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8dd59cf-eb3d-48af-965f-38476ba6157e"}],"id":"a33b0d57-fe14-4e53-a6ed-bd49eea81e6c","description":"<p>Bootcamps CRUD functionality</p>\n","_postman_id":"a33b0d57-fe14-4e53-a6ed-bd49eea81e6c"},{"name":"Courses","item":[{"name":"Get All Courses","id":"80da57b3-9d16-4193-ad94-e80b471f92ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/courses","description":"<p>Get all courses in databaes</p>\n","urlObject":{"path":["api","v1","courses"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80da57b3-9d16-4193-ad94-e80b471f92ed"},{"name":"Get Courses For Bootcamp","id":"cffaf59f-eb43-49fb-809e-82dd5782a27f","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":"cffaf59f-eb43-49fb-809e-82dd5782a27f"},{"name":"Get Single Course","id":"a8e2339e-4467-45e6-a1e7-d17a7a6355b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/courses/5d725a4a7b292f5f8ceff789","description":"<p>Get a single course by its ID</p>\n","urlObject":{"path":["api","v1","courses","5d725a4a7b292f5f8ceff789"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8e2339e-4467-45e6-a1e7-d17a7a6355b5"},{"name":"Create Bootcamp Course","id":"e069719d-8cbd-401c-8a7d-e26061f8b541","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"}],"body":{"mode":"raw","raw":"{\r\n\"title\": \"Front End Web Development X\",\r\n\t\t\"description\": \"This course will provide you with all of the essentials to become a successful frontend web developer. You will learn to master HTML, CSS and front end JavaScript, along with tools like Git, VSCode and front end frameworks like Vue\",\r\n\t\t\"weeks\": 8,\r\n\t\t\"tuition\": 8000,\r\n\t\t\"minimumSkill\": \"beginner\",\r\n\t\t\"scholarhipsAvailable\": true\r\n}"},"url":"{{URL}}/api/v1/bootcamps/5d725a037b292f5f8ceff787/courses","description":"<p>Create a course for a specific bootcamp</p>\n","urlObject":{"path":["api","v1","bootcamps","5d725a037b292f5f8ceff787","courses"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e069719d-8cbd-401c-8a7d-e26061f8b541"},{"name":"Update Course","id":"137021a1-7645-4341-aaac-07941be48a62","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"}],"body":{"mode":"raw","raw":"{\r\n    \"tuition\": 13000,\r\n    \"minimumSkill\":\"advanced\"\r\n}"},"url":"{{URL}}/api/v1/courses/5d725cb9c4ded7bcb480eaa1","description":"<p>Update course in database</p>\n","urlObject":{"path":["api","v1","courses","5d725cb9c4ded7bcb480eaa1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"137021a1-7645-4341-aaac-07941be48a62"},{"name":"Delete Course","id":"4d92c5f9-b122-44b5-8c2c-0825a734dab0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"{{URL}}/api/v1/courses/5d725cb9c4ded7bcb480eaa1","description":"<p>Remove course from database</p>\n","urlObject":{"path":["api","v1","courses","5d725cb9c4ded7bcb480eaa1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d92c5f9-b122-44b5-8c2c-0825a734dab0"}],"id":"32c66006-48b2-4fbf-b99b-1456a262406b","description":"<p>CRUD courses</p>\n","_postman_id":"32c66006-48b2-4fbf-b99b-1456a262406b"},{"name":"Authentication","item":[{"name":"Register User","event":[{"listen":"test","script":{"id":"14cd7a4a-0e1e-4ae7-a170-01816ae3f884","exec":["pm.environment.set(\"TOKEN\", pm.response.json().token)"],"type":"text/javascript"}}],"id":"15d9b291-396d-43d3-842e-63783bf43e51","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":"{\r\n    \"name\": \"Dave\",\r\n    \"email\": \"dave@dave.com\",\r\n    \"password\": \"123456\",\r\n    \"role\": \"publisher\"\r\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":"15d9b291-396d-43d3-842e-63783bf43e51"},{"name":"Login User","event":[{"listen":"test","script":{"id":"74db2495-9985-4611-9baf-d750dd6e62b3","exec":["pm.environment.set(\"TOKEN\", pm.response.json().token)"],"type":"text/javascript"}}],"id":"732ec513-db4e-4fec-82bf-81867dc851d1","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":"{\r\n    \r\n    \"email\": \"john@gmail.com\",\r\n    \"password\": \"123456\"\r\n\r\n}"},"url":"{{URL}}/api/v1/auth/login","description":"<p>Login user</p>\n","urlObject":{"path":["api","v1","auth","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"732ec513-db4e-4fec-82bf-81867dc851d1"},{"name":"Get Logged In User via Token","id":"fb4737ce-4126-4760-8ae9-78cf47e111c1","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"}],"body":{"mode":"raw","raw":"{\r\n    \r\n    \"email\": \"dave@dave.com\",\r\n    \"password\": \"123456\"\r\n\r\n}"},"url":"{{URL}}/api/v1/auth/me","urlObject":{"path":["api","v1","auth","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb4737ce-4126-4760-8ae9-78cf47e111c1"},{"name":"Forgot Password","id":"c4d2874e-c7ca-4d52-9b0c-6a55aa33ef17","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":"{\r\n    \"email\":\"john@gmail.com\"\r\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":"c4d2874e-c7ca-4d52-9b0c-6a55aa33ef17"},{"name":"Reset Password","id":"b00b2204-bff8-4163-82a8-65161a71ef40","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":"{\r\n    \"password\": \"12345a\"\r\n}"},"url":"http://localhost:5000/api/v1/auth/resetpassword/0e6adc59fad243656e510b42f3ca58193c163520","description":"<p>Reset user password using token</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","v1","auth","resetpassword","0e6adc59fad243656e510b42f3ca58193c163520"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b00b2204-bff8-4163-82a8-65161a71ef40"},{"name":"Update User Details","id":"5ba5a963-61da-4243-8a13-f079d6b34ba0","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"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"john@gmail.com\",\r\n    \"name\": \"John Dough\"\r\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":"5ba5a963-61da-4243-8a13-f079d6b34ba0"},{"name":"Update Password","id":"56fe7140-6256-4259-8c56-0739f271e1e0","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"}],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\": \"12345a\",\r\n    \"newPassword\": \"123456\"\r\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":"56fe7140-6256-4259-8c56-0739f271e1e0"},{"name":"Logout User","id":"82a0b270-80ab-4a56-aa8c-75a05c5ebaf4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \r\n    \"email\": \"dave@dave.com\",\r\n    \"password\": \"123456\"\r\n\r\n}"},"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":"82a0b270-80ab-4a56-aa8c-75a05c5ebaf4"}],"id":"5e688b0f-6335-4a71-a400-f1d764171e9a","description":"<p>Routes for user authentication including register, login, reset password etc.</p>\n","_postman_id":"5e688b0f-6335-4a71-a400-f1d764171e9a"},{"name":"Users","item":[{"name":"Get All Users","id":"f3c0197b-c33b-4c51-8602-0976777beeb7","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"}],"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":"f3c0197b-c33b-4c51-8602-0976777beeb7"},{"name":"Get Single User","id":"f912e20a-c33d-4c2e-b9c2-359ebbf5ec44","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"}],"url":"{{URL}}/api/v1/users/5c8a1d5b0190b214360dc039","description":"<p>Get single user by id (admin)</p>\n","urlObject":{"path":["api","v1","users","5c8a1d5b0190b214360dc039"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f912e20a-c33d-4c2e-b9c2-359ebbf5ec44"},{"name":"Create User","id":"25cde571-717e-451c-a8e5-26ceb049d517","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"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Nate Smith\",\r\n    \"email\": \"nate@gmail.com\",\r\n    \"password\": \"123456\"\r\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":"25cde571-717e-451c-a8e5-26ceb049d517"},{"name":"Update User","id":"ee45603f-16f7-4eda-9f76-4e6e00aaf3f3","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"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Nate Johnson\"\r\n}"},"url":"{{URL}}/api/v1/users/5f34adf5102ab001f4275b9f","description":"<p>Update user in database (admin)</p>\n","urlObject":{"path":["api","v1","users","5f34adf5102ab001f4275b9f"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee45603f-16f7-4eda-9f76-4e6e00aaf3f3"},{"name":"Delete User","id":"d1ff0c42-3119-4690-9ca8-2b3342a2eb27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{URL}}/api/v1/users/5f34adf5102ab001f4275b9f","description":"<p>Delete user frim database (admin)</p>\n","urlObject":{"path":["api","v1","users","5f34adf5102ab001f4275b9f"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1ff0c42-3119-4690-9ca8-2b3342a2eb27"}],"id":"7bef2cb9-2b6b-4c88-b350-2783316fbb12","description":"<p>CRUD fonctionality for users only available to admin</p>\n","_postman_id":"7bef2cb9-2b6b-4c88-b350-2783316fbb12"},{"name":"Reviews","item":[{"name":"Get All Reviews","id":"d3aef6f1-0c3a-4a0b-985d-5272c9cb369a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"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":"d3aef6f1-0c3a-4a0b-985d-5272c9cb369a"},{"name":"Get Reviews For Bootcamp","id":"904aa214-dac3-4c9c-b9fd-77c9bb27cfc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"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":"904aa214-dac3-4c9c-b9fd-77c9bb27cfc7"},{"name":"Get Single Review","id":"ac57d525-793f-4a9f-a21a-80bef2b697ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"url":"{{URL}}/api/v1/reviews/5d7a514b5d2c12c7449be026","description":"<p>Fetch a review from database by id and populate Bootcamp name and description</p>\n","urlObject":{"path":["api","v1","reviews","5d7a514b5d2c12c7449be026"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac57d525-793f-4a9f-a21a-80bef2b697ca"},{"name":"Add Review For Bootcamp","id":"3213023f-dc02-426b-adec-2b708361108c","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"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Nice Bootcamp 8\",\r\n    \"text\": \"I learnt a lot\",\r\n    \"rating\": 8\r\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":"3213023f-dc02-426b-adec-2b708361108c"},{"name":"Update Review","id":"394bd1b1-feb2-448e-821c-81344e9f9f9c","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"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Had Fun\"\r\n}"},"url":"{{URL}}/api/v1/reviews/5f34c71913f9a326082263d0","description":"<p>Update review in database</p>\n","urlObject":{"path":["api","v1","reviews","5f34c71913f9a326082263d0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"394bd1b1-feb2-448e-821c-81344e9f9f9c"},{"name":"Delete Review","id":"9241a970-6a36-46db-82e5-a70cae629d29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-type","value":"application/json","description":"<p>JSON Type</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{URL}}/api/v1/reviews/5f34c71913f9a326082263d0","description":"<p>Remove review from database</p>\n","urlObject":{"path":["api","v1","reviews","5f34c71913f9a326082263d0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9241a970-6a36-46db-82e5-a70cae629d29"}],"id":"b4472fd7-7bc1-4521-99b1-575b5f7f092e","description":"<p>Manage course reviews</p>\n","_postman_id":"b4472fd7-7bc1-4521-99b1-575b5f7f092e"}],"event":[{"listen":"prerequest","script":{"id":"d606d324-44be-4a84-9a2f-45bc9eb068cc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d2228237-7f2a-4f2b-8739-16a81503e9e1","type":"text/javascript","exec":[""]}}]}