{"info":{"_postman_id":"5db12d82-93a8-4f4c-8c22-198cd80a9b59","name":"Natours","description":"<html><head></head><body><p><strong>The Natours API</strong> 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":"14588037","collectionId":"5db12d82-93a8-4f4c-8c22-198cd80a9b59","publishedId":"2s93Xu3m1u","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-04-11T20:25:33.000Z"},"item":[{"name":"Users","item":[{"name":"Get All Users","id":"443a3c22-b440-4d97-944e-608b70a4e772","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>API Endpoint for getting all users, for <strong>admin</strong> role only.</p>\n","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"443a3c22-b440-4d97-944e-608b70a4e772"},{"name":"Get User","id":"6f9bc6d8-47d2-4cb7-8412-6a640481112c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users/1","description":"<p>API Endpoint for getting a user using :userId, for <strong>admin</strong> role only.</p>\n","urlObject":{"path":["api","v1","users","1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f9bc6d8-47d2-4cb7-8412-6a640481112c"},{"name":"Update User","event":[{"listen":"test","script":{"id":"0ba83175-b232-4d1c-a8b6-02ea3e8dbd6f","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"629ba20d-35a1-484e-9812-6074b1118c49","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\": \"nwetestnwetest1111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/641c9d544744438cbc285db6","description":"<p>API Endpoint for updating a user using :userId, for admin role only.</p>\n","urlObject":{"path":["api","v1","users","641c9d544744438cbc285db6"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"629ba20d-35a1-484e-9812-6074b1118c49"},{"name":"Delete User","event":[{"listen":"test","script":{"id":"0ba83175-b232-4d1c-a8b6-02ea3e8dbd6f","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"9f678759-d97e-4c70-8788-87b4b0ed0427","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/641c9a0c0afd493bc03f4ec1","description":"<p>API Endpoint for updating a user using :userId, for admin role only.</p>\n","urlObject":{"path":["api","v1","users","641c9a0c0afd493bc03f4ec1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f678759-d97e-4c70-8788-87b4b0ed0427"},{"name":"Get Current User","id":"96d44cf6-c352-4063-9c32-14d34deaa530","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users/me","urlObject":{"path":["api","v1","users","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"96d44cf6-c352-4063-9c32-14d34deaa530"},{"name":"Update Curent User","event":[{"listen":"test","script":{"id":"0ba83175-b232-4d1c-a8b6-02ea3e8dbd6f","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"1e042402-410e-44fb-8bf6-8a536ff95565","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Leo j. Gillespie","type":"text","disabled":true},{"key":"photo","type":"file","src":"/D:/dev/jonas/complete-node-bootcamp-master/4-natours/starter/dev-data/img/aarav.jpg"}]},"url":"{{URL}}/api/v1/users/updateMe","urlObject":{"path":["api","v1","users","updateMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e042402-410e-44fb-8bf6-8a536ff95565"},{"name":"Delete Current User","event":[{"listen":"test","script":{"id":"0ba83175-b232-4d1c-a8b6-02ea3e8dbd6f","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"6fc7b548-6c47-4ad7-a248-bd4443c5fd32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/deleteAccount","description":"<p>API Endpoint for updating a user using :userId, for admin role only.</p>\n","urlObject":{"path":["api","v1","users","deleteAccount"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6fc7b548-6c47-4ad7-a248-bd4443c5fd32"}],"id":"4d9f2374-c989-467e-8ce4-6b95f076fee7","description":"<p>API Endpoints for CRUD operations for the <strong>users collection</strong>.</p>\n","_postman_id":"4d9f2374-c989-467e-8ce4-6b95f076fee7"},{"name":"Tours","item":[{"name":"Get Top 5 Cheap Tours","id":"7da36599-5c3a-4785-9fbc-75e811c26354","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"param\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/top-5-cheap","urlObject":{"path":["api","v1","tours","top-5-cheap"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"duration[gte]","value":"8"},{"disabled":true,"key":"fields","value":"name,duration,difficulty,price"}],"variable":[]}},"response":[],"_postman_id":"7da36599-5c3a-4785-9fbc-75e811c26354"},{"name":"Get Tour Stats","id":"d5e2c817-331a-433e-80dd-84433bc2fe9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"param\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/tour-stats","urlObject":{"path":["api","v1","tours","tour-stats"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"duration[gte]","value":"8"},{"disabled":true,"key":"fields","value":"name,duration,difficulty,price"},{"disabled":true,"key":"page","value":"3"}],"variable":[]}},"response":[],"_postman_id":"d5e2c817-331a-433e-80dd-84433bc2fe9c"},{"name":"Get Monthly Plan","id":"173a1448-9930-4052-ba56-76ee91ed86ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"param\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/monthly-plan/2024","urlObject":{"path":["api","v1","tours","monthly-plan","2024"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"duration[gte]","value":"8"},{"disabled":true,"key":"fields","value":"name,duration,difficulty,price"},{"disabled":true,"key":"page","value":"3"}],"variable":[]}},"response":[],"_postman_id":"173a1448-9930-4052-ba56-76ee91ed86ca"},{"name":"Get Tours Within Radius","id":"3e2f0f88-e6b0-4914-b137-290f7031f19c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/tours-within/400/center/34.138694,-118.150813/unit/mi","urlObject":{"path":["api","v1","tours","tours-within","400","center","34.138694,-118.150813","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e2f0f88-e6b0-4914-b137-290f7031f19c"},{"name":"Get Distances to Tours From Point","id":"549e8abe-8d80-43be-a0f6-8e18ca629a55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/distances/34.138694,-118.150813/unit/mi","urlObject":{"path":["api","v1","tours","distances","34.138694,-118.150813","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"549e8abe-8d80-43be-a0f6-8e18ca629a55"},{"name":"Get All Tours","id":"87fb4b24-4e68-4f5c-96af-11d6fe38d638","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"param\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours","urlObject":{"path":["api","v1","tours"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"difficulty","value":"easy"},{"disabled":true,"description":{"content":"<p>Qury for Tour duration. Supports gte, lte, gt, lt operators.</p>\n","type":"text/plain"},"key":"duration[gte]","value":"8"},{"disabled":true,"key":"price[lt]","value":"700"},{"disabled":true,"key":"sort","value":"-price,ratingsAverage"},{"disabled":true,"key":"page","value":"3"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"duration[gte]","value":"7"},{"disabled":true,"key":"sort","value":"price"}],"variable":[]}},"response":[],"_postman_id":"87fb4b24-4e68-4f5c-96af-11d6fe38d638"},{"name":"Get Tour","id":"8d2cbfe5-edeb-4e09-b3c7-12b672def00a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/64358da7be178cde5c417da5","urlObject":{"path":["api","v1","tours","64358da7be178cde5c417da5"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d2cbfe5-edeb-4e09-b3c7-12b672def00a"},{"name":"Create New Tour","id":"5826f9f0-978c-4f3d-b655-ddd128e0cb3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"ratingsAverage\": 5,\r\n    \"ratingsQuantity\": 0,\r\n    \"images\": [],\r\n    \"createdAt\": \"2023-01-21T00:53:18.268Z\",\r\n    \"startDates\": [],\r\n    \"secretTour\": false,\r\n    \"name\": \"Test Tour New\",\r\n    \"duration\": 9,\r\n    \"maxGroupSize\": 20,\r\n    \"difficulty\": \"easy\",\r\n    \"price\": 1197,\r\n    \"priceDiscount\": 1196,\r\n    \"summary\": \"Living the life of Wanderlust in the US' most beatiful cities\",\r\n    \"imageCover\": \"tour-4-cover.jpg\",\r\n    \"slug\": \"newTournewTour\",\r\n    \"guides\": [\r\n        \"63d745a5004c001d7809694d\",\r\n        \"63d7460fd8b037b590f51a87\",\r\n        \"63d74643d8b037b590f51a8b\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours","urlObject":{"path":["api","v1","tours"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5826f9f0-978c-4f3d-b655-ddd128e0cb3a"},{"name":"Update Tour","id":"85160378-7292-404c-8c15-8a6d75cb12f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"imageCover","type":"file","src":"/D:/dev/jonas/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-1.jpg"},{"key":"images","type":"file","src":"/D:/dev/jonas/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-2.jpg"},{"key":"images","type":"file","src":"/D:/dev/jonas/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-3.jpg"},{"key":"images","type":"file","src":"/D:/dev/jonas/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-4.jpg"},{"key":"price","value":"997","type":"text"}]},"url":"{{URL}}/api/v1/tours/64454ac3a6a06b167a0ca7e9","urlObject":{"path":["api","v1","tours","64454ac3a6a06b167a0ca7e9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"85160378-7292-404c-8c15-8a6d75cb12f7"},{"name":"Delete Tour","id":"90d7c286-51a2-4809-9ee9-0af6079b790c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"{{URL}}/api/v1/tours/643fc2feab9d455a0cbeeb0b","urlObject":{"path":["api","v1","tours","643fc2feab9d455a0cbeeb0b"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"90d7c286-51a2-4809-9ee9-0af6079b790c"}],"id":"7928bfec-b8e6-4b3c-b7ec-85284274cd2b","_postman_id":"7928bfec-b8e6-4b3c-b7ec-85284274cd2b","description":""},{"name":"Authentication","item":[{"name":"Signup","event":[{"listen":"test","script":{"id":"37bf405d-2b1b-4f9e-96ac-7f8864f82e30","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"fbab3409-735f-47dd-9397-fa888eaceada","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\": \"Nina fasasfas\",\r\n    \"email\": \"nnina@mailsac.com\",\r\n    \"password\": \"test1234\",\r\n    \"passwordConfirm\": \"test1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/signup","description":"<p>API Endpoint for signing up, provide name, mail, password and passwordConfirm <strong>(must match!)</strong></p>\n","urlObject":{"path":["api","v1","users","signup"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbab3409-735f-47dd-9397-fa888eaceada"},{"name":"Login","event":[{"listen":"test","script":{"id":"89c52646-8443-4b15-8d18-f3f1521ddd45","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"66efe2a7-0948-4a6e-ae65-2a1c139aacd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@natours.io\",\r\n    \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/login","description":"<p>Simple login endpoint, provide email and password.<br />Postman will save the jwt to the env variables.</p>\n","urlObject":{"path":["api","v1","users","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"66efe2a7-0948-4a6e-ae65-2a1c139aacd2"},{"name":"Logout","event":[{"listen":"test","script":{"id":"89c52646-8443-4b15-8d18-f3f1521ddd45","exec":[""],"type":"text/javascript"}}],"id":"3ddcfbd5-d206-4a1e-bb4c-84f73fdacf10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/logout","urlObject":{"path":["api","v1","users","logout"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ddcfbd5-d206-4a1e-bb4c-84f73fdacf10"},{"name":"Forgot Password","id":"c52b66f8-e783-49ff-8796-dd04fe7277b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"test@natours.io\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/forgotPassword","description":"<p>API Endpoint for forgetting password.</p>\n<p>Generates new reset password token and sends to the email provided.</p>\n","urlObject":{"path":["api","v1","users","forgotPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c52b66f8-e783-49ff-8796-dd04fe7277b7"},{"name":"Reset Password","event":[{"listen":"test","script":{"id":"bbf0d23b-3beb-44a4-924e-e0a542ed0d5c","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"28812c3f-f6ae-42ba-84ff-4ee5b08d052a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"new_pass\",\r\n    \"passwordConfirm\": \"new_pass\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/resetPassword/c29fdf30caec7d07890b0038822952f62f3edd62f9cea07d725c77a8098a718f","description":"<p>API Endpoint for resetting the password, using the :resetPasswordToken sent to mail.</p>\n","urlObject":{"path":["api","v1","users","resetPassword","c29fdf30caec7d07890b0038822952f62f3edd62f9cea07d725c77a8098a718f"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28812c3f-f6ae-42ba-84ff-4ee5b08d052a"},{"name":"Update Current User's Password","event":[{"listen":"test","script":{"id":"0ba83175-b232-4d1c-a8b6-02ea3e8dbd6f","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"5924f0fe-7c1d-4a82-bc7c-936971f0c956","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\": \"test12345\",\r\n    \"password\": \"test1234\",\r\n    \"passwordConfirm\": \"test1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/updateMyPassword","description":"<p>StartFragment</p>\n<p>API Endpoint to update current user's password.</p>\n<p>Requires to be logged in.</p>\n<p>EndFragment</p>\n","urlObject":{"path":["api","v1","users","updateMyPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5924f0fe-7c1d-4a82-bc7c-936971f0c956"}],"id":"3a1fee75-762b-48de-b787-5ae4550624e2","description":"<p>API Endpoints for authentication.</p>\n<p>incl. signing up, login, forgot password + reset password, update current user's password.</p>\n","_postman_id":"3a1fee75-762b-48de-b787-5ae4550624e2"},{"name":"Reviews","item":[{"name":"Get Review","id":"0b48c73b-8d67-48ae-a7b0-33bdeb2a2c25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews/641c86ab73ecfa7d24c84d20","urlObject":{"path":["api","v1","reviews","641c86ab73ecfa7d24c84d20"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b48c73b-8d67-48ae-a7b0-33bdeb2a2c25"},{"name":"Get All Reviews","id":"ddbb5ec6-cb81-4311-a461-c8a09be56c10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews/","urlObject":{"path":["api","v1","reviews",""],"host":["{{URL}}"],"query":[{"disabled":true,"key":"difficulty","value":"easy"},{"disabled":true,"key":"duration[gte]","value":"8"},{"disabled":true,"key":"price[lt]","value":"700"},{"disabled":true,"key":"page","value":"3"},{"disabled":true,"key":"limit","value":"3"}],"variable":[]}},"response":[],"_postman_id":"ddbb5ec6-cb81-4311-a461-c8a09be56c10"},{"name":"Create New Review","id":"d8c0ec97-4500-4f08-84b6-724d1ed44ab7","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"review\": \"Great!\",\r\n    \"rating\": 5,\r\n    \"tour\": \"5c88fa8cf4afda39709c2955\",\r\n    \"user\": \"6419def1dc48f6cbdc165205\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8c0ec97-4500-4f08-84b6-724d1ed44ab7"},{"name":"Update Review","id":"1ab10ab0-a573-4cfe-bb38-41ed0619405e","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/6435a57a1e66f8fe2cd19433","urlObject":{"path":["api","v1","reviews","6435a57a1e66f8fe2cd19433"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ab10ab0-a573-4cfe-bb38-41ed0619405e"},{"name":"Delete Review","id":"ec8cccaf-48ac-4875-88df-2b3eb4215c0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/reviews/64358e2abe178cde5c417da9","urlObject":{"path":["api","v1","reviews","64358e2abe178cde5c417da9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec8cccaf-48ac-4875-88df-2b3eb4215c0a"}],"id":"3a3787be-62ae-4551-8f4f-5e600e32ee88","_postman_id":"3a3787be-62ae-4551-8f4f-5e600e32ee88","description":""},{"name":"Tours/Reviews","item":[{"name":"Get All Reviews on Tour","id":"f647fd2f-f65e-4500-97c7-c503bbbd7747","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"param\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2955/reviews","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2955","reviews"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"difficulty","value":"easy"},{"disabled":true,"key":"duration[gte]","value":"8"},{"disabled":true,"key":"price[lt]","value":"700"},{"disabled":true,"key":"sort","value":"-price,ratingsAverage"},{"disabled":true,"key":"page","value":"3"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"rating","value":"4"}],"variable":[]}},"response":[],"_postman_id":"f647fd2f-f65e-4500-97c7-c503bbbd7747"},{"name":"Create New Review on Tour","id":"14f0a3c9-30dc-4ae6-940e-ecfc3770d806","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"review\": \"Great\",\r\n    \"rating\": 5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/64358da7be178cde5c417da5/reviews","urlObject":{"path":["api","v1","tours","64358da7be178cde5c417da5","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"14f0a3c9-30dc-4ae6-940e-ecfc3770d806"}],"id":"e2f2f707-f052-412b-9c7a-423905e44b94","_postman_id":"e2f2f707-f052-412b-9c7a-423905e44b94","description":""},{"name":"Bookings","item":[{"name":"Get All Bookings","event":[{"listen":"test","script":{"id":"8208ab88-b88f-4212-a250-67c8e8bedbde","exec":[""],"type":"text/javascript"}}],"id":"12ed29a9-9a6e-41a5-a85e-760a2cc8757b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bookings","urlObject":{"path":["api","v1","bookings"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"12ed29a9-9a6e-41a5-a85e-760a2cc8757b"},{"name":"Get Booking","event":[{"listen":"test","script":{"id":"4fd32a70-eddc-4687-ac86-ce30923afa4c","exec":[""],"type":"text/javascript"}}],"id":"9f20e958-8b57-4f91-bf06-1686a2f1222d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bookings/6446d8f8c5bc64cffc349c4d","urlObject":{"path":["api","v1","bookings","6446d8f8c5bc64cffc349c4d"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f20e958-8b57-4f91-bf06-1686a2f1222d"},{"name":"Create New Booking","event":[{"listen":"test","script":{"id":"a1b41fb8-3725-4c55-90b4-f890281d3b14","exec":[""],"type":"text/javascript"}}],"id":"631f2b4f-4e85-4c21-8636-c93d14d45c4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"tour\": \"5c88fa8cf4afda39709c296c\",\r\n  \"user\": \"644674eea32b3ac4ec362f79\",\r\n  \"price\": 1997\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/bookings","urlObject":{"path":["api","v1","bookings"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"631f2b4f-4e85-4c21-8636-c93d14d45c4f"},{"name":"Update Booking","id":"ec3a989f-22f2-4b20-842b-bd4cad328147","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"price\": 1998\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/bookings/6446d8f8c5bc64cffc349c4d","urlObject":{"path":["api","v1","bookings","6446d8f8c5bc64cffc349c4d"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec3a989f-22f2-4b20-842b-bd4cad328147"},{"name":"Delete Booking","id":"294b513e-82f4-4dce-9c20-0a8f82ebd898","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"{{URL}}/api/v1/bookings/6446d8f8c5bc64cffc349c4d","urlObject":{"path":["api","v1","bookings","6446d8f8c5bc64cffc349c4d"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"294b513e-82f4-4dce-9c20-0a8f82ebd898"},{"name":"Bookings Checkout Session","id":"8651f906-0a07-4cfb-9773-49c7118cfb80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bookings/checkout-session/5c88fa8cf4afda39709c2955","urlObject":{"path":["api","v1","bookings","checkout-session","5c88fa8cf4afda39709c2955"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8651f906-0a07-4cfb-9773-49c7118cfb80"}],"id":"da9d3a9a-14fb-4e98-a4e7-bd8144709fb4","_postman_id":"da9d3a9a-14fb-4e98-a4e7-bd8144709fb4","description":""}]}