{"info":{"_postman_id":"e7fe50b3-d63f-41f0-8f9a-e285a2afcc5c","name":"Natours","description":"<html><head></head><body><p>The Natours API contains endpoints for Tours, Users, Authentication, and Reviews.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17181039","collectionId":"e7fe50b3-d63f-41f0-8f9a-e285a2afcc5c","publishedId":"U16dQo6a","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-08-31T18:07:44.000Z"},"item":[{"name":"Tours","item":[{"name":"Get All tours","id":"673fcc9a-23d2-4850-a091-09bf378f448b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours?duration[gte]=5&difficulty=easy","description":"<p>Use this endpoint to create a new tour.</p>\n","urlObject":{"path":["api","v1","tours"],"host":["{{URL}}"],"query":[{"description":{"content":"<p>Query for duration. Supports gte, lte, gt, and lt operators..</p>\n","type":"text/plain"},"key":"duration[gte]","value":"5"},{"key":"difficulty","value":"easy"},{"disabled":true,"key":"price[lt]","value":"1500"}],"variable":[]}},"response":[],"_postman_id":"673fcc9a-23d2-4850-a091-09bf378f448b"},{"name":"Get Tour","id":"f325573d-4563-4b5c-88a0-7256a51f0958","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2955","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2955"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f325573d-4563-4b5c-88a0-7256a51f0958"},{"name":"Create New Tour","id":"d66f7f99-f9a0-4d84-99f6-080acaae0dcd","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\": \"The Forest Hiker\",\r\n    \"duration\": 4,\r\n    \"maxGroupSize\": 10,\r\n    \"secretTour\": true,\r\n    \"difficulty\": \"difficult\",\r\n    \"ratingsAverage\": 10,\r\n    \"ratingsQuantity\": 13,\r\n    \"price\": 997,\r\n    \"summary\": \"Exciting adventure in the snow with snowboarding and skiing\",\r\n    \"description\": \"Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua, ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum!\\nDolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur, exercitation ullamco laboris nisi ut aliquip. Lorem ipsum dolor sit amet, consectetur adipisicing elit!\",\r\n    \"imageCover\": \"tour-3-cover.jpg\",\r\n    \"images\": [\"tour-3-1.jpg\", \"tour-3-2.jpg\", \"tour-3-3.jpg\"],\r\n    \"startDates\": [\"2022-01-05,10:00\", \"2022-02-12,10:00\", \"2023-01-06,10:00\"]\r\n  }","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours","urlObject":{"path":["api","v1","tours"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d66f7f99-f9a0-4d84-99f6-080acaae0dcd"},{"name":"Update Tour","id":"6aebbced-f798-4252-82ac-a8eefd7d0ae7","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":"/C:/Users/User/Desktop/node-practice/natours/dev-data/img/new-tour-1.jpg"},{"key":"images","type":"file","src":"/C:/Users/User/Desktop/node-practice/natours/dev-data/img/new-tour-2.jpg"},{"key":"images","type":"file","src":"/C:/Users/User/Desktop/node-practice/natours/dev-data/img/new-tour-3.jpg"},{"key":"images","type":"file","src":"/C:/Users/User/Desktop/node-practice/natours/dev-data/img/new-tour-4.jpg"},{"key":"price","value":"997","type":"text"}]},"url":"{{URL}}/api/v1/tours/6130b0abc6c48d368481c00b","urlObject":{"path":["api","v1","tours","6130b0abc6c48d368481c00b"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6aebbced-f798-4252-82ac-a8eefd7d0ae7"},{"name":"Delete Tour","id":"30fe10e5-79d0-4935-9800-9bd59d601806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/tours/6126165e14d5580dfce42785","urlObject":{"path":["api","v1","tours","6126165e14d5580dfce42785"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"30fe10e5-79d0-4935-9800-9bd59d601806"},{"name":"Tour Stats","id":"fb458a9a-9e7e-4609-a7b2-e5f5d158cff3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/tour-stats","urlObject":{"path":["api","v1","tours","tour-stats"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb458a9a-9e7e-4609-a7b2-e5f5d158cff3"},{"name":"Get Monthly Plan","id":"d43e87bf-f900-4ac1-be05-26fe13d0f123","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","urlObject":{"path":["api","v1","tours","monthly-plan","2021"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d43e87bf-f900-4ac1-be05-26fe13d0f123"},{"name":"Get top-5","id":"6d4daf84-3a05-495c-a393-8f7a7ef9ea49","protocolProfileBehavior":{"disabledSystemHeaders":{},"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":"6d4daf84-3a05-495c-a393-8f7a7ef9ea49"},{"name":"Get Tours Within Radius","id":"9d487d12-9a04-4c12-8d80-37266e0c052b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/tours-within/400/center/34.111745,-118.113491/unit/mi","urlObject":{"path":["api","v1","tours","tours-within","400","center","34.111745,-118.113491","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d487d12-9a04-4c12-8d80-37266e0c052b"},{"name":"Get Distances to Tours From Point","id":"4b582ad2-ab45-49f9-afbe-1562094b96f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/distances/34.111745,-118.113491/unit/mi","urlObject":{"path":["api","v1","tours","distances","34.111745,-118.113491","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b582ad2-ab45-49f9-afbe-1562094b96f0"}],"id":"7d2691af-1544-408a-bd46-01d72d210bc9","description":"<p>You can get all tours, create new ones, and edit and delete tours. There are also special endpoints for some special requirements.</p>\n","_postman_id":"7d2691af-1544-408a-bd46-01d72d210bc9"},{"name":"Users","item":[{"name":"Get All Users","id":"dfdb567c-2970-4d45-b0b9-da894aadd91c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfdb567c-2970-4d45-b0b9-da894aadd91c"},{"name":"Get User","id":"f6afe5a2-d67c-4e07-9bff-951f1621f5fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users/2","urlObject":{"path":["api","v1","users","2"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6afe5a2-d67c-4e07-9bff-951f1621f5fd"},{"name":"Update Current User Data","id":"5736b0b7-ecbd-45de-8b6c-4238fb3910a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"photo","type":"file","src":"/C:/Users/User/Pictures/Wallpapers/1111744.jpg"}]},"url":"{{URL}}/api/v1/users/updateMe","urlObject":{"path":["api","v1","users","updateMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5736b0b7-ecbd-45de-8b6c-4238fb3910a4"},{"name":"Delete User","id":"5dcbc45f-3b29-499d-bcbc-9cbdd3e9244b","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/users/deleteMe","urlObject":{"path":["api","v1","users","deleteMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5dcbc45f-3b29-499d-bcbc-9cbdd3e9244b"},{"name":"Get Me","id":"821d8907-a2fa-483b-945a-d99d1c7a9849","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":"821d8907-a2fa-483b-945a-d99d1c7a9849"}],"id":"4ef71285-85f0-4cda-9244-071ce9c7c151","_postman_id":"4ef71285-85f0-4cda-9244-071ce9c7c151","description":""},{"name":"Authentication","item":[{"name":"Reset Password","event":[{"listen":"test","script":{"id":"d64bfce8-df10-48be-89f2-7294c4bca5eb","exec":["pm.environment.set(\"jwt\", pm.response.json().token);\r",""],"type":"text/javascript"}}],"id":"f50e7a89-6555-416d-8699-6d6382e05a1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"{{URL}}/api/v1/users/resetPassword/asda645","urlObject":{"path":["api","v1","users","resetPassword","asda645"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f50e7a89-6555-416d-8699-6d6382e05a1a"},{"name":"Update Password","event":[{"listen":"test","script":{"id":"5ab646ca-58c6-40ec-8629-2feb952fae65","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"495b43ef-3d8c-4332-b628-acbf72579a47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"passwordCurrent\": \"test1234\",\r\n    \"password\": \"mansur15\",\r\n    \"passwordConfirm\": \"mansur15\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/updateMyPassword","urlObject":{"path":["api","v1","users","updateMyPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"495b43ef-3d8c-4332-b628-acbf72579a47"},{"name":"Forgot Password","event":[{"listen":"test","script":{"id":"b356ce73-3c30-4074-8339-ff36cdb85097","exec":[""],"type":"text/javascript"}}],"id":"6772592e-a3c3-4d50-b991-9d1428469f4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"mansur10@gmail.com\"\r\n}   ","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/forgotPassword","urlObject":{"path":["api","v1","users","forgotPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6772592e-a3c3-4d50-b991-9d1428469f4a"},{"name":"Login","event":[{"listen":"test","script":{"id":"b08c350c-c370-4b77-9182-4e7e1f015c05","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"aa04cf50-8f11-4b6d-a837-72029f3162de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@natours.io\",\r\n    \"password\": \"admin123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/login","urlObject":{"path":["api","v1","users","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa04cf50-8f11-4b6d-a837-72029f3162de"},{"name":"Signup","event":[{"listen":"test","script":{"id":"78e9a516-1d66-4ba1-b917-3406f32c6e65","exec":["pm.environment.set(\"jwt\", pm.response.json().token);\r",""],"type":"text/javascript"}}],"id":"a7bba0ba-b0b9-47ce-91e2-0aced73332ff","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Mansurjon\", \r\n    \"email\": \"mansurisakov.dev@gmail.com\",\r\n    \"password\": \"{{password}}\",\r\n    \"passwordConfirm\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/signup","urlObject":{"path":["api","v1","users","signup"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7bba0ba-b0b9-47ce-91e2-0aced73332ff"}],"id":"ac53aafa-4861-4945-ab07-9f570430c66e","_postman_id":"ac53aafa-4861-4945-ab07-9f570430c66e","description":""},{"name":"Reviews","item":[{"name":"Get All Reviews","id":"c2706cfa-1b22-4985-b8b5-28da024905e9","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":"c2706cfa-1b22-4985-b8b5-28da024905e9"},{"name":"Create New Review","id":"c7438feb-470b-436e-954b-09cbf1a7e4f7","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\": \"Nice cool review\",\r\n    \"rating\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2955/reviews","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2955","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7438feb-470b-436e-954b-09cbf1a7e4f7"},{"name":"Get All Reviews on Tour","id":"ef76cdd9-5949-49a1-b84e-221a62632d92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2955/reviews","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2955","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef76cdd9-5949-49a1-b84e-221a62632d92"},{"name":"Delete Review","id":"7cc47155-760a-4ec1-bb02-f5e922d4e2db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/reviews/612ce20cd3852b2ea0e0d0e8","urlObject":{"path":["api","v1","reviews","612ce20cd3852b2ea0e0d0e8"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7cc47155-760a-4ec1-bb02-f5e922d4e2db"},{"name":"Update Review","id":"dd1aa8e4-cdd1-4ac0-92af-bafacc515b2a","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\": 4\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews/612ce213d3852b2ea0e0d0eb","urlObject":{"path":["api","v1","reviews","612ce213d3852b2ea0e0d0eb"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd1aa8e4-cdd1-4ac0-92af-bafacc515b2a"},{"name":"Get Review","id":"76e86b9f-82be-4c34-bd90-c8696fbfc956","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews/612ce980ffd134195052985e","urlObject":{"path":["api","v1","reviews","612ce980ffd134195052985e"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"76e86b9f-82be-4c34-bd90-c8696fbfc956"}],"id":"7d5cb349-0516-4e0c-8ef2-07ff82ff8d45","_postman_id":"7d5cb349-0516-4e0c-8ef2-07ff82ff8d45","description":""},{"name":"Bookings","item":[{"name":"Get All Bookings","id":"7ddcd21e-b4d2-4112-a7c2-cd481f033d20","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":"7ddcd21e-b4d2-4112-a7c2-cd481f033d20"},{"name":"Get One Booking","id":"ac29b7e1-7f45-4fa2-a77c-624dc3807218","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bookings/5c88fa8cf4afda39709c2955","urlObject":{"path":["api","v1","bookings","5c88fa8cf4afda39709c2955"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac29b7e1-7f45-4fa2-a77c-624dc3807218"},{"name":"Checkout Service","id":"6bcc86c1-624e-44cb-beaa-4a5dcdb1d428","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":"6bcc86c1-624e-44cb-beaa-4a5dcdb1d428"}],"id":"00c6b508-047a-47e6-95bb-58617291d5f1","_postman_id":"00c6b508-047a-47e6-95bb-58617291d5f1","description":""}]}