{"info":{"_postman_id":"a26270aa-0c38-4a64-8d38-5c301861e89a","name":"Natours v1","description":"<html><head></head><body><p>The Natours API contains Tours,Users,Reviews,Authenticatio etc...</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"22641994","collectionId":"a26270aa-0c38-4a64-8d38-5c301861e89a","publishedId":"2s8Z75SVHz","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-16T03:41:25.000Z"},"item":[{"name":"tours","item":[{"name":"Get All Tours","id":"e82e7a07-d133-4fe0-add6-4b9fc471a047","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours","description":"<p>Use this endpoint to get all tours and their reviews</p>\n","urlObject":{"path":["api","v1","tours"],"host":["{{URL}}"],"query":[{"disabled":true,"description":{"content":"<p>select specified fields</p>\n","type":"text/plain"},"key":"fields","value":"name,price,ratingsAverage"},{"disabled":true,"description":{"content":"<p>sort by given key</p>\n","type":"text/plain"},"key":"sort","value":"-ratingsAverage"},{"disabled":true,"description":{"content":"<p>display limit of result </p>\n","type":"text/plain"},"key":"limit","value":"5"},{"disabled":true,"key":"price[gte]","value":"2000"}],"variable":[]}},"response":[],"_postman_id":"e82e7a07-d133-4fe0-add6-4b9fc471a047"},{"name":"Get Tour","id":"6661db4e-3774-4e7a-8d94-0d266f8ee169","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2951","description":"<p>add tour id and simply get details about that tour</p>\n","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2951"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6661db4e-3774-4e7a-8d94-0d266f8ee169"},{"name":"create new tour","id":"0ac71efd-4715-4d22-b528-6c9eeedb1d45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"new testing tour\",\r\n    \"price\":500,\r\n    \"ratingAverage\":4.7,\r\n    \"duration\":5,\r\n    \"imageCover\":\"testing\",\r\n    \"maxGroupSize\":3,\r\n    \"summary\":\"testing\",\r\n    \"difficulty\":\"easy\",\r\n    \"guides\":[\r\n        \"63b6cdc9dca22130bc95a1a2\",\r\n        \"63b6dda2cdad99490c480410\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/","description":"<p>add new tours , This end point work only admin and lead-guide</p>\n","urlObject":{"path":["api","v1","tours",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ac71efd-4715-4d22-b528-6c9eeedb1d45"},{"name":"update tour","id":"1a3c8e5d-7660-4976-9826-9c12c0744354","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"The Forest Hiker\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2951","description":"<p>update tour detail this end point work only admin</p>\n","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2951"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a3c8e5d-7660-4976-9826-9c12c0744354"},{"name":"delete tour","id":"afc829f8-3bbe-4a63-8ec3-eb1911db0340","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/tours/63b7a10d14834f1bc4db6104","description":"<p>delete tour this end point work only admin</p>\n","urlObject":{"path":["api","v1","tours","63b7a10d14834f1bc4db6104"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"afc829f8-3bbe-4a63-8ec3-eb1911db0340"},{"name":"Tour-Stats","id":"4d6a421b-38df-4cf9-8ca9-3275a94845a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/tour-stats","description":"<p>StartFragment</p>\n<p>Get tour stats based on their difficulty, like the average rating of all easy tours so you can compare them with the hard and medium ones.</p>\n<p>These are all the properties that you can see stats of:</p>\n<ol>\n<li>numTours</li>\n<li>numRatings</li>\n<li>avgRating</li>\n<li>avgPrice</li>\n<li>minPrice</li>\n<li>maxPrice</li>\n</ol>\n","urlObject":{"path":["api","v1","tours","tour-stats"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d6a421b-38df-4cf9-8ca9-3275a94845a7"},{"name":"Get monthly plan","id":"922bb8fb-fb36-491f-96c6-285d45962749","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/monthly-tour/2021","description":"<p>StartFragment</p>\n<p>Get all the tours starting in a given year. You will also see in which month of that year they start, nicely organized.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","tours","monthly-tour","2021"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"922bb8fb-fb36-491f-96c6-285d45962749"},{"name":"get Top 5Cheap","id":"2c22932b-1eb9-4323-8ba5-015ef0cdfccc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/top-5-cheap","urlObject":{"path":["api","v1","tours","top-5-cheap"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c22932b-1eb9-4323-8ba5-015ef0cdfccc"},{"name":"Get Tours Within Radius","id":"14fb9c4e-d829-4658-8c56-f074ba8e25c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/tours-within/400/center/34.040554, -118.276215/unit/mi","description":"<p>Get tours whose <code>startLocation</code> is within a provided radius.</p>\n<p>Given the following route: <code>(/tours-within/:distance/center/:latlng/unit/:unit)</code></p>\n<ol>\n<li>Replace <code>:distance</code> with the distance that you want to cover, this will be the radius of your search.</li>\n<li>Provide the latitude and longitude of your starting point in <code>:latlng</code>, separated by commas.</li>\n<li>Finally, specify your unit in <code>:unit</code>. The default is km, but you can also say 'mi' for miles. This is the unit of the distance you specified in step 1.</li>\n</ol>\n","urlObject":{"path":["api","v1","tours","tours-within","400","center","34.040554, -118.276215","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"14fb9c4e-d829-4658-8c56-f074ba8e25c9"},{"name":"Get Distances","id":"5730629a-f9f7-4bc7-a78d-db8b4743d587","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/distances/34.040554, -118.276215/unit/mi","description":"<p>StartFragment</p>\n<p>Get tours in order of nearest to farthest from a specified point. You will also get the distance between them and that specified point.</p>\n<p>Given the following route: <code>(/distances/:latlng/unit/:unit)</code></p>\n<ol>\n<li>Replace <code>:distances</code> with the latitude and longitude of the point where you want to start your search.</li>\n<li>Specify the unit in which you want to get your results in <code>:unit</code>, it can be either 'mi' or 'km', which is the default.</li>\n</ol>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","tours","distances","34.040554, -118.276215","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5730629a-f9f7-4bc7-a78d-db8b4743d587"}],"id":"1c0d4e91-a8db-4704-a27b-0115bce978e2","description":"<p>end point is to get only one Tour details</p>\n","_postman_id":"1c0d4e91-a8db-4704-a27b-0115bce978e2"},{"name":"users","item":[{"name":"Get User","id":"0b94e552-82f8-4921-97ce-8f947586c972","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users/63b6cdc9dca22130bc95a1a2","description":"<p>Get users end point work only admin</p>\n","urlObject":{"path":["api","v1","users","63b6cdc9dca22130bc95a1a2"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b94e552-82f8-4921-97ce-8f947586c972"},{"name":"Get All Users","id":"82ff6380-6790-42b2-805e-6a436419f23c","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>Get all users end point work only admin</p>\n","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"82ff6380-6790-42b2-805e-6a436419f23c"},{"name":"Get current user","id":"ad3bb723-1ce3-4814-bc7e-49055008e933","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>login user can see their details</p>\n","urlObject":{"path":["api","v1","users","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad3bb723-1ce3-4814-bc7e-49055008e933"},{"name":"Update User","id":"bed5442e-385f-4be6-980a-13126e803ade","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Niyathi Aravind\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/63b6cddfdca22130bc95a1a4","urlObject":{"path":["api","v1","users","63b6cddfdca22130bc95a1a4"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bed5442e-385f-4be6-980a-13126e803ade"},{"name":"Update current User Data","id":"5ad2a3cb-0bcb-45e3-ab14-b73845def4f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Niyathi Aravind\",\r\n    \"role\":\"admin\",\r\n    \"email\":\"niyathiaravind12@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/updateMe","description":"<p>Users can update their details not password</p>\n","urlObject":{"path":["api","v1","users","updateMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ad2a3cb-0bcb-45e3-ab14-b73845def4f3"},{"name":"Deactivate current User data","id":"0b3ebdac-6ba0-4fde-b00e-36813cebe45a","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>Deatctivate user</p>\n","urlObject":{"path":["api","v1","users","deleteMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b3ebdac-6ba0-4fde-b00e-36813cebe45a"},{"name":"Delete User","id":"d14cf094-ccf1-4a5e-b8d9-17f95961407c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/users/63b6cdc9dca22130bc95a1a2","description":"<p>Admin can delete users</p>\n","urlObject":{"path":["api","v1","users","63b6cdc9dca22130bc95a1a2"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d14cf094-ccf1-4a5e-b8d9-17f95961407c"}],"id":"ab257a01-6f95-4126-85f3-74229e597c13","_postman_id":"ab257a01-6f95-4126-85f3-74229e597c13","description":""},{"name":"Authentication","item":[{"name":"Signup","event":[{"listen":"prerequest","script":{"id":"2902abd5-d6f0-47c7-a2eb-c10fa83ad76b","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"a5c73125-c08e-44d2-bd75-b1b36411e2a8","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"a72e1a37-f97f-4be9-afc7-fd88498ec9fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"aravind\",\r\n    \"email\":\"aravindjayan1245@gmail.com\",\r\n    \"password\":\"test1234\",\r\n    \"confirmPassword\":\"test1234\",\r\n    \"role\":\"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/signup","description":"<p>StartFragment</p>\n<p>Sign up providing your name, email, and password. You can set your profile picture later.</p>\n<p>The email must be unique (never used to create an account before). Also, you'll receive a welcome email.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","users","signup"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a72e1a37-f97f-4be9-afc7-fd88498ec9fa"},{"name":"Login","event":[{"listen":"test","script":{"id":"614883d5-1f43-459f-94d0-184082d12ada","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"bef40084-dd51-4180-a325-b27359c77eb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"steve@example.com\",\r\n    \"password\":\"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/login","description":"<p>StartFragment</p>\n<p>Login using your email and password. Your session will last 5 days, after that you'll have to login again.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","users","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bef40084-dd51-4180-a325-b27359c77eb1"},{"name":"Forgot Password","id":"82b15fa9-81fd-4674-84b2-0be7807a61d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"niyathi@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/forgottenPassword","description":"<p>StartFragment</p>\n<p>Send your email in the body of this request as 'raw' and 'JSON'. You'll immediately get an email with a link to reset your password, and it will expire in 10 minutes, so please be quick.</p>\n<p>In order for this one to work, the Postman environment must be set to Prod: Natours.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","users","forgottenPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"82b15fa9-81fd-4674-84b2-0be7807a61d5"},{"name":"Reset Password","event":[{"listen":"test","script":{"id":"0fee09ed-6356-4535-80bf-4e20da492be9","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"0744dd1a-d115-4554-b362-fa9ba2273eb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"12345678\",\r\n    \"confirmPassword\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/resetPassword/b79c63a96dfa496f2c6cd0baadb14d25ceef0e9eb2af2d6ba8a105a62ed6c6b1","description":"<p>StartFragment</p>\n<p>This is the link that was sent to your email (logically, it's different every time you request to reset your password).</p>\n<p>Submit password and passwordConfirm in the body of the request to reset your password and you'll be logged in automatically.</p>\n<p>If 10 minutes have passed since you requested to reset your password, this link won't work anymore and you'll have to request a new one.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","users","resetPassword","b79c63a96dfa496f2c6cd0baadb14d25ceef0e9eb2af2d6ba8a105a62ed6c6b1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0744dd1a-d115-4554-b362-fa9ba2273eb1"},{"name":"Update current user Password","event":[{"listen":"test","script":{"id":"da16397c-74e7-47d1-a58f-ab0de725589f","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"16113304-b36b-4260-b36f-7eba3ccc5cf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"12345678\",\r\n    \"newPassword\":\"niyathi123\",\r\n    \"confirmNewPassword\":\"niyathi123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/updatePassword","description":"<p>StartFragment</p>\n<p>Update your password when you still remember it. In order to use this route, you must be logged in.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","users","updatePassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16113304-b36b-4260-b36f-7eba3ccc5cf1"}],"id":"f77ec5ea-7378-4673-88ed-6b00adffe1a3","_postman_id":"f77ec5ea-7378-4673-88ed-6b00adffe1a3","description":""},{"name":"Reviews","item":[{"name":"create Review","id":"dec184ea-3090-4caa-b600-dc193985b5c7","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\":\"This Journey is very beautiful you never miss it\",\r\n    \"rating\":4.1,\r\n    \"tour\":\"5c88fa8cf4afda39709c295a\",\r\n    \"user\":\"63b6cddfdca22130bc95a1a4\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews","description":"<p>StartFragment</p>\n<p>Only users with the <code>user</code> role can post reviews. It'd be weird if those with the role of <code>guide</code>, <code>lead-guide</code> and <code>admin</code> could post reviews, right?</p>\n<p>Also, you can only review tours that you have booked (refer to the Bookings section) and you can't write reviews on behalf of other users. You can only write one review on the same tour.</p>\n<p>To create a new review using this route, send the following data in the body as raw (JSON):</p>\n<ol>\n<li><code>review</code>: Your review (as a String).</li>\n<li><code>rating</code>: Your rating. We only accept numbers from 1-5.</li>\n<li><code>tour</code>: The id of the tour you're writing the review of.</li>\n<li><code>user</code>: Your own user id. Get it from <code>api/v1/users/me</code>.</li>\n</ol>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dec184ea-3090-4caa-b600-dc193985b5c7"},{"name":"get all reviews","id":"0ddf4eee-b30a-4916-b812-2576eab14aca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews/","urlObject":{"path":["api","v1","reviews",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ddf4eee-b30a-4916-b812-2576eab14aca"},{"name":"delete Review","id":"6db8b0fd-00cc-452f-9296-fe0f9f018125","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/reviews/63b8229274e7fc28b4551492","urlObject":{"path":["api","v1","reviews","63b8229274e7fc28b4551492"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6db8b0fd-00cc-452f-9296-fe0f9f018125"},{"name":"update review","id":"0e111b8f-cbdd-48d7-85b8-3228600344b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\":5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews/63b7e6d4bc6fb634483061ae","urlObject":{"path":["api","v1","reviews","63b7e6d4bc6fb634483061ae"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e111b8f-cbdd-48d7-85b8-3228600344b0"},{"name":"get review","id":"dc43e598-d8d0-46e4-8ac6-b4f3493ad596","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews/63b7e6d4bc6fb634483061ae","urlObject":{"path":["api","v1","reviews","63b7e6d4bc6fb634483061ae"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc43e598-d8d0-46e4-8ac6-b4f3493ad596"}],"id":"a5a301e1-3927-4222-a733-8284ee9dc895","_postman_id":"a5a301e1-3927-4222-a733-8284ee9dc895","description":""},{"name":"Tour/Reviews","item":[{"name":"Get All Review On Tour","id":"2e96249a-2705-4aa6-9196-aba03dbf49b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c295a/review","description":"<p>StartFragment</p>\n<p>Pass in the id of the tour that you want to get the reviews of.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c295a","review"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e96249a-2705-4aa6-9196-aba03dbf49b7"},{"name":"create New review on Tour ","id":"fec22159-a4c8-4ca8-bd01-0d0503bfcf29","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\":\"Test for review handling\",\r\n    \"rating\":5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/63b93a57d72d1349446fddf4/review","description":"<p>StartFragment</p>\n<p>Pass the id of the tour that you want to create the review on and send the data in the body, this time you only need to specify <code>review</code> and <code>rating</code>.</p>\n<p>Remember that you must buy a tour to review it and you can only create one review on the same tour, if you want to change it use the 'Update Review' route defined in the Reviews folder.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","tours","63b93a57d72d1349446fddf4","review"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fec22159-a4c8-4ca8-bd01-0d0503bfcf29"}],"id":"28b4a195-c325-4165-9514-a29973d0b3db","_postman_id":"28b4a195-c325-4165-9514-a29973d0b3db","description":""},{"name":"Bookings","item":[{"name":"getBooking","id":"28677276-119c-41be-bf1b-13ace6c73e70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/bookings/63c3cf6e9032e7138cace1c5","description":"<p>get booking details</p>\n","urlObject":{"path":["api","v1","bookings","63c3cf6e9032e7138cace1c5"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28677276-119c-41be-bf1b-13ace6c73e70"},{"name":"get All booking","id":"5b6ba542-adcc-427d-9ddf-56db537934c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/bookings/","description":"<p>get all booking details</p>\n","urlObject":{"path":["api","v1","bookings",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b6ba542-adcc-427d-9ddf-56db537934c0"},{"name":"book","id":"a683ee59-8160-43be-aab7-eba813bef783","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/bookings/checkout-session/5c88fa8cf4afda39709c2951","description":"<p>get all booking details</p>\n","urlObject":{"path":["api","v1","bookings","checkout-session","5c88fa8cf4afda39709c2951"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a683ee59-8160-43be-aab7-eba813bef783"}],"id":"f5bca42d-1e67-4bc8-aa4e-aea6892e1a8e","_postman_id":"f5bca42d-1e67-4bc8-aa4e-aea6892e1a8e","description":""}]}