{"info":{"_postman_id":"b80ed21a-07cb-4cc3-94ae-9b8705015cd7","name":"Tours-api","description":"<html><head></head><body><p>This Tours API contains endpoints for Tours, Users and Review. JWT Web token was used for encryption and authentification. </p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8427436","collectionId":"b80ed21a-07cb-4cc3-94ae-9b8705015cd7","publishedId":"Szzn5Fnw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-06-30T17:50:54.000Z"},"item":[{"name":"Tours","item":[{"name":"Get all tours","id":"3c9a292d-d7b7-4d7c-9539-9ee172cbc1b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours","description":"<p>Use this endpoint to get all tours.</p>\n","urlObject":{"path":["v1","tours"],"host":["{{URL}}api"],"query":[{"disabled":true,"key":"sort","value":"-price,-ratingsAverage"},{"disabled":true,"key":"fields","value":"name,duration,price,difficulty"},{"disabled":true,"key":"limit","value":"5"},{"disabled":true,"key":"sort","value":"-ratingsAverage,price"},{"disabled":true,"key":"price[lt]","value":"1000"},{"disabled":true,"key":"ratingsAverage[gte]","value":"4.7"}],"variable":[]}},"response":[],"_postman_id":"3c9a292d-d7b7-4d7c-9539-9ee172cbc1b1"},{"name":"Get one tour","id":"bfea349e-ea5f-4b1c-aee8-2b7b7cd68e61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{URL}}api/v1/tours/5eeab335573f2f18143378ec","description":"<p>Use this endpoint to get one tour.</p>\n","urlObject":{"path":["v1","tours","5eeab335573f2f18143378ec"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfea349e-ea5f-4b1c-aee8-2b7b7cd68e61"},{"name":"Get Top 5 Cheap Tours","id":"6aa271e7-dd0f-4660-a823-b239f52323ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours/top-5-cheap","description":"<p>Use this endpoint to get a list of top 5 cheap tours.</p>\n","urlObject":{"path":["v1","tours","top-5-cheap"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6aa271e7-dd0f-4660-a823-b239f52323ed"},{"name":"Get Monthly Plan","id":"49252189-f119-4135-8685-98ea595bae31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours/tour-stats","description":"<p>Use this endpoint to create a monthy travel plan.</p>\n","urlObject":{"path":["v1","tours","tour-stats"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"49252189-f119-4135-8685-98ea595bae31"},{"name":"Get Tours Stats","id":"c6948445-7161-4b36-877b-1a75d5eaa06e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours/monthly-plan/2021","description":"<p>Use this endpoint to get all tours statistics.</p>\n","urlObject":{"path":["v1","tours","monthly-plan","2021"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6948445-7161-4b36-877b-1a75d5eaa06e"},{"name":"Get Tours Within Radius","id":"167b3b61-f73f-47a2-af00-ba3c2fec3046","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/tours-within/200/center/40.6117039,-74.0182606/unit/mi","description":"<p>Use this endpoint to get all tours within a particular radius.</p>\n","urlObject":{"path":["v1","tours","tours-within","200","center","40.6117039,-74.0182606","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"167b3b61-f73f-47a2-af00-ba3c2fec3046"},{"name":"Get Distances to Tours From Point","id":"5a5dc6bc-8047-454c-9b1d-0e3dd12dea28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/distances/40.6117039,-74.0182606/unit/km","description":"<p>Use this endpoint to get all tours within a particular radius from the specified point.</p>\n","urlObject":{"path":["v1","tours","distances","40.6117039,-74.0182606","unit","km"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a5dc6bc-8047-454c-9b1d-0e3dd12dea28"},{"name":"Create a new tour","id":"6bb65de4-bd71-4234-93e1-d599ce103711","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\":\"My Test Tour for Compass Mongo\",\n\t\"duration\":5,\n\t\"maxGroupSize\":25,\n\t\"difficulty\":\"easy\",\n\t\"ratingsAverage\":4.7,\n\t\"ratingsQuantity\":37,\n\t\"price\":397,\n\t\"summary\":\"Breathtaking hike through the Canadian Banff National Park\",\n\t\"description\":\"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n\t\"imageCover\":\"tour-1-cover.jpg\",\n\t\"images\":[\"tour-1-1.jpg\",\"tour-1-2.jpg\",\"tour-1-3.jpg\"],\"startDates\":[\"2021-04-25,10:00\",\"2021-07-20,10:00\",\"2021-10-05,10:00\"]\n}"},"url":"{{URL}}api/v1/tours","description":"<p>Use this endpoint to create a new tour.</p>\n","urlObject":{"path":["v1","tours"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bb65de4-bd71-4234-93e1-d599ce103711"},{"name":"Update tour","id":"b3789487-e9bf-4e3a-85c0-ec2fe662bb25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"guides\": [\n\t\t\"5ee3dd2ec57c18551ce1ef17\",\n\t\t\"5ee282361464074790c92d48\"\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c2951","description":"<p>Use this endpoint to update a tour.</p>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c2951"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3789487-e9bf-4e3a-85c0-ec2fe662bb25"},{"name":"Delete tour","id":"cd39ee21-97ae-4519-9620-d3a53befbc11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/tours/","description":"<p>Use this endpoint to delete a tour.</p>\n","urlObject":{"path":["v1","tours",""],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd39ee21-97ae-4519-9620-d3a53befbc11"}],"id":"39c8105e-ec08-4156-99fb-65d3fa113d32","description":"<p>You can create, get, delete and update tour/tours and more.</p>\n","event":[{"listen":"prerequest","script":{"id":"d1f67a26-eb7c-43b6-877b-78a1b9e33ba9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6e15f509-4cca-4e4e-adff-7aa44e085764","type":"text/javascript","exec":[""]}}],"_postman_id":"39c8105e-ec08-4156-99fb-65d3fa113d32"},{"name":"Authentication ","item":[{"name":"Forgot Password","id":"e125bc56-f520-4fe7-9098-cccad6a0e684","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"admin4@admin.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/forgotPassword","description":"<p>Use this endpoint to restore a user password.</p>\n","urlObject":{"path":["v1","users","forgotPassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e125bc56-f520-4fe7-9098-cccad6a0e684"},{"name":"Login","event":[{"listen":"test","script":{"id":"fc57692b-fc7f-4a21-a9ad-1ac8f49fd0ba","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"8dbf1242-e580-4870-98d7-fc3184e49adb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"loulou@example.com\",\n\t\"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/login","description":"<p>Use this endpoint to login a user.</p>\n","urlObject":{"path":["v1","users","login"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"8dbf1242-e580-4870-98d7-fc3184e49adb"},{"name":"Sign Up","event":[{"listen":"test","script":{"id":"05602b47-0878-4ef4-97e7-a32554a704b3","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"20c7aad1-db27-43f3-bbc3-9e8c4cec387a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Bella\", \n\t\"email\": \"bella@bella.com\",\n\t\"password\": \"12345678\",\n\t\"passwordConfirm\": \"12345678\",\n\t\"role\": \"user\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/signup","description":"<p>Use this endpoint to create a new user.</p>\n","urlObject":{"path":["v1","users","signup"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"20c7aad1-db27-43f3-bbc3-9e8c4cec387a"},{"name":"Update User Password","event":[{"listen":"test","script":{"id":"fb349745-af4c-48eb-80aa-b206889d581d","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"1f89a700-702e-4eb3-88e4-03019d7ef92b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"passwordCurrent\": \"newpass123\",\n\t\"password\": \"newpass123\", \n\t\"passwordConfirm\": \"newpass123\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/updateMyPassword","description":"<p>Use this endpoint to update user's password.</p>\n","urlObject":{"path":["v1","users","updateMyPassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f89a700-702e-4eb3-88e4-03019d7ef92b"},{"name":"Reset Password","event":[{"listen":"test","script":{"id":"4ed2c2c3-f673-446e-872b-abf84d754fd5","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"fa79d6c2-a2c9-47ed-91af-d5d9ebc1dabd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"password\": \"newpass123\",\n\t\"passwordConfirm\": \"newpass123\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/resetPassword/3a72c0453cf0cc9804f594700d0c23eefb153c99a28233729dbb06358099cc71","description":"<p>User this endpoint to reset user's password.</p>\n","urlObject":{"path":["v1","users","resetPassword","3a72c0453cf0cc9804f594700d0c23eefb153c99a28233729dbb06358099cc71"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa79d6c2-a2c9-47ed-91af-d5d9ebc1dabd"}],"id":"30eb39c3-5668-48ff-81c6-a02f48c0891a","description":"<p>You can set/update/reset password, login, sign up and more.</p>\n","event":[{"listen":"prerequest","script":{"id":"257340c0-d11a-47cc-9c56-d18996780a95","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b1715aa7-b61b-48ee-b02b-7f19332aedd5","type":"text/javascript","exec":[""]}}],"_postman_id":"30eb39c3-5668-48ff-81c6-a02f48c0891a"},{"name":"Users","item":[{"name":"Get User","id":"f238c9df-4a30-4ee2-b777-01550c221e32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/users/2","description":"<p>Use this endpoint to find a user.</p>\n","urlObject":{"path":["v1","users","2"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"f238c9df-4a30-4ee2-b777-01550c221e32"},{"name":"Get All Users","id":"3cbe2979-8457-4458-9466-9cdb0183c731","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users","description":"<p>Use this endpoint to find all users.</p>\n","urlObject":{"path":["v1","users"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3cbe2979-8457-4458-9466-9cdb0183c731"},{"name":"Get Current User","id":"92269b0b-b2d4-4f5b-bfff-4b9337ff6788","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users/me","description":"<p>Use this endpoint to get a currently logged in user.</p>\n","urlObject":{"path":["v1","users","me"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"92269b0b-b2d4-4f5b-bfff-4b9337ff6788"},{"name":"Update Current User","event":[{"listen":"test","script":{"id":"249657f1-5ac6-44b9-b06f-b6e819700be6","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"e386659e-c32b-4848-939a-fd42b043c65e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"David D\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/updateMe","description":"<p>Use this endpoint to update a currently logged in user.</p>\n","urlObject":{"path":["v1","users","updateMe"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e386659e-c32b-4848-939a-fd42b043c65e"},{"name":"Update User","id":"f2c98a82-29b5-4d29-b96f-912d374b8b20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Administrator\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/5ee282361464074790c92d48","description":"<p>Use this endpoint to update a user.</p>\n","urlObject":{"path":["v1","users","5ee282361464074790c92d48"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2c98a82-29b5-4d29-b96f-912d374b8b20"},{"name":"Delete User","id":"fc381962-d426-4b69-a2f9-5cd205ae778e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}api/v1/users/5edab00acbadc754ac388a1e","description":"<p>Use this endpoint to delete a user.</p>\n","urlObject":{"path":["v1","users","5edab00acbadc754ac388a1e"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc381962-d426-4b69-a2f9-5cd205ae778e"},{"name":"Delete Current User","id":"29b4612e-0deb-4f4f-8c30-5c97aaad455c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/users/deleteMe","description":"<p>Use this endpoint to delete a currently logged in user.</p>\n","urlObject":{"path":["v1","users","deleteMe"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"29b4612e-0deb-4f4f-8c30-5c97aaad455c"}],"id":"866ced0f-ab15-44fe-a5af-e63fee70be15","description":"<p>You can get, update and delete user/users and more and more.</p>\n","event":[{"listen":"prerequest","script":{"id":"387408e1-78ab-4f53-96fb-7dae2b2d2d79","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7e857687-55a5-4579-8a3e-fe802fa79b58","type":"text/javascript","exec":[""]}}],"_postman_id":"866ced0f-ab15-44fe-a5af-e63fee70be15"},{"name":"Reviews","item":[{"name":"Get All Reviews","id":"55e08573-575c-4738-ae56-9e612c6e9666","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/reviews","description":"<p>Use this endpont to get all reviews.</p>\n","urlObject":{"path":["v1","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"55e08573-575c-4738-ae56-9e612c6e9666"},{"name":"Get Review","id":"3397f799-47f5-4801-a3cc-dd9ba6989b46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/reviews/5ee3f3c327f1a5543868167c","description":"<p>Use this endpoint to get a review.</p>\n","urlObject":{"path":["v1","reviews","5ee3f3c327f1a5543868167c"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3397f799-47f5-4801-a3cc-dd9ba6989b46"},{"name":"Post a New Review","id":"6de66731-6032-4d17-8444-4100cc094a4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"review\": \"terrible\",\r\n    \"rating\": 4\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/5eeab335573f2f18143378ec/reviews","description":"<p>Use this endpoint to post a new review.</p>\n","urlObject":{"path":["v1","tours","5eeab335573f2f18143378ec","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6de66731-6032-4d17-8444-4100cc094a4c"},{"name":"Update Review","id":"53f64226-3d76-455c-9eac-c380323b8b60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews/5eeab6c40e6cc423845d354a","description":"<p>Use this endpoint to update a review.</p>\n","urlObject":{"path":["v1","reviews","5eeab6c40e6cc423845d354a"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"53f64226-3d76-455c-9eac-c380323b8b60"},{"name":"Delete Review","id":"3c250de4-5feb-4952-9492-b69eab820fd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/reviews/5eebcbd0e2cde919286b6bcb","description":"<p>Use this endpoint to delete a review.</p>\n","urlObject":{"path":["v1","reviews","5eebcbd0e2cde919286b6bcb"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c250de4-5feb-4952-9492-b69eab820fd8"}],"id":"538de779-3406-4fd9-8a72-e11c07c4e026","description":"<p>You can create, get, update and delete review/reviews and more.</p>\n","event":[{"listen":"prerequest","script":{"id":"20980903-bc9f-446a-8e97-f0c308ce09e0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1df46797-d1e8-4a46-bde9-abcba71b324b","type":"text/javascript","exec":[""]}}],"_postman_id":"538de779-3406-4fd9-8a72-e11c07c4e026"},{"name":"Tours/Reviews","item":[{"name":"Get All Reviews on Tour","id":"1b646e4b-4921-4ef4-8f91-2ce743c7c869","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c2951/reviews","description":"<p>Use this endpoint tp get all reviews for a particular tour.</p>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c2951","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b646e4b-4921-4ef4-8f91-2ce743c7c869"},{"name":"Create New Review on Tour","id":"5a78eea2-5d06-4ac0-a38a-db4150b24675","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\": 3,\r\n    \"review\": \"Average!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c2951/reviews","description":"<p>Use this endpoint to create a new review for a particular tour.</p>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c2951","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a78eea2-5d06-4ac0-a38a-db4150b24675"}],"id":"f1af92ab-2801-4f0e-b1c2-cde06050ff97","description":"<p>You can get all reviews on tour and create new review on tour and more. </p>\n","event":[{"listen":"prerequest","script":{"id":"fcfe2424-7f96-48d4-af81-c0670475e5a8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"16351fd0-a56c-45d4-8fa3-8280dd0d12cb","type":"text/javascript","exec":[""]}}],"_postman_id":"f1af92ab-2801-4f0e-b1c2-cde06050ff97"}],"event":[{"listen":"prerequest","script":{"id":"b7e2d791-c6a4-4d46-bd99-b7e2cd3aeecd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e655eecd-4b65-4eb7-9fa2-5b6419bf287f","type":"text/javascript","exec":[""]}}]}