{"info":{"_postman_id":"278e7a16-1061-4e26-8e15-ca4008963d7a","name":"Natours","description":"<html><head></head><body><p>The Natours API contains endpoints for Tours, Users, Reviews, and Bookings.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8689170","collectionId":"278e7a16-1061-4e26-8e15-ca4008963d7a","publishedId":"SVmzvwpY","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-10-01T16:32:38.000Z"},"item":[{"name":"Tours","item":[{"name":"Create New Tours","id":"a1af0c9a-3f32-45f7-82db-a6693bf9f04c","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":" {\r\n    \"name\": \"New Test tour\",\r\n    \"duration\": 1,\r\n    \"maxGroupSize\": 1,\r\n    \"difficulty\": \"easy\",\r\n    \"price\": 200,\r\n    \"summary\": \"Test Tour\",\r\n    \"imageCover\": \"tour-3-cover.jpg\"\r\n  }"},"url":"{{URL}}api/v1/tours","description":"<p>Use this endpoint to create a new tour. <br />\n(Requires login as admin or lead-guide)</p>\n","urlObject":{"path":["v1","tours"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1af0c9a-3f32-45f7-82db-a6693bf9f04c"},{"name":"Get All Tours","id":"e9e80928-d45b-4b00-8322-45bf8fa420a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{URL}}api/v1/tours?sort=-price,-ratingsAverage&fields=-name,-duration&duration[gte]=5&price[lt]=1500&ratingsAverage[gte]=4.7&limit=5","description":"<p>Use this endpoint to get all tours.</p>\n","urlObject":{"path":["v1","tours"],"host":["{{URL}}api"],"query":[{"description":{"content":"<p>Query for sorting the tour based on certain fields</p>\n","type":"text/plain"},"key":"sort","value":"-price,-ratingsAverage"},{"description":{"content":"<p>Query for including or excluding the fields</p>\n","type":"text/plain"},"key":"fields","value":"-name,-duration"},{"description":{"content":"<p>Query for tour duration. Supports gte, lte, gt, lt operators.</p>\n","type":"text/plain"},"key":"duration[gte]","value":"5"},{"description":{"content":"<p>Query for tour price. Supports gte, lte, gt, lt operators.</p>\n","type":"text/plain"},"key":"price[lt]","value":"1500"},{"description":{"content":"<p>Query for tour ratings. Supports gte, lte, gt, lt operators.</p>\n","type":"text/plain"},"key":"ratingsAverage[gte]","value":"4.7"},{"description":{"content":"<p>Query for tour result limit</p>\n","type":"text/plain"},"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"e9e80928-d45b-4b00-8322-45bf8fa420a1"},{"name":"Get Tour","id":"2451ec6b-0729-46ce-a11b-42677a012f2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5d89f6196b2a8b178005b002","description":"<p>Use this endpoint to get a specific tour details using its tourID.</p>\n","urlObject":{"path":["v1","tours","5d89f6196b2a8b178005b002"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2451ec6b-0729-46ce-a11b-42677a012f2b"},{"name":"Update Tours","id":"0f74c7f7-af20-44a0-9091-149e817ebb4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"maxGroupSize\": 12,\n\t\"difficulty\": \"easy\",\n\t\"imageCover\": \"tour-5-cover.jpg\",\n\t\"price\": 1497\n}"},"url":"{{URL}}api/v1/tours/5d906cba5428cc0f18a596e2","description":"<p>Use this endpoint to update an existing tour <br />(Requires login as admin or lead-guide)</p>\n","urlObject":{"path":["v1","tours","5d906cba5428cc0f18a596e2"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f74c7f7-af20-44a0-9091-149e817ebb4f"},{"name":"Delete Tours","id":"5666402d-dc89-4d3b-a54c-34740679faa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/tours/5f44fa8448d4k39709cd392","description":"<p>Use this endpoint to delete an existing tour <br />(Requires login as admin or lead-guide)</p>\n","urlObject":{"path":["v1","tours","5f44fa8448d4k39709cd392"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"5666402d-dc89-4d3b-a54c-34740679faa6"},{"name":"Get Tour Stats","id":"0683af31-86c9-4a31-a6a2-771889a7a27d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/tour-stats","description":"<p>Use this endpoint to get tour statistics based on tour difficulty.</p>\n","urlObject":{"path":["v1","tours","tour-stats"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0683af31-86c9-4a31-a6a2-771889a7a27d"},{"name":"Get Top 5 Cheap Tours","id":"98839566-d04a-4c7d-8530-ba2bb3ce2834","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/top-5-cheap","description":"<p>Use this endpoint to get the details of 5 cheapest tour.</p>\n","urlObject":{"path":["v1","tours","top-5-cheap"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"98839566-d04a-4c7d-8530-ba2bb3ce2834"},{"name":"Get Monthly Plan","id":"cb256610-37f4-4663-a503-72629ee99d41","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 monthly plan by year <br />(Requires login by admin, lead-guide, or guide)</p>\n","urlObject":{"path":["v1","tours","monthly-plan","2021"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb256610-37f4-4663-a503-72629ee99d41"},{"name":"Get Tours Within Radius","id":"a40c0e71-259f-4f04-a675-e596172a878d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/tours-within/200/center/34.098453,-118.096327/unit/mi","description":"<p>Use this endpoint to get tours within a certain radius by defining the distance (Eg. 200 miles) and the coordinates (latitude and longitude).</p>\n","urlObject":{"path":["v1","tours","tours-within","200","center","34.098453,-118.096327","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a40c0e71-259f-4f04-a675-e596172a878d"},{"name":"Get Distances to Tours From Point","id":"84b3db83-3bdd-440a-a74d-6191ecb4a8a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/distances/34.098453,-118.096327/unit/mi","description":"<p>Use this endpoint to get all tours distance from the specified coordinates.</p>\n","urlObject":{"path":["v1","tours","distances","34.098453,-118.096327","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"84b3db83-3bdd-440a-a74d-6191ecb4a8a7"}],"id":"358f63a6-4cdc-4df6-ac3d-dd55376085a7","description":"<p><strong>You can get all tours, create new ones, and edit and delete tour.</strong> There are also special endpoints for some special requirements.</p>\n","event":[{"listen":"prerequest","script":{"id":"d4733346-fbcd-4975-a049-6b178e890698","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ccd1fddf-9299-491a-83cd-e5d066f96a2c","type":"text/javascript","exec":[""]}}],"_postman_id":"358f63a6-4cdc-4df6-ac3d-dd55376085a7"},{"name":"Users","item":[{"name":"Get All User","id":"68a7f915-de2e-49f9-97a8-ef060042b3a4","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 get all users. <br />(Requires login as admin)</p>\n","urlObject":{"path":["v1","users"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"68a7f915-de2e-49f9-97a8-ef060042b3a4"},{"name":"Get User","id":"c029e2ca-8da3-47d0-a77d-7bbe4a24493a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{URL}}api/v1/users/5d673460b22asd123g6fhfh8","description":"<p>Use this endpoint to get details of a certain user. <br />(Requires login as admin)</p>\n","urlObject":{"path":["v1","users","5d673460b22asd123g6fhfh8"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c029e2ca-8da3-47d0-a77d-7bbe4a24493a"},{"name":"Update User","id":"e862239d-a28c-46dd-bb0a-a573011a775d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Margareth\"\n}"},"url":"{{URL}}api/v1/users/5d837610a15aca189c6edcb7","description":"<p>Use this endpoint to update a user. <br />(Requires login as admin)</p>\n","urlObject":{"path":["v1","users","5d837610a15aca189c6edcb7"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e862239d-a28c-46dd-bb0a-a573011a775d"},{"name":"Delete User","id":"00fe9017-207a-434a-8156-d61c15bcaa0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/users/5d34c3d2873gr91b8c11dkd3","description":"<p>Use this endpoint to delete a user. <br />(Requires login as admin)</p>\n","urlObject":{"path":["v1","users","5d34c3d2873gr91b8c11dkd3"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"00fe9017-207a-434a-8156-d61c15bcaa0c"},{"name":"Get Current User","id":"bd568615-e513-4c54-bf44-cfe1102db52d","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 details of current logged-in user. <br />(Requires login)</p>\n","urlObject":{"path":["v1","users","me"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd568615-e513-4c54-bf44-cfe1102db52d"},{"name":"Update Current User","event":[{"listen":"test","script":{"id":"9620405f-41eb-4c46-a09c-dff939fd387a","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"2e3c2f22-0cff-4bd3-a6a4-13d9b55be62f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Aarav","type":"text"},{"key":"photo","type":"file","value":null,"disabled":true}]},"url":"{{URL}}api/v1/users/updateMe","description":"<p>Use this endpoint to update details of current logged-in user. <br />(Requires login)</p>\n","urlObject":{"path":["v1","users","updateMe"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e3c2f22-0cff-4bd3-a6a4-13d9b55be62f"},{"name":"Delete Current User","id":"68fc727f-1281-4c39-b4e5-0c4bf03ae4e8","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 deactivating the current logged-in user account temporarily. <br />(Requires login)</p>\n","urlObject":{"path":["v1","users","deleteMe"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"68fc727f-1281-4c39-b4e5-0c4bf03ae4e8"}],"id":"0b30ef00-2590-4d60-88fc-fee3a0fab4a7","description":"<p>You can get your user profile details, update and delete your account. There are also special endpoints for some special requirements which can only be accessed by the administrator.</p>\n","event":[{"listen":"prerequest","script":{"id":"0ebbf9d1-3240-404e-8f13-b95062ad4ff6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b8aef6e3-18e4-4d92-820e-7b17dede7312","type":"text/javascript","exec":[""]}}],"_postman_id":"0b30ef00-2590-4d60-88fc-fee3a0fab4a7"},{"name":"Authentication","item":[{"name":"Sign Up","event":[{"listen":"test","script":{"id":"48602640-e13a-41e0-9ab6-0a838c27af79","exec":["pm.environment.set(\"jwt\", pm.response.json().token);",""],"type":"text/javascript"}}],"id":"15752555-4f94-47a4-a732-d6cbcd9b666a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":" {\r\n    \"name\": \"Louis Juliendo\",\r\n    \"email\": \"louis@example.com\",\r\n    \"password\": \"mypass\",\r\n    \"passwordConfirm\": \"mypass\"\r\n  }"},"url":"{{URL}}api/v1/users/signup","description":"<p>Use this endpoint to create new user.</p>\n","urlObject":{"path":["v1","users","signup"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"15752555-4f94-47a4-a732-d6cbcd9b666a"},{"name":"Login","event":[{"listen":"test","script":{"id":"ea32dd0e-8a8b-4102-91f8-c8cde799b6d6","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"a5e1e331-6b12-42a9-8d7b-ce795e8884cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"alex@example.com\",\n\t\"password\": \"{{password}}\"\n}"},"url":"{{URL}}api/v1/users/login","description":"<p>Use this endpoint to log in.</p>\n","urlObject":{"path":["v1","users","login"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5e1e331-6b12-42a9-8d7b-ce795e8884cf"},{"name":"Forgot Password","event":[{"listen":"test","script":{"id":"6651efed-7311-48c0-bb1c-471e3f6ae55c","exec":["pm.environment.set(\"jwt\", pm.response.json().token);",""],"type":"text/javascript"}}],"id":"34320ca9-a39a-4e93-81d5-0d3c64c1a858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"alex@example.com\"\n}"},"url":"{{URL}}api/v1/users/forgotPassword","description":"<p>Use this endpoint to send reset password request to the specified email.</p>\n","urlObject":{"path":["v1","users","forgotPassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"34320ca9-a39a-4e93-81d5-0d3c64c1a858"},{"name":"Reset Password","event":[{"listen":"test","script":{"id":"17f36e63-3ed1-4603-9562-18c1cd195946","exec":["pm.environment.set(\"jwt\", pm.response.json().token);",""],"type":"text/javascript"}}],"id":"9613b80f-f6b7-449e-83b1-e2a0eb1b2683","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"mypass2\",\n\t\"passwordConfirm\": \"mypass2\"\n}"},"url":"{{URL}}api/v1/users/resetPassword/f823343esda9e43441fd03d86a9aa4cac52e05822342db5c86d34dad5df979babgghf1","description":"<p>Use this endpoint to reset the password by using the forgot-password link sent to your email.</p>\n","urlObject":{"path":["v1","users","resetPassword","f823343esda9e43441fd03d86a9aa4cac52e05822342db5c86d34dad5df979babgghf1"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"9613b80f-f6b7-449e-83b1-e2a0eb1b2683"},{"name":"Update Current User Password","event":[{"listen":"test","script":{"id":"68d80148-5798-4276-a5c0-a2158c498b00","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"2d234743-ef8b-4dda-9d68-44dab1d287fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"passwordCurrent\": \"mypass\",\n\t\"password\": \"mypass2\",\n\t\"passwordConfirm\": \"mypass2\"\n}"},"url":"{{URL}}api/v1/users/updateMyPassword","description":"<p>Use this endpoint to update your password. <br />(Requires login)</p>\n","urlObject":{"path":["v1","users","updateMyPassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d234743-ef8b-4dda-9d68-44dab1d287fa"}],"id":"b87cc7d6-af26-4d0a-a7dc-95755b11f78f","description":"<p>You can sign up, login, perform forgot password request, update password and reset your password.</p>\n","event":[{"listen":"prerequest","script":{"id":"e7edc094-84e5-4f25-affc-c1e29f66a52d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e78b0c2-c5aa-4750-8320-49a6e96ff3be","type":"text/javascript","exec":[""]}}],"_postman_id":"b87cc7d6-af26-4d0a-a7dc-95755b11f78f"},{"name":"Reviews","item":[{"name":"Get All Reviews","id":"4875caae-a0a7-4f69-b44b-938e83324372","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 endpoint to get all reviews. <br />(Requires login)</p>\n","urlObject":{"path":["v1","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4875caae-a0a7-4f69-b44b-938e83324372"},{"name":"Get Review","id":"9794f155-be8b-46e8-ae2b-8434733f50dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/reviews/5d879f206d3b95273093c4fa","description":"<p>Use this endpoint to get a specific review. <br />(Requires login)</p>\n","urlObject":{"path":["v1","reviews","5d879f206d3b95273093c4fa"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"9794f155-be8b-46e8-ae2b-8434733f50dd"},{"name":"Create New Review","id":"251079cf-0e85-46dc-953c-c6ad8be2ae9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"review\":\"Amazing!\",\n\t\"rating\": 4,\n\t\"tour\": \"5c22ms8cl3afda39932c2124\",\n\t\"user\": \"5s894kg09373661bccb81aa4\"\n}"},"url":"{{URL}}api/v1/reviews","description":"<p>Use this endpoint to create a new review. <br />(Requires login as user)</p>\n","urlObject":{"path":["v1","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"251079cf-0e85-46dc-953c-c6ad8be2ae9d"},{"name":"Update Review","id":"3bb0e6d6-0063-41ab-9085-05a0d0f6548e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"rating\": 2\n}"},"url":"{{URL}}api/v1/reviews/5d89f80211557e1af8c08539","description":"<p>Use this endpoint to update a review. <br />(Requires login as user or admin)</p>\n","urlObject":{"path":["v1","reviews","5d89f80211557e1af8c08539"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3bb0e6d6-0063-41ab-9085-05a0d0f6548e"},{"name":"Delete Review","id":"6a1f7c10-4a9d-47c9-bc96-569712ab4d30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/reviews/5d89f748e835c81f685bc5a3","description":"<p>Use this endpoint to delete a review. <br />(Requires login as user or admin)</p>\n","urlObject":{"path":["v1","reviews","5d89f748e835c81f685bc5a3"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a1f7c10-4a9d-47c9-bc96-569712ab4d30"}],"id":"0d4e3c0d-7a30-450c-8c7a-1643bc206d79","description":"<p>You can get all reviews or a specific review, create a new one, update and delete the review. These endpoints can only be used by administrator or lead-guide.</p>\n","event":[{"listen":"prerequest","script":{"id":"b2ee822f-22cf-4730-9d70-170662749db8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"09e35448-1665-4159-b8e1-dd95d4ce193f","type":"text/javascript","exec":[""]}}],"_postman_id":"0d4e3c0d-7a30-450c-8c7a-1643bc206d79"},{"name":"Tours/Review","item":[{"name":"Create New Review on Tour","id":"d2911d6b-087f-4b89-8893-d23dd5a2a30c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"rating\":2.5,\n\t\"review\": \"Not a nice tour\"\n}"},"url":"{{URL}}api/v1/tours/5d43f619632af8b1405b33002/reviews","description":"<p>Use this endpoint to create a new review on a tour. <br />(Requires login as user or admin)</p>\n","urlObject":{"path":["v1","tours","5d43f619632af8b1405b33002","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2911d6b-087f-4b89-8893-d23dd5a2a30c"},{"name":"Get All Reviews on Tour","id":"e37e36e6-f381-44d8-a51c-7502f5823c77","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 to get all reviews on a tour. <br />(Requires login as user or admin)</p>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c2951","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e37e36e6-f381-44d8-a51c-7502f5823c77"}],"id":"69a53290-b48e-406f-a9dc-815bc15ab321","description":"<p>You can create a new review for a specific tour and get all reviews associated with a tour. These endpoints can only be accessed by administrator or lead-guide.</p>\n","event":[{"listen":"prerequest","script":{"id":"99e066a8-5af0-4071-bf23-73b5f29276dd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e5e4976d-708d-43eb-bbec-c1f58a103dd8","type":"text/javascript","exec":[""]}}],"_postman_id":"69a53290-b48e-406f-a9dc-815bc15ab321"},{"name":"Bookings","item":[{"name":"Get All Bookings","id":"34467d01-2e72-42a8-b199-e0f4207ab54b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/bookings","description":"<p>Use this endpoint to get all tour bookings. <br />(Requires login as admin or lead-guide)</p>\n","urlObject":{"path":["v1","bookings"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"34467d01-2e72-42a8-b199-e0f4207ab54b"},{"name":"Get Booking","id":"759807a0-5857-4d6d-995b-8e0a846cb8ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/bookings/5d91a149e0dc65067883cc14","description":"<p>Use this endpoint to get a specific tour booking. <br />(Requires login as admin or lead-guide)</p>\n","urlObject":{"path":["v1","bookings","5d91a149e0dc65067883cc14"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"759807a0-5857-4d6d-995b-8e0a846cb8ed"}],"id":"60a8fa62-f1cb-48a3-82c9-8625c6216e92","description":"<p>You can get all bookings or a specific one. These endpoints can only be accessed by administrator or lead-guide.</p>\n","event":[{"listen":"prerequest","script":{"id":"d33363a0-fc72-4587-8f9a-4b3f50453d61","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"36555a7e-da73-4b8f-855e-d47736661c04","type":"text/javascript","exec":[""]}}],"_postman_id":"60a8fa62-f1cb-48a3-82c9-8625c6216e92"}],"event":[{"listen":"prerequest","script":{"id":"c4045d03-c40c-478b-bd91-383fc7c93ad0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fb49b8c9-1781-41b7-aac8-e9fd9a911e84","type":"text/javascript","exec":[""]}}]}