{"info":{"_postman_id":"0aca61ef-79be-4181-84fa-8ed260fbd79f","name":"Natours","description":"<html><head></head><body><p>This is the NATOURS API. With this API, you will get options like searching for your favorite tours, applying various filters to the search query and you will get hands on some more routes out of which some are protected and you have to signUp / Login. </p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11905282","collectionId":"0aca61ef-79be-4181-84fa-8ed260fbd79f","publishedId":"T1DjkfJj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-19T14:48:18.000Z"},"item":[{"name":"Tours","item":[{"name":"Get all the tours","id":"9ce4d011-ceaf-435a-89a9-d6a2d4bf5e03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours","description":"<p>Use this endpoint to get all tours.\nAlso, you can add certain query paramters according to you.</p>\n","urlObject":{"path":["api","v1","tours"],"host":["{{URL}}"],"query":[{"disabled":true,"description":{"content":"<p>Filter tours with difficulty. Expected values:-[easy,medium,difficult]</p>\n","type":"text/plain"},"key":"difficulty","value":"easy"},{"disabled":true,"description":{"content":"<p>Filters tours with price.Supports gte,lte,gt,lt</p>\n","type":"text/plain"},"key":"price[gte]","value":"1000"},{"disabled":true,"description":{"content":"<p>Shows the tours on respective page (if they are limited on the first page).</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Limits the fields to show up in the result.</p>\n","type":"text/plain"},"key":"fields","value":"name,price"},{"disabled":true,"description":{"content":"<p>Query for tour duration. Supports gte,lte,gt,lt.</p>\n","type":"text/plain"},"key":"duration","value":"5"},{"disabled":true,"description":{"content":"<p>Sorts the tours based on certain criterias.</p>\n","type":"text/plain"},"key":"sort","value":"price"},{"disabled":true,"description":{"content":"<p>Limits the number of results on a page.</p>\n","type":"text/plain"},"key":"limit","value":"3"}],"variable":[]}},"response":[],"_postman_id":"9ce4d011-ceaf-435a-89a9-d6a2d4bf5e03"},{"name":"getting tour with ID","id":"7340d881-2314-48ec-81f4-52742426dc98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/5f1402bdc7791018286056e4","description":"<p>Get the tour with unique ID.</p>\n","urlObject":{"path":["api","v1","tours","5f1402bdc7791018286056e4"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7340d881-2314-48ec-81f4-52742426dc98"},{"name":"Post a new tour","id":"c9e513e6-a3d8-413c-8b99-30c2d1816363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"startLocation\": {\r\n      \"description\": \"<<location>> 'Eg':- Miami, USA\",\r\n      \"type\": \"Point\",\r\n      \"coordinates\": [-80.185942, 25.774772],\r\n      \"address\": \"<<Address>> 'Eg':-301 Biscayne Blvd, Miami, FL 33132, USA\"\r\n    },\r\n    \"ratingsAverage\": /*DEFAULT*/ 4.5,\r\n    \"ratingsQuantity\": 0,\r\n    \"images\": [\"tour-2-1.jpg\", \"tour-2-2.jpg\", \"tour-2-3.jpg\"],\r\n    \"startDates\": [\r\n      \"2021-06-19T09:00:00.000Z\",\r\n      \"2021-07-20T09:00:00.000Z\",\r\n      \"2021-08-18T09:00:00.000Z\"\r\n    ],\r\n    \"name\": \"<<Tour Name>>\",\r\n    \"duration\": 7,\r\n    \"maxGroupSize\": 15,\r\n    \"difficulty\": \"[easy,medium or difficult]\",\r\n    \"guides\": [\"5c8a22c62f8fb814b56fa18b\", \"5c8a1f4e2f8fb814b56fa185\"],\r\n    \"price\": 497,\r\n    \"summary\": \"<< Summary of Tour >>\",\r\n    \"description\": \"Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\\nIrure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\",\r\n    \"imageCover\": \"tour-2-cover.jpg\",\r\n    \"locations\": [\r\n      {\r\n        \"_id\": \"5c88fa8cf4afda39709c2959\",\r\n        \"description\": \"Lummus Park Beach\",\r\n        \"type\": \"Point\",\r\n        \"coordinates\": [-80.128473, 25.781842],\r\n        \"day\": 1\r\n      },\r\n      {\r\n        \"_id\": \"5c88fa8cf4afda39709c2958\",\r\n        \"description\": \"Islamorada\",\r\n        \"type\": \"Point\",\r\n        \"coordinates\": [-80.647885, 24.909047],\r\n        \"day\": 2\r\n      },\r\n      {\r\n        \"_id\": \"5c88fa8cf4afda39709c2957\",\r\n        \"description\": \"Sombrero Beach\",\r\n        \"type\": \"Point\",\r\n        \"coordinates\": [-81.0784, 24.707496],\r\n        \"day\": 3\r\n      },\r\n      {\r\n        \"_id\": \"5c88fa8cf4afda39709c2956\",\r\n        \"description\": \"West Key\",\r\n        \"type\": \"Point\",\r\n        \"coordinates\": [-81.768719, 24.552242],\r\n        \"day\": 5\r\n      }\r\n    ]\r\n  }","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours","description":"<p>Post a new Tour (Requires authentication as admin or lead-guide).</p>\n","urlObject":{"path":["api","v1","tours"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9e513e6-a3d8-413c-8b99-30c2d1816363"},{"name":"Patch request for updating the data","id":"8a6c3e89-4062-409b-a0cb-5bde26e13787","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"ratingAverage\": 45,\r\n    \"difficulty\":\"hard\",\r\n    \"name\":\"testtour\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/5eff7a83371ce301a4908e56","description":"<p>Post a new Tour (Requires authentication as admin or lead-guide).</p>\n","urlObject":{"path":["api","v1","tours","5eff7a83371ce301a4908e56"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a6c3e89-4062-409b-a0cb-5bde26e13787"},{"name":"Deleting the data","id":"fd3fc2aa-a596-494c-a9e3-9672268a44b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2974","description":"<p>Post a new Tour (Requires authentication as admin or lead-guide).</p>\n","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2974"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd3fc2aa-a596-494c-a9e3-9672268a44b1"},{"name":"Get Top 5 Tours","id":"a4f1f926-3c4e-4e47-bc51-3bedd4ae09f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/top-5","description":"<p>Get top-5 tours.</p>\n","urlObject":{"path":["api","v1","tours","top-5"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4f1f926-3c4e-4e47-bc51-3bedd4ae09f9"},{"name":"Get Monthly Plan","id":"c788bee3-d7bd-4107-b229-6eda442917c4","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>Post a new Tour (Requires authentication as admin or lead-guide or guide).</p>\n","urlObject":{"path":["api","v1","tours","monthly-plan","2021"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c788bee3-d7bd-4107-b229-6eda442917c4"},{"name":"Get Tour Stats","id":"a9af20e2-baf9-45d6-a172-b0fdec26c801","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":"a9af20e2-baf9-45d6-a172-b0fdec26c801"},{"name":"Get tours within radius","id":"59c493c2-e76b-4d9b-9af7-26be03b6308b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/tours-within/400/center/34.073642,-118.117896/unit/mi","description":"<p>Get tours within your radius.</p>\n","urlObject":{"path":["api","v1","tours","tours-within","400","center","34.073642,-118.117896","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"59c493c2-e76b-4d9b-9af7-26be03b6308b"},{"name":"Get distances to tours from point","id":"b3e70ce8-24f5-47f5-9ad8-f942013c190a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/distances/34.073642,-118.117896/unit/km","description":"<p>Get tours within your distance.</p>\n","urlObject":{"path":["api","v1","tours","distances","34.073642,-118.117896","unit","km"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3e70ce8-24f5-47f5-9ad8-f942013c190a"}],"id":"c7418444-419c-4a04-bc46-f86a3106aa04","description":"<p>The first category of API you can work upon is the TOURS API, which gives you options like Getting all tours or getting a tour with ID. Posting, updating or deleting tours which requires user authentication. Some more alias features like Top-5 tours, getting tours within a certain radius etc.</p>\n","event":[{"listen":"prerequest","script":{"id":"3f96c934-127b-4b21-aee6-3b9656f9bf4a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e0ca8789-59e0-4ee2-9ccc-c4da71c65f08","type":"text/javascript","exec":[""]}}],"_postman_id":"c7418444-419c-4a04-bc46-f86a3106aa04"},{"name":"Users","item":[{"name":"Get all users","id":"f0de5ce5-fafc-4cb6-a585-633840a8113b","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>(Requires authentication as admin).</p>\n","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0de5ce5-fafc-4cb6-a585-633840a8113b"},{"name":"Update me","id":"a3bf1be7-4562-4849-bb61-e21df4c872fd","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/Sarthak Duggal/Desktop/starter/dev-data/img/aarav.jpg"}]},"url":"{{URL}}/api/v1/users/updateMe","description":"<p>Update the current logged-in User. (can only update Name or Email).</p>\n","urlObject":{"path":["api","v1","users","updateMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a3bf1be7-4562-4849-bb61-e21df4c872fd"},{"name":"Delete the current user","id":"6137d133-968c-4fa6-8689-0b267f082087","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>Deletes the current logged-in user.</p>\n","urlObject":{"path":["api","v1","users","deleteMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6137d133-968c-4fa6-8689-0b267f082087"},{"name":"Delete the user","id":"7e4f2c62-226c-41a1-95ac-af64049864fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/users/5f0d464d7148d323388548f6","description":"<p>(Requires authentication as admin).</p>\n","urlObject":{"path":["api","v1","users","5f0d464d7148d323388548f6"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e4f2c62-226c-41a1-95ac-af64049864fe"},{"name":"Update User","id":"dcba4fc9-ce39-4aa8-aa6c-05b1303e93e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/5f0c03dda5431b2190de3941","description":"<p>(Requires authentication as admin).</p>\n","urlObject":{"path":["api","v1","users","5f0c03dda5431b2190de3941"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dcba4fc9-ce39-4aa8-aa6c-05b1303e93e6"},{"name":"Get User","id":"556b4427-6e74-435b-946e-4a57128f509f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users/5f0c03dda5431b2190de3941","description":"<p>(Requires authentication as admin).</p>\n","urlObject":{"path":["api","v1","users","5f0c03dda5431b2190de3941"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"556b4427-6e74-435b-946e-4a57128f509f"},{"name":"Get current user","id":"a9bcc1b7-3b31-4ffe-95ed-9a2891c44b6c","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>Gets the currently logged-in user.</p>\n","urlObject":{"path":["api","v1","users","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a9bcc1b7-3b31-4ffe-95ed-9a2891c44b6c"}],"id":"41138ae8-b520-4d2f-aaf4-1026bf19a1f6","description":"<p>API to perform certain operations on user.</p>\n","event":[{"listen":"prerequest","script":{"id":"46ebf232-2c59-47cd-b4f4-1ae48b4ec6a1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b11765d4-996d-408e-bddb-5d20d1c7f9a8","type":"text/javascript","exec":[""]}}],"_postman_id":"41138ae8-b520-4d2f-aaf4-1026bf19a1f6"},{"name":"Reviews","item":[{"name":"Get Review","id":"3763dee9-6aab-40da-aec1-0c38cd01a484","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews/5f1149b9a44e041914d09bc3","urlObject":{"path":["api","v1","reviews","5f1149b9a44e041914d09bc3"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3763dee9-6aab-40da-aec1-0c38cd01a484"},{"name":"Get all reviews","id":"e69e76c6-af84-4787-8f28-1b4f71e41163","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews?rating=4","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[{"key":"rating","value":"4"}],"variable":[]}},"response":[],"_postman_id":"e69e76c6-af84-4787-8f28-1b4f71e41163"},{"name":"Post a review","id":"05772de2-1455-42a6-81ad-4c2349f900cd","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 tour was one of the amazing tour I ever had\",\r\n    \"rating\":4.8,\r\n    \"tour\":\"5f10065fc7df653f802414d0\",\r\n    \"user\":\"5f0d469387142d19d8542e31\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews","description":"<p>Restricted only to \"users\".</p>\n","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"05772de2-1455-42a6-81ad-4c2349f900cd"},{"name":"Update a review","id":"c787c395-0b8e-4eb5-bdfe-cd696f859ff1","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    \"review\":\"It was terrible\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews/5f1404f470694a153812ae23","description":"<p>Restricted only to \"users\" &amp; \"admins\".</p>\n","urlObject":{"path":["api","v1","reviews","5f1404f470694a153812ae23"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c787c395-0b8e-4eb5-bdfe-cd696f859ff1"},{"name":"Delete a review","id":"caae990c-7cfd-4532-9775-025c28a0d65d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/reviews/5f141faea013951e4cf2264e","description":"<p>Restricted only to \"users\" &amp; \"admins\".</p>\n","urlObject":{"path":["api","v1","reviews","5f141faea013951e4cf2264e"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"caae990c-7cfd-4532-9775-025c28a0d65d"}],"id":"cabdea92-fd19-4e38-bf4b-72a0fb1b9c54","_postman_id":"cabdea92-fd19-4e38-bf4b-72a0fb1b9c54","description":""},{"name":"Tours/review","item":[{"name":"Post a new review","id":"de669661-5936-4f4b-9825-3a5ab3992684","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"review\":\"terrible\",\r\n    \"rating\":1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/5f1402bdc7791018286056e4/review","description":"<p>Restricted only to \"users\".</p>\n","urlObject":{"path":["api","v1","tours","5f1402bdc7791018286056e4","review"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"de669661-5936-4f4b-9825-3a5ab3992684"},{"name":"Get all reviews on Tour","id":"63f4a25e-4e9a-476d-b122-7431d77096af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2955/review","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2955","review"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"63f4a25e-4e9a-476d-b122-7431d77096af"}],"id":"d0637efc-4794-4e2d-8e60-c908bec8ce3c","_postman_id":"d0637efc-4794-4e2d-8e60-c908bec8ce3c","description":""},{"name":"Authorization","item":[{"name":"Sign-up","event":[{"listen":"test","script":{"id":"261ef36b-da23-4a2b-836d-2032ef19d2ab","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"9409b962-3052-4c6f-94be-0c53bee463ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"testUser\",\r\n    \"email\":\"testUser@gmail.com\",\r\n    \"password\":\"yourPassword\",\r\n    \"confirmPassword\":\"yourPassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/sign-up","description":"<p>Sign-up by entering Email, password and confirmed Password.</p>\n","urlObject":{"path":["api","v1","users","sign-up"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9409b962-3052-4c6f-94be-0c53bee463ca"},{"name":"Forget Password","id":"b4c3dcaa-fc79-4ff8-b957-ccb8f3460398","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"<<Your Email>>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/forgotPassword","description":"<p>Make a forget password request by entering your email.</p>\n","urlObject":{"path":["api","v1","users","forgotPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4c3dcaa-fc79-4ff8-b957-ccb8f3460398"},{"name":"Reset Password","event":[{"listen":"test","script":{"id":"698b3454-9d09-425d-8d79-4765263c5ab0","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"8085cb7d-ef51-4fee-a8bb-23117021d3f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"newpass2910\",\r\n    \"confirmPassword\":\"newpass2910\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/resetPassword/85580319b40ae55f3da43c58c6e78c04b26d3bc430121c08b0b917653469a127","description":"<p>Enter the reset token, from your email after making a forget password request and enter the new password.</p>\n","urlObject":{"path":["api","v1","users","resetPassword","85580319b40ae55f3da43c58c6e78c04b26d3bc430121c08b0b917653469a127"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8085cb7d-ef51-4fee-a8bb-23117021d3f2"},{"name":"Update Password","event":[{"listen":"test","script":{"id":"28f87f2f-4c3e-44f9-ac3c-12b2771999b6","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"637956b2-ec6f-46a2-9e59-cbdc1d19375b","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\":\"test1234\",\r\n    \"password\":\"newPassword\",\r\n    \"confirmPassword\":\"newPassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/updateMyPassword","description":"<p>Update your password by entering the new password with the previous one.</p>\n","urlObject":{"path":["api","v1","users","updateMyPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"637956b2-ec6f-46a2-9e59-cbdc1d19375b"},{"name":"Login","event":[{"listen":"test","script":{"id":"cd25381c-8d3b-48ff-91d1-4a60a113a9de","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"73fded32-8c57-41d0-9fda-1328d3d94cd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"admin@natours.io\",\r\n    \"password\":\"iamtheadminbitch@1012\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/login","description":"<p>Login by entering your Email and password.</p>\n","urlObject":{"path":["api","v1","users","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"73fded32-8c57-41d0-9fda-1328d3d94cd6"}],"id":"585e6fea-9414-4ff1-9822-3b779bf78e59","_postman_id":"585e6fea-9414-4ff1-9822-3b779bf78e59","description":""},{"name":"Booking","item":[{"name":"Get all bookings","id":"86a231d2-41f1-4685-8aae-36f178e7fad6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/booking","urlObject":{"path":["api","v1","booking"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86a231d2-41f1-4685-8aae-36f178e7fad6"},{"name":"Delete booking","id":"1c795ba5-81fd-4b4d-9ec0-1423914567ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/booking/5f3281155fe6a408300c8339","urlObject":{"path":["api","v1","booking","5f3281155fe6a408300c8339"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c795ba5-81fd-4b4d-9ec0-1423914567ae"}],"id":"5839665b-461e-469f-a515-21173d0d3a9b","_postman_id":"5839665b-461e-469f-a515-21173d0d3a9b","description":""}],"event":[{"listen":"prerequest","script":{"id":"850e52ce-5b62-4e8d-953e-970cea2a2571","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d878da5e-e78f-4011-a05a-8e1971751303","type":"text/javascript","exec":[""]}}]}