{"info":{"_postman_id":"b838e8c6-5dfe-438f-a0da-0adad502949c","name":"Express Natours API","description":"<html><head></head><body><p>The Natours API contain endpoint for Users, Tours, Reviews, Bookings and Stripe.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"27920009","collectionId":"b838e8c6-5dfe-438f-a0da-0adad502949c","publishedId":"2sA3QtcqG8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-22T03:23:55.000Z"},"item":[{"name":"Public","item":[{"name":"Tours","item":[{"name":"Get All Tours","event":[{"listen":"test","script":{"id":"1531cdcd-7fd2-460e-b1ab-34d03eef284e","exec":[""],"type":"text/javascript","packages":{}}}],"id":"f34586fa-8950-4efd-a818-9d028a8fec13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours?page=1&duration[gte]=2&sort=price","description":"<p>Use this endpoint to retrieve a list of tours.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/tours</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours"],"host":["{{URL}}api"],"query":[{"description":{"content":"<p>query for pagination</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>query for duration, supports gt, gte, lt. lte operators</p>\n","type":"text/plain"},"key":"duration[gte]","value":"2"},{"description":{"content":"<p>query to sort by price</p>\n","type":"text/plain"},"key":"sort","value":"price"}],"variable":[]}},"response":[{"id":"858fb328-a644-4121-b01e-d9e02b725679","name":"Get All Tours","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"10792"},{"key":"ETag","value":"W/\"2a28-wM55kgn8RlfpHKUegurRs56SSb4\""},{"key":"Date","value":"Fri, 21 Jun 2024 05:00:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 4,\n    \"data\": {\n        \"tours\": [\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -115.570154,\n                        51.178456\n                    ],\n                    \"description\": \"Banff, CAN\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c2951\",\n                \"name\": \"The Forest Hiker\",\n                \"duration\": 5,\n                \"maxGroupSize\": 25,\n                \"difficulty\": \"easy\",\n                \"ratingsAverage\": 5,\n                \"ratingsCount\": 9,\n                \"price\": 397,\n                \"summary\": \"Breathtaking hike through the Canadian Banff National Park\",\n                \"description\": \"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\\nLorem ipsum dolor sit amet, 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.\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541557/natours/tours/tour-5c88fa8cf4afda39709c2951-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541565/natours/tours/tour-5c88fa8cf4afda39709c2951-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541565/natours/tours/tour-5c88fa8cf4afda39709c2951-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541561/natours/tours/tour-5c88fa8cf4afda39709c2951-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-04-25T09:00:00.000Z\",\n                    \"2024-07-20T09:00:00.000Z\",\n                    \"2024-10-05T09:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -116.214531,\n                            51.417611\n                        ],\n                        \"description\": \"Banff National Park\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c2954\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -118.076152,\n                            52.875223\n                        ],\n                        \"description\": \"Jasper National Park\",\n                        \"day\": 3,\n                        \"_id\": \"5c88fa8cf4afda39709c2953\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -117.490309,\n                            51.261937\n                        ],\n                        \"description\": \"Glacier National Park of Canada\",\n                        \"day\": 5,\n                        \"_id\": \"5c88fa8cf4afda39709c2952\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                        \"email\": \"kate@natours.com\",\n                        \"name\": \"Kate Morrison\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a1f292f8fb814b56fa184\",\n                        \"email\": \"guide@natours.com\",\n                        \"name\": \"Leo Gillespie\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f292f8fb814b56fa184.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.444Z\",\n                \"slug\": \"the_forest_hiker\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -106.822318,\n                        39.190872\n                    ],\n                    \"description\": \"Aspen, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c295a\",\n                \"name\": \"The Snow Adventurer\",\n                \"duration\": 4,\n                \"maxGroupSize\": 10,\n                \"difficulty\": \"difficult\",\n                \"ratingsAverage\": 4.5,\n                \"ratingsCount\": 6,\n                \"price\": 997,\n                \"summary\": \"Exciting adventure in the snow with snowboarding and skiing\",\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!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295a-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534629/natours/tours/tour-5c88fa8cf4afda39709c295a-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c295a-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534629/natours/tours/tour-5c88fa8cf4afda39709c295a-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2025-01-05T10:00:00.000Z\",\n                    \"2025-02-12T10:00:00.000Z\",\n                    \"2026-01-06T10:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -106.855385,\n                            39.182677\n                        ],\n                        \"description\": \"Aspen Highlands\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c295c\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -106.516623,\n                            39.60499\n                        ],\n                        \"description\": \"Beaver Creek\",\n                        \"day\": 2,\n                        \"_id\": \"5c88fa8cf4afda39709c295b\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                        \"email\": \"jennifer@natours.com\",\n                        \"name\": \"Jennifer Hardy\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.496Z\",\n                \"slug\": \"the_snow_adventurer\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -73.985141,\n                        40.75894\n                    ],\n                    \"description\": \"NYC, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c295d\",\n                \"name\": \"The City Wanderer\",\n                \"duration\": 9,\n                \"maxGroupSize\": 20,\n                \"difficulty\": \"easy\",\n                \"ratingsAverage\": 4.6,\n                \"ratingsCount\": 5,\n                \"price\": 1197,\n                \"summary\": \"Living the life of Wanderlust in the US' most beatiful cities\",\n                \"description\": \"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat lorem ipsum dolor sit amet.\\nConsectetur 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, nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295d-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534628/natours/tours/tour-5c88fa8cf4afda39709c295d-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534632/natours/tours/tour-5c88fa8cf4afda39709c295d-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534632/natours/tours/tour-5c88fa8cf4afda39709c295d-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-03-11T10:00:00.000Z\",\n                    \"2024-05-02T09:00:00.000Z\",\n                    \"2024-06-09T09:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -73.967696,\n                            40.781821\n                        ],\n                        \"description\": \"New York\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c2960\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -118.324396,\n                            34.097984\n                        ],\n                        \"description\": \"Los Angeles\",\n                        \"day\": 3,\n                        \"_id\": \"5c88fa8cf4afda39709c295f\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -122.408865,\n                            37.787825\n                        ],\n                        \"description\": \"San Francisco\",\n                        \"day\": 5,\n                        \"_id\": \"5c88fa8cf4afda39709c295e\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a22c62f8fb814b56fa18b\",\n                        \"email\": \"miyah@natours.com\",\n                        \"name\": \"Miyah Myles\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a22c62f8fb814b56fa18b.jpg\",\n                        \"role\": \"lead-guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                        \"email\": \"kate@natours.com\",\n                        \"name\": \"Kate Morrison\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.391Z\",\n                \"slug\": \"the_city_wanderer\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -115.172652,\n                        36.110904\n                    ],\n                    \"description\": \"Las Vegas, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c2961\",\n                \"name\": \"The Park Camper\",\n                \"duration\": 10,\n                \"maxGroupSize\": 15,\n                \"difficulty\": \"medium\",\n                \"ratingsAverage\": 4.7,\n                \"ratingsCount\": 7,\n                \"price\": 1497,\n                \"summary\": \"Breathing in Nature in America's most spectacular National Parks\",\n                \"description\": \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\\nDuis aute irure 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!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534627/natours/tours/tour-5c88fa8cf4afda39709c2961-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c2961-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534633/natours/tours/tour-5c88fa8cf4afda39709c2961-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c2961-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-08-05T09:00:00.000Z\",\n                    \"2025-03-20T10:00:00.000Z\",\n                    \"2025-08-12T09:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -112.987418,\n                            37.198125\n                        ],\n                        \"description\": \"Zion Canyon National Park\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c2965\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -111.376161,\n                            36.86438\n                        ],\n                        \"description\": \"Antelope Canyon\",\n                        \"day\": 4,\n                        \"_id\": \"5c88fa8cf4afda39709c2964\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -112.115763,\n                            36.058973\n                        ],\n                        \"description\": \"Grand Canyon National Park\",\n                        \"day\": 5,\n                        \"_id\": \"5c88fa8cf4afda39709c2963\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -116.107963,\n                            34.011646\n                        ],\n                        \"description\": \"Joshua Tree National Park\",\n                        \"day\": 9,\n                        \"_id\": \"5c88fa8cf4afda39709c2962\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a21f22f8fb814b56fa18a\",\n                        \"email\": \"lead-guide@natours.com\",\n                        \"name\": \"Aarav Lynn\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a21f22f8fb814b56fa18a.jpg\",\n                        \"role\": \"lead-guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                        \"email\": \"kate@natours.com\",\n                        \"name\": \"Kate Morrison\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.868Z\",\n                \"slug\": \"the_park_camper\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"f34586fa-8950-4efd-a818-9d028a8fec13"},{"name":"Get (public) Statistics for Tours","event":[{"listen":"test","script":{"id":"f8512f31-97d8-4d86-b2ca-eb2a817f64c8","exec":[""],"type":"text/javascript","packages":{}}}],"id":"d8a8e861-781d-4e02-adc9-0a52a7cb7ec7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours/stats","description":"<p>Use this endpoint to retrieve (public) statistics for tours.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/tours/stats</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours","stats"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"1a464ae3-8ffc-4ed8-b761-70b995f4cf7f","name":"Get (public) Statistics for Tours","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/stats"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"436"},{"key":"ETag","value":"W/\"1b4-kW+SAg7Cu5XolCi8BFTItrQ+dUE\""},{"key":"Date","value":"Fri, 21 Jun 2024 05:16:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"stats\": [\n            {\n                \"_id\": \"difficult\",\n                \"avgRating\": 4.5,\n                \"avgPrice\": 997,\n                \"minPrice\": 997,\n                \"maxPrice\": 997,\n                \"totalRatingsCount\": 6,\n                \"totalToursCount\": 1\n            },\n            {\n                \"_id\": \"easy\",\n                \"avgRating\": 4.766666666666667,\n                \"avgPrice\": 1030.3333333333333,\n                \"minPrice\": 397,\n                \"maxPrice\": 1497,\n                \"totalRatingsCount\": 21,\n                \"totalToursCount\": 3\n            },\n            {\n                \"_id\": \"medium\",\n                \"avgRating\": 4.75,\n                \"avgPrice\": 2247,\n                \"minPrice\": 1497,\n                \"maxPrice\": 2997,\n                \"totalRatingsCount\": 13,\n                \"totalToursCount\": 2\n            }\n        ]\n    }\n}"}],"_postman_id":"d8a8e861-781d-4e02-adc9-0a52a7cb7ec7"},{"name":"Get Top 5 Cheapest Tours","event":[{"listen":"test","script":{"id":"fdd006e6-1ac6-4a1a-b606-541e370a028f","exec":[""],"type":"text/javascript","packages":{}}}],"id":"d75ade92-f8a9-4c61-a880-7396598bab86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/top-5-cheap","description":"<p>Use this endpoint to retrieve a list of the 5 cheapest tours.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/</code>tours/top-5-cheap</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours","top-5-cheap"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"94810982-64ec-4665-8f0e-2e2a47341288","name":"Get Top 5 Cheapest Tours","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/top-5-cheap"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"13417"},{"key":"ETag","value":"W/\"3469-IUvsufK35JrlOJhAsDO/lgmM5ww\""},{"key":"Date","value":"Fri, 21 Jun 2024 05:03:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 5,\n    \"data\": {\n        \"tours\": [\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -115.570154,\n                        51.178456\n                    ],\n                    \"description\": \"Banff, CAN\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c2951\",\n                \"name\": \"The Forest Hiker\",\n                \"duration\": 5,\n                \"maxGroupSize\": 25,\n                \"difficulty\": \"easy\",\n                \"ratingsAverage\": 5,\n                \"ratingsCount\": 9,\n                \"price\": 397,\n                \"summary\": \"Breathtaking hike through the Canadian Banff National Park\",\n                \"description\": \"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\\nLorem ipsum dolor sit amet, 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.\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541557/natours/tours/tour-5c88fa8cf4afda39709c2951-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541565/natours/tours/tour-5c88fa8cf4afda39709c2951-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541565/natours/tours/tour-5c88fa8cf4afda39709c2951-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541561/natours/tours/tour-5c88fa8cf4afda39709c2951-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-04-25T09:00:00.000Z\",\n                    \"2024-07-20T09:00:00.000Z\",\n                    \"2024-10-05T09:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -116.214531,\n                            51.417611\n                        ],\n                        \"description\": \"Banff National Park\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c2954\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -118.076152,\n                            52.875223\n                        ],\n                        \"description\": \"Jasper National Park\",\n                        \"day\": 3,\n                        \"_id\": \"5c88fa8cf4afda39709c2953\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -117.490309,\n                            51.261937\n                        ],\n                        \"description\": \"Glacier National Park of Canada\",\n                        \"day\": 5,\n                        \"_id\": \"5c88fa8cf4afda39709c2952\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                        \"email\": \"kate@natours.com\",\n                        \"name\": \"Kate Morrison\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a1f292f8fb814b56fa184\",\n                        \"email\": \"guide@natours.com\",\n                        \"name\": \"Leo Gillespie\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f292f8fb814b56fa184.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.444Z\",\n                \"slug\": \"the_forest_hiker\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -106.822318,\n                        39.190872\n                    ],\n                    \"description\": \"Aspen, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c295a\",\n                \"name\": \"The Snow Adventurer\",\n                \"duration\": 4,\n                \"maxGroupSize\": 10,\n                \"difficulty\": \"difficult\",\n                \"ratingsAverage\": 4.5,\n                \"ratingsCount\": 6,\n                \"price\": 997,\n                \"summary\": \"Exciting adventure in the snow with snowboarding and skiing\",\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!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295a-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534629/natours/tours/tour-5c88fa8cf4afda39709c295a-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c295a-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534629/natours/tours/tour-5c88fa8cf4afda39709c295a-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2025-01-05T10:00:00.000Z\",\n                    \"2025-02-12T10:00:00.000Z\",\n                    \"2026-01-06T10:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -106.855385,\n                            39.182677\n                        ],\n                        \"description\": \"Aspen Highlands\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c295c\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -106.516623,\n                            39.60499\n                        ],\n                        \"description\": \"Beaver Creek\",\n                        \"day\": 2,\n                        \"_id\": \"5c88fa8cf4afda39709c295b\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                        \"email\": \"jennifer@natours.com\",\n                        \"name\": \"Jennifer Hardy\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.496Z\",\n                \"slug\": \"the_snow_adventurer\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -73.985141,\n                        40.75894\n                    ],\n                    \"description\": \"NYC, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c295d\",\n                \"name\": \"The City Wanderer\",\n                \"duration\": 9,\n                \"maxGroupSize\": 20,\n                \"difficulty\": \"easy\",\n                \"ratingsAverage\": 4.6,\n                \"ratingsCount\": 5,\n                \"price\": 1197,\n                \"summary\": \"Living the life of Wanderlust in the US' most beatiful cities\",\n                \"description\": \"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat lorem ipsum dolor sit amet.\\nConsectetur 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, nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295d-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534628/natours/tours/tour-5c88fa8cf4afda39709c295d-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534632/natours/tours/tour-5c88fa8cf4afda39709c295d-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534632/natours/tours/tour-5c88fa8cf4afda39709c295d-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-03-11T10:00:00.000Z\",\n                    \"2024-05-02T09:00:00.000Z\",\n                    \"2024-06-09T09:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -73.967696,\n                            40.781821\n                        ],\n                        \"description\": \"New York\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c2960\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -118.324396,\n                            34.097984\n                        ],\n                        \"description\": \"Los Angeles\",\n                        \"day\": 3,\n                        \"_id\": \"5c88fa8cf4afda39709c295f\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -122.408865,\n                            37.787825\n                        ],\n                        \"description\": \"San Francisco\",\n                        \"day\": 5,\n                        \"_id\": \"5c88fa8cf4afda39709c295e\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a22c62f8fb814b56fa18b\",\n                        \"email\": \"miyah@natours.com\",\n                        \"name\": \"Miyah Myles\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a22c62f8fb814b56fa18b.jpg\",\n                        \"role\": \"lead-guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                        \"email\": \"kate@natours.com\",\n                        \"name\": \"Kate Morrison\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.391Z\",\n                \"slug\": \"the_city_wanderer\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -114.406097,\n                        62.439943\n                    ],\n                    \"description\": \"Yellowknife, CAN\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c2974\",\n                \"name\": \"The Northern Lights\",\n                \"duration\": 3,\n                \"maxGroupSize\": 12,\n                \"difficulty\": \"easy\",\n                \"ratingsAverage\": 4.7,\n                \"ratingsCount\": 7,\n                \"price\": 1497,\n                \"summary\": \"Enjoy the Northern Lights in one of the best places in the world\",\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!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534627/natours/tours/tour-5c88fa8cf4afda39709c2974-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534630/natours/tours/tour-5c88fa8cf4afda39709c2974-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534630/natours/tours/tour-5c88fa8cf4afda39709c2974-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c2974-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-12-16T10:00:00.000Z\",\n                    \"2025-01-16T10:00:00.000Z\",\n                    \"2025-12-12T10:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -114.406097,\n                            62.439943\n                        ],\n                        \"description\": \"Yellowknife\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c2975\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a21f22f8fb814b56fa18a\",\n                        \"email\": \"lead-guide@natours.com\",\n                        \"name\": \"Aarav Lynn\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a21f22f8fb814b56fa18a.jpg\",\n                        \"role\": \"lead-guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                        \"email\": \"kate@natours.com\",\n                        \"name\": \"Kate Morrison\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.444Z\",\n                \"slug\": \"the_northern_lights\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -115.172652,\n                        36.110904\n                    ],\n                    \"description\": \"Las Vegas, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c2961\",\n                \"name\": \"The Park Camper\",\n                \"duration\": 10,\n                \"maxGroupSize\": 15,\n                \"difficulty\": \"medium\",\n                \"ratingsAverage\": 4.7,\n                \"ratingsCount\": 7,\n                \"price\": 1497,\n                \"summary\": \"Breathing in Nature in America's most spectacular National Parks\",\n                \"description\": \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\\nDuis aute irure 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!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534627/natours/tours/tour-5c88fa8cf4afda39709c2961-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c2961-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534633/natours/tours/tour-5c88fa8cf4afda39709c2961-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c2961-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-08-05T09:00:00.000Z\",\n                    \"2025-03-20T10:00:00.000Z\",\n                    \"2025-08-12T09:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -112.987418,\n                            37.198125\n                        ],\n                        \"description\": \"Zion Canyon National Park\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c2965\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -111.376161,\n                            36.86438\n                        ],\n                        \"description\": \"Antelope Canyon\",\n                        \"day\": 4,\n                        \"_id\": \"5c88fa8cf4afda39709c2964\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -112.115763,\n                            36.058973\n                        ],\n                        \"description\": \"Grand Canyon National Park\",\n                        \"day\": 5,\n                        \"_id\": \"5c88fa8cf4afda39709c2963\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -116.107963,\n                            34.011646\n                        ],\n                        \"description\": \"Joshua Tree National Park\",\n                        \"day\": 9,\n                        \"_id\": \"5c88fa8cf4afda39709c2962\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a21f22f8fb814b56fa18a\",\n                        \"email\": \"lead-guide@natours.com\",\n                        \"name\": \"Aarav Lynn\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a21f22f8fb814b56fa18a.jpg\",\n                        \"role\": \"lead-guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                        \"email\": \"kate@natours.com\",\n                        \"name\": \"Kate Morrison\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.868Z\",\n                \"slug\": \"the_park_camper\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"d75ade92-f8a9-4c61-a880-7396598bab86"},{"name":"Get Tour by id","event":[{"listen":"test","script":{"id":"b443689e-d0bb-4bbe-b4ac-bd3bd57892e0","exec":[""],"type":"text/javascript","packages":{}}}],"id":"9a3b514e-0a6d-43cb-9eee-4d6b869138e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c295a","description":"<p>Use this endpoint to retrieve a tour by ID</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}</code>api/v1/tours/:id</p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c295a"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"1e0c9b53-5db2-4be7-8300-3b56291a553a","name":"Get Tour by id","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c295a"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2465"},{"key":"ETag","value":"W/\"9a1-J6h01f5F/qq4+w8WJMlx9VYSDX0\""},{"key":"Date","value":"Fri, 21 Jun 2024 05:22:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"tour\": {\n            \"startLocation\": {\n                \"type\": \"Point\",\n                \"coordinates\": [\n                    -106.822318,\n                    39.190872\n                ],\n                \"description\": \"Aspen, USA\"\n            },\n            \"_id\": \"5c88fa8cf4afda39709c295a\",\n            \"name\": \"The Snow Adventurer\",\n            \"duration\": 4,\n            \"maxGroupSize\": 10,\n            \"difficulty\": \"difficult\",\n            \"ratingsAverage\": 4.5,\n            \"ratingsCount\": 6,\n            \"price\": 997,\n            \"summary\": \"Exciting adventure in the snow with snowboarding and skiing\",\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!\",\n            \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295a-cover.jpg\",\n            \"images\": [\n                \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534629/natours/tours/tour-5c88fa8cf4afda39709c295a-image-1.jpg\",\n                \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c295a-image-2.jpg\",\n                \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534629/natours/tours/tour-5c88fa8cf4afda39709c295a-image-3.jpg\"\n            ],\n            \"startDates\": [\n                \"2025-01-05T10:00:00.000Z\",\n                \"2025-02-12T10:00:00.000Z\",\n                \"2026-01-06T10:00:00.000Z\"\n            ],\n            \"locations\": [\n                {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -106.855385,\n                        39.182677\n                    ],\n                    \"description\": \"Aspen Highlands\",\n                    \"day\": 1,\n                    \"_id\": \"5c88fa8cf4afda39709c295c\"\n                },\n                {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -106.516623,\n                        39.60499\n                    ],\n                    \"description\": \"Beaver Creek\",\n                    \"day\": 2,\n                    \"_id\": \"5c88fa8cf4afda39709c295b\"\n                }\n            ],\n            \"guides\": [\n                {\n                    \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                    \"email\": \"ben@natours.com\",\n                    \"name\": \"Ben Hadley\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                    \"role\": \"guide\",\n                    \"isActive\": true,\n                    \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                    \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                },\n                {\n                    \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                    \"email\": \"jennifer@natours.com\",\n                    \"name\": \"Jennifer Hardy\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                    \"role\": \"guide\",\n                    \"isActive\": true,\n                    \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                    \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                }\n            ],\n            \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n            \"updatedAt\": \"2024-05-28T14:31:10.496Z\",\n            \"slug\": \"the_snow_adventurer\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"9a3b514e-0a6d-43cb-9eee-4d6b869138e0"},{"name":"Get Tours within Distance","event":[{"listen":"test","script":{"id":"085d9685-92c6-4832-a1d5-043af4cf880e","exec":[""],"type":"text/javascript","packages":{}}}],"id":"64df8240-e56d-415e-8bf1-0eafeaa37a38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/within/400/center/34,-118/unit/mi","description":"<p>Use this endpoint to retrieve a list of tours within a specified distance from a given center point, and a given unit (mi or km).</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}</code>api/v1/tours/within/:distance/center/:latlng/unit/:unit</p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li><p>distance: number</p>\n</li>\n<li><p>latlng: string (\"lat,lng\" comma-separated)</p>\n</li>\n<li><p>unit: \"mi\" | \"km\"</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours","within","400","center","34,-118","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"8e354307-5650-4dd5-accb-600b31df67aa","name":"Get Tours within Distance","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/within/400/center/34,-118/unit/mi"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"9410"},{"key":"ETag","value":"W/\"24c2-ZlLnDBHnsA3AnHICOQdHTycuu+M\""},{"key":"Date","value":"Fri, 21 Jun 2024 09:48:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 3,\n    \"data\": {\n        \"tours\": [\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -115.172652,\n                        36.110904\n                    ],\n                    \"description\": \"Las Vegas, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c2961\",\n                \"name\": \"The Park Camper\",\n                \"duration\": 10,\n                \"maxGroupSize\": 15,\n                \"difficulty\": \"medium\",\n                \"ratingsAverage\": 4.7,\n                \"ratingsCount\": 7,\n                \"price\": 1497,\n                \"summary\": \"Breathing in Nature in America's most spectacular National Parks\",\n                \"description\": \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\\nDuis aute irure 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!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534627/natours/tours/tour-5c88fa8cf4afda39709c2961-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c2961-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534633/natours/tours/tour-5c88fa8cf4afda39709c2961-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534634/natours/tours/tour-5c88fa8cf4afda39709c2961-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-08-05T09:00:00.000Z\",\n                    \"2025-03-20T10:00:00.000Z\",\n                    \"2025-08-12T09:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -112.987418,\n                            37.198125\n                        ],\n                        \"description\": \"Zion Canyon National Park\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c2965\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -111.376161,\n                            36.86438\n                        ],\n                        \"description\": \"Antelope Canyon\",\n                        \"day\": 4,\n                        \"_id\": \"5c88fa8cf4afda39709c2964\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -112.115763,\n                            36.058973\n                        ],\n                        \"description\": \"Grand Canyon National Park\",\n                        \"day\": 5,\n                        \"_id\": \"5c88fa8cf4afda39709c2963\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -116.107963,\n                            34.011646\n                        ],\n                        \"description\": \"Joshua Tree National Park\",\n                        \"day\": 9,\n                        \"_id\": \"5c88fa8cf4afda39709c2962\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a21f22f8fb814b56fa18a\",\n                        \"email\": \"lead-guide@natours.com\",\n                        \"name\": \"Aarav Lynn\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a21f22f8fb814b56fa18a.jpg\",\n                        \"role\": \"lead-guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                        \"email\": \"kate@natours.com\",\n                        \"name\": \"Kate Morrison\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.868Z\",\n                \"slug\": \"the_park_camper\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -118.803461,\n                        34.006072\n                    ],\n                    \"description\": \"Malibu, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c2966\",\n                \"name\": \"The Sports Lover\",\n                \"duration\": 14,\n                \"maxGroupSize\": 8,\n                \"difficulty\": \"difficult\",\n                \"ratingsAverage\": 3.9,\n                \"ratingsCount\": 7,\n                \"price\": 2997,\n                \"summary\": \"Surfing, skating, parajumping, rock climbing and more, all in one tour\",\n                \"description\": \"Nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Lorem ipsum dolor sit amet, consectetur adipisicing elit, 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.\\nVoluptate 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. Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur!\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534627/natours/tours/tour-5c88fa8cf4afda39709c2966-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534635/natours/tours/tour-5c88fa8cf4afda39709c2966-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534635/natours/tours/tour-5c88fa8cf4afda39709c2966-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534635/natours/tours/tour-5c88fa8cf4afda39709c2966-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-07-19T09:00:00.000Z\",\n                    \"2024-09-06T09:00:00.000Z\",\n                    \"2025-03-18T10:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -118.809361,\n                            34.003098\n                        ],\n                        \"description\": \"Point Dume Beach\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c296b\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -118.47549,\n                            33.987367\n                        ],\n                        \"description\": \"Venice Skate Park\",\n                        \"day\": 4,\n                        \"_id\": \"5c88fa8cf4afda39709c296a\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -116.830104,\n                            33.022843\n                        ],\n                        \"description\": \"San Diego Skydive\",\n                        \"day\": 6,\n                        \"_id\": \"5c88fa8cf4afda39709c2969\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -118.4547,\n                            35.710359\n                        ],\n                        \"description\": \"Kern River Rafting\",\n                        \"day\": 7,\n                        \"_id\": \"5c88fa8cf4afda39709c2968\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -119.600492,\n                            37.742371\n                        ],\n                        \"description\": \"Yosemite National Park\",\n                        \"day\": 10,\n                        \"_id\": \"5c88fa8cf4afda39709c2967\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a21f22f8fb814b56fa18a\",\n                        \"email\": \"lead-guide@natours.com\",\n                        \"name\": \"Aarav Lynn\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a21f22f8fb814b56fa18a.jpg\",\n                        \"role\": \"lead-guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a1f292f8fb814b56fa184\",\n                        \"email\": \"guide@natours.com\",\n                        \"name\": \"Leo Gillespie\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f292f8fb814b56fa184.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                        \"email\": \"jennifer@natours.com\",\n                        \"name\": \"Jennifer Hardy\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.393Z\",\n                \"slug\": \"the_sports_lover\",\n                \"__v\": 0\n            },\n            {\n                \"startLocation\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        -122.29286,\n                        38.294065\n                    ],\n                    \"description\": \"Napa, USA\"\n                },\n                \"_id\": \"5c88fa8cf4afda39709c296c\",\n                \"name\": \"The Wine Taster\",\n                \"duration\": 5,\n                \"maxGroupSize\": 8,\n                \"difficulty\": \"easy\",\n                \"ratingsAverage\": 4.4,\n                \"ratingsCount\": 7,\n                \"price\": 1997,\n                \"summary\": \"Exquisite wines, scenic views, exclusive barrel tastings,  and much more\",\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.\",\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534625/natours/tours/tour-5c88fa8cf4afda39709c296c-cover.jpg\",\n                \"images\": [\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534629/natours/tours/tour-5c88fa8cf4afda39709c296c-image-1.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534630/natours/tours/tour-5c88fa8cf4afda39709c296c-image-2.jpg\",\n                    \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534627/natours/tours/tour-5c88fa8cf4afda39709c296c-image-3.jpg\"\n                ],\n                \"startDates\": [\n                    \"2024-02-12T10:00:00.000Z\",\n                    \"2024-04-14T09:00:00.000Z\",\n                    \"2024-09-01T09:00:00.000Z\"\n                ],\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -122.479887,\n                            38.510312\n                        ],\n                        \"description\": \"Beringer Vineyards\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c296f\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -122.582948,\n                            38.585707\n                        ],\n                        \"description\": \"Clos Pegase Winery & Tasting Room\",\n                        \"day\": 3,\n                        \"_id\": \"5c88fa8cf4afda39709c296e\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -122.434697,\n                            38.482181\n                        ],\n                        \"description\": \"Raymond Vineyard and Cellar\",\n                        \"day\": 5,\n                        \"_id\": \"5c88fa8cf4afda39709c296d\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a22c62f8fb814b56fa18b\",\n                        \"email\": \"miyah@natours.com\",\n                        \"name\": \"Miyah Myles\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a22c62f8fb814b56fa18b.jpg\",\n                        \"role\": \"lead-guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"createdAt\": \"2024-05-28T14:31:03.892Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.495Z\",\n                \"slug\": \"the_wine_taster\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"64df8240-e56d-415e-8bf1-0eafeaa37a38"},{"name":"Get  Distances to Tours From Point","event":[{"listen":"test","script":{"id":"7e752321-4ad2-4ec4-8958-e552460f211c","exec":[""],"type":"text/javascript","packages":{}}}],"id":"72341d91-bdf1-4882-9cff-662a01f93020","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/distances-from/45,-118/unit/mi","description":"<p>Use this endpoint to retrieve a list of distances to all tours, from a given center point and a given unit (mi or km).</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}</code>api/v1/tours/distances-from/:latlng/unit/:unit</p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li><p>latlng: string (\"lat,lng\" comma-separated)</p>\n</li>\n<li><p>unit: \"mi\" | \"km\"</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours","distances-from","45,-118","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"a6847019-b20c-40aa-b63e-f7ac38dd72d1","name":"Get  Distances to Tours From Point - DONE","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/distances-from/45,-118/unit/mi"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"766"},{"key":"ETag","value":"W/\"2fe-eR7KFS1sLcSr4M8C+T6YBTmgO44\""},{"key":"Date","value":"Fri, 21 Jun 2024 09:53:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"distances\": [\n            {\n                \"_id\": \"5c88fa8cf4afda39709c2951\",\n                \"name\": \"The Forest Hiker\",\n                \"distance\": 441.7994929072311\n            },\n            {\n                \"_id\": \"5c88fa8cf4afda39709c296c\",\n                \"name\": \"The Wine Taster\",\n                \"distance\": 513.9967810160077\n            },\n            {\n                \"_id\": \"5c88fa8cf4afda39709c2961\",\n                \"name\": \"The Park Camper\",\n                \"distance\": 632.4471973312529\n            },\n            {\n                \"_id\": \"5c88fa8cf4afda39709c2970\",\n                \"name\": \"The Star Gazer\",\n                \"distance\": 691.0004607366742\n            },\n            {\n                \"_id\": \"5c88fa8cf4afda39709c295a\",\n                \"name\": \"The Snow Adventurer\",\n                \"distance\": 699.3990960429285\n            },\n            {\n                \"_id\": \"5c88fa8cf4afda39709c2966\",\n                \"name\": \"The Sports Lover\",\n                \"distance\": 761.6501114222358\n            },\n            {\n                \"_id\": \"5c88fa8cf4afda39709c2974\",\n                \"name\": \"The Northern Lights\",\n                \"distance\": 1214.805228071238\n            },\n            {\n                \"_id\": \"5c88fa8cf4afda39709c295d\",\n                \"name\": \"The City Wanderer\",\n                \"distance\": 2222.456616747751\n            }\n        ]\n    }\n}"}],"_postman_id":"72341d91-bdf1-4882-9cff-662a01f93020"}],"id":"6828fd5a-12e0-4843-a9a9-8ae0928e6f1c","description":"<p>Public endpoints for tours.</p>\n<p>You can fetch:</p>\n<ul>\n<li><p>all tours</p>\n</li>\n<li><p>1 tour by id</p>\n</li>\n<li><p>5 cheapest tours</p>\n</li>\n<li><p>all tours within a distance</p>\n</li>\n<li><p>distances to all tours from a point</p>\n</li>\n<li><p>(partial) tours statistics</p>\n</li>\n</ul>\n","_postman_id":"6828fd5a-12e0-4843-a9a9-8ae0928e6f1c"},{"name":"Auth","item":[{"name":"Sign Up","event":[{"listen":"test","script":{"id":"c3581bdc-e6a5-4065-a3dc-70ce65e853f9","exec":[""],"type":"text/javascript","packages":{}}}],"id":"cc24a379-5aed-4177-b904-dc8d39bf349a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"name\": \"jane doe\",\n    \"email\": \"jane3a.doe@example.com\",\n    \"password\":  \"123456\",\n    \"passwordConfirmation\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/signup","description":"<p>Use this endpoint to sign up.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>{{URL}}api/</code>v1/users/signup</p>\n</li>\n</ul>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>name</code> (string, required): The name of the user.</p>\n</li>\n<li><p><code>email</code> (string, required): The email address of the user.</p>\n</li>\n<li><p><code>password</code> (string, required): The password for the user account.</p>\n</li>\n<li><p><code>passwordConfirmation</code> (string, required): Confirmation of the password.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 409 Conflict if email already exists</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","users","signup"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"7f0f5079-df21-495f-a6df-4f0c1fd32a09","name":"Sign Up","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"name\": \"jane doe\",\n    \"email\": \"jane.doe04@example.com\",\n    \"password\":  \"123456\",\n    \"passwordConfirmation\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"238"},{"key":"ETag","value":"W/\"ee-sl7erVvUdBmylmHEtKQH5Ejt+UE\""},{"key":"Date","value":"Tue, 28 May 2024 14:10:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"email\": \"jane.doe04@example.com\",\n            \"name\": \"jane doe\",\n            \"role\": \"user\",\n            \"isActive\": true,\n            \"_id\": \"6655e5e9e9183a387f3b0a4d\",\n            \"createdAt\": \"2024-05-28T14:10:49.605Z\",\n            \"updatedAt\": \"2024-05-28T14:10:49.605Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"cc24a379-5aed-4177-b904-dc8d39bf349a"},{"name":"Login","event":[{"listen":"test","script":{"id":"f4fdbdad-b9e3-4b5e-8709-8678675d263e","exec":["// Body","var responseBody = pm.response.json();","","var currentUserId = responseBody.data.user._id;","pm.environment.set(\"currentUserId\", currentUserId.toString());","","// Cookies","var accessToken = pm.cookies.get('accessToken');","var refreshToken = pm.cookies.get('refreshToken');","","postman.setEnvironmentVariable('accessToken',accessToken)","postman.setEnvironmentVariable('refreshToken', refreshToken)","",""],"type":"text/javascript","packages":{}}}],"id":"923ee044-3703-442a-af49-2696bbe66000","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@natours.com\",\n    \"password\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/sessions/login","description":"<p>Use this endpoint to authenticate and create a new session for the user.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>{{URL}}api/</code>v1/sessions/login</p>\n</li>\n</ul>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>email</code> (string, required): The email of the user.</p>\n</li>\n<li><p><code>password</code> (string, required): The password of the user.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 401 Unauthorized if invalid email or password</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","sessions","login"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"ee486eae-e9f7-4524-ae0b-4c1ecdbb8e15","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@natours.com\",\n    \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/sessions/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzA1NyIsImVtYWlsIjoiYWRtaW5AbmF0b3Vycy5jb20iLCJuYW1lIjoiQ2hldyBCYWNjYSIsInBob3RvIjoiaHR0cHM6Ly9yZXMuY2xvdWRpbmFyeS5jb20vZHlncGQ5cGtsL2ltYWdlL3VwbG9hZC92MTcxNjkwNDA5Mi9uYXRvdXJzL3VzZXJzL3VzZXItNWM4YTFkNWIwMTkwYjIxNDM2MGRjMDU3LnBuZyIsInJvbGUiOiJhZG1pbiIsImlzQWN0aXZlIjp0cnVlLCJjcmVhdGVkQXQiOiIyMDI0LTA1LTI4VDEzOjU5OjQ3LjgzMVoiLCJ1cGRhdGVkQXQiOiIyMDI0LTA1LTI4VDEzOjU5OjQ3LjgzMVoiLCJfX3YiOjB9LCJzZXNzaW9uSWQiOiI2NjU1ZTQ5YWU5MTgzYTM4N2YzYjBhNDgiLCJpYXQiOjE3MTY5MDYwODMsImV4cCI6MTcxNjkwNjk4M30.JFQavOBNVsdPUrebPS1KDIQ7c1iwh2vYzQ91WQAQpx1m4AcBioYBNtd82h5n5mS_Nm6ASEk68vUBN-5BRIsVTPyhKPA0P2RslvpDv4S6-tYuFrN7W0eFIAw84FChuZNdroIeps5Q2iREuMN7li7Q-yrnhviHcU8IBn9YFcce_481eoRlc6af109l22_WlE-303S_cAAVXaLpXdiakhFstmfg_5HbM1gtCYBeB3GGTYLkRLmsZDS91XMXdHZczhcIOuJErGfxlvoC5ME5Ju_ZoWxw-X0PzXQ4PtwD4Mc5fWcj_4yCiV-NwvyPnlVysBhvrmvHSTaWbsqgFOWeXgdzDtlmy2uqzvBOD_79e1BiWw_4bXe1wE-oISShomgXJWVa59ZGbS6c31Yk2ndEeAnY7A5Nre8v-I5t13JBvplQHbHs1vTiST30rEpRu72iS5C75G5cXkMJcuZdFUqCKYuJEQj3M7hV5HcbZz2iK6NiKPj-H8msN08cwSW8GlQrTI09oXLwh6_odybTwqyccR_sj-L2q6E_947X00XcAeHLRaUVAWLjxKe9Z-TVwjAGxjH7WyG6z6Ec1WnEOesWbL3a6Ca_xS5D8TlnOOAMImP2JFfYopOLE2ic4WyvvkF1qFG5BZw35M_kwGcsBjXdBxbXaXfxZRo8DpzCyAbtzNSn_wE; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzA1NyIsImVtYWlsIjoiYWRtaW5AbmF0b3Vycy5jb20iLCJuYW1lIjoiQ2hldyBCYWNjYSIsInBob3RvIjoiaHR0cHM6Ly9yZXMuY2xvdWRpbmFyeS5jb20vZHlncGQ5cGtsL2ltYWdlL3VwbG9hZC92MTcxNjkwNDA5Mi9uYXRvdXJzL3VzZXJzL3VzZXItNWM4YTFkNWIwMTkwYjIxNDM2MGRjMDU3LnBuZyIsInJvbGUiOiJhZG1pbiIsImlzQWN0aXZlIjp0cnVlLCJjcmVhdGVkQXQiOiIyMDI0LTA1LTI4VDEzOjU5OjQ3LjgzMVoiLCJ1cGRhdGVkQXQiOiIyMDI0LTA1LTI4VDEzOjU5OjQ3LjgzMVoiLCJfX3YiOjB9LCJzZXNzaW9uSWQiOiI2NjU1ZTg2M2U5MTgzYTM4N2YzYjBhNTQiLCJpYXQiOjE3MTY5MDYwODMsImV4cCI6MTcxNjkwNjk4M30.HhtVLVLgdNVgaRH5vO2P1nWVFOxbA4doifi87b9Pn3c4FWcvXLipMkGjJeKAGPVyOxqiPphEgKoAjMaNTi2UVkrR65IuUSeqiAGaNudbPtJGyohqE6oOxxBN8E08NC_cdQByt9UGBXRyOx3tcnGk_dGlofO2SCmO2sdy4_DDQg28Xk1BTjv1Z8R-6cD1JeYNEWXnp72AWjcDqUC4StIZG7DSGqD5QGYTVZs-ajNFhgcYo-IeDRb17jSTZ9U7XpBKf12j-Y5gyrBPB9tVR3WhQ8xzAQQnljPOK7Is_nsa1OHvbNR4r9aqeRaVnMNjcqBUltK5CpqTuRdXUf0AQN6lMxCFRqmXeHxO25FpYtdYri5VgXxeRh7CtltYwsLyKtwNabjTusWqSMunzC7IbiJ4gcKoYnx-7y_IdPHzavGBrQLMejRAPQpYm9lGRPphzRBaqOdYSzjGXt9GbbKWZsa7wV-dYa8ff4IHHtbsRLtCyvlgVMY6F6oRQLHD3vG_deZq1CCoH3Z5TucqNWySm2QI1l3FN8x5oQXzGCYGK03yd61CCyViA9bMeYGKY3R3MRnISKDihJIYqEVvJc8iaFbFjAK2895go5e2fRbMBTX5EnVf63g38oRHPp-d35U4XvfaTMEqHgiJhkmDv6pELioZEFuXc70A8JXjabFtQbDEWxQ; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzA1NyIsImVtYWlsIjoiYWRtaW5AbmF0b3Vycy5jb20iLCJuYW1lIjoiQ2hldyBCYWNjYSIsInBob3RvIjoiaHR0cHM6Ly9yZXMuY2xvdWRpbmFyeS5jb20vZHlncGQ5cGtsL2ltYWdlL3VwbG9hZC92MTcxNjkwNDA5Mi9uYXRvdXJzL3VzZXJzL3VzZXItNWM4YTFkNWIwMTkwYjIxNDM2MGRjMDU3LnBuZyIsInJvbGUiOiJhZG1pbiIsImlzQWN0aXZlIjp0cnVlLCJjcmVhdGVkQXQiOiIyMDI0LTA1LTI4VDEzOjU5OjQ3LjgzMVoiLCJ1cGRhdGVkQXQiOiIyMDI0LTA1LTI4VDEzOjU5OjQ3LjgzMVoiLCJfX3YiOjB9LCJzZXNzaW9uSWQiOiI2NjU1ZTg2M2U5MTgzYTM4N2YzYjBhNTQiLCJpYXQiOjE3MTY5MDYwODMsImV4cCI6MTc0ODQ2MzY4M30.g9BDfcpz7VjhM5HK2qw-6SHsw2eRiutt-PEEb88m9E_qA5bLupYe_NcjVn69S4sWW3R2QLObOOZwetKW-Z_9IY_vTIJQ0zZUGOacmrraGfr3ojN62W_J_UmeX1ys6zOCzJrgb0ENR1SQfBq9OBXwjtVULycMzAb6Y-Pcy6qNbEjhs_Tss6RUmx2XBpaxXpOcDEiZRHcRj3zTzlDNnUVZt-5Ur6JsDH26X3j5dqrUsS3VN3bgjNItHc5-Gy7om2FLLfMRVNUJcDML6__GJ5WcPioeKdACaqyJuc0EcpBtJlHgz_0qEE3N8R0ynWvTUzPw1l_i7r351HG8OWoyTzjqysSMOxP0_WuaOpCWCvP2_Z9PtXdzVhW6VPhOang2y7c45b7oV6bhc4O-w3iZ8MDSPJ04Qh2ayxDccfHIebiXJZBe0Ouu7FjUQYMXU22CEo26toBFHgsikp3gL1qPWu4efmQwX-QoO0Nsr38cpbH9T3aCGf-pl7PXgRghsZ6PSglsIR2YmdE6_lY1bCK0EG-ZMbSDmhP98r6OWQs1NpDW63HCYcyrDayJq0boEabPEyMEiMB6ThSicC_POqtarnMC7sCtUcQpYfT9pHlQM8dIRvjiwUa7hipbZSqk9o2fpAqx5D81nDaCXl5dVJbFTbVc7f63iO9gcuBbo32IzGryF68; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"356"},{"key":"ETag","value":"W/\"164-vyMG4KFBL1BpUBsWD1zG8v/v+nQ\""},{"key":"Date","value":"Tue, 28 May 2024 14:21:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"5c8a1d5b0190b214360dc057\",\n            \"email\": \"admin@natours.com\",\n            \"name\": \"Chew Bacca\",\n            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716904092/natours/users/user-5c8a1d5b0190b214360dc057.png\",\n            \"role\": \"admin\",\n            \"isActive\": true,\n            \"createdAt\": \"2024-05-28T13:59:47.831Z\",\n            \"updatedAt\": \"2024-05-28T13:59:47.831Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"923ee044-3703-442a-af49-2696bbe66000"},{"name":"Forgot My Password","event":[{"listen":"test","script":{"id":"32b4f4cb-914e-4d8b-8979-66dd8f7f1d6d","exec":["","pm.test(\"Response status code is 404\", function () {","    pm.expect(pm.response.code).to.equal(404);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.status).to.exist.and.to.be.a('string');","    pm.expect(responseData.message).to.exist.and.to.be.a('string');","    pm.expect(responseData.stack).to.exist.and.to.be.a('string');","    pm.expect(responseData.error).to.exist.and.to.be.an('object');","});","","","pm.test(\"Status text is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.error.statusText).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","});","","","pm.test(\"Status code is a non-negative integer\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.statusCode).to.be.a('number').and.to.be.at.least(0);","});","","","pm.test(\"Content-Type header is set to application/json\", function () {","  pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});"],"type":"text/javascript","packages":{}}}],"id":"3966f101-18ab-4a42-8903-db27526c5133","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@natours.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/forgot-my-password","description":"<p>Reset My Password - step 1/2</p>\n<p>Use this endpoint to initiate the process for resetting a user's password by providing its email.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users/forgot-my-password</code></p>\n</li>\n</ul>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>email (string, required): The email address of the user for whom the password reset process needs to be initiated.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 404 Not Found if user not found</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","users","forgot-my-password"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"713884e2-d6c5-4ac1-814d-eca48ca971d8","name":"Forgot My Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@natours.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/forgot-my-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzA1NyIsImVtYWlsIjoiYWRtaW5AbmF0b3Vycy5jb20iLCJuYW1lIjoiQ2hldyBCYWNjYSIsInBob3RvIjoiaHR0cHM6Ly9yZXMuY2xvdWRpbmFyeS5jb20vZHlncGQ5cGtsL2ltYWdlL3VwbG9hZC92MTcxNjkwNDA5Mi9uYXRvdXJzL3VzZXJzL3VzZXItNWM4YTFkNWIwMTkwYjIxNDM2MGRjMDU3LnBuZyIsInJvbGUiOiJhZG1pbiIsImlzQWN0aXZlIjp0cnVlLCJjcmVhdGVkQXQiOiIyMDI0LTA1LTI4VDE0OjMxOjA4LjE5N1oiLCJ1cGRhdGVkQXQiOiIyMDI0LTA2LTIxVDEwOjE4OjEyLjc5NFoiLCJfX3YiOjAsInBhc3N3b3JkUmVzZXRUb2tlbiI6IjZmN2I3MWJjOGU3ZTUzNDMxZGI1MzJiOTNhNTIxMDI3ZGQzZTI2M2NmNWFlMjhkZDQwYzljYzYyMzE5ZWE1NzQiLCJwYXNzd29yZFJlc2V0VG9rZW5FeHBpcmVzQXQiOiIyMDI0LTA2LTIxVDEwOjI4OjEyLjc5NFoifSwic2Vzc2lvbklkIjoiNjY3NTU2ZDRmNmY2MWJkZDY4YWYxZjNlIiwiaWF0IjoxNzE4OTY3Njk4LCJleHAiOjE3MTg5Njg1OTh9.FFPkV_JIzBdyeUFlYzS9P386mPrwvJg6t2sh1KSk2RBlIkObvVk-StUavsvbzrn61qG_hkCLdOcpp_EA32gmtEMKoKCPIb2eLscDbF5uVunrTauDiYvx6IE00w8V0DeGd_kKIafYpQuIlkya0AiYahof-SB1HwRFP21ogGa2Y94ZgipxMjQ8xmjhIiCtJERwbK_zIKudu7D_D1RopqW1wMLWcxI8EuClACqad6Orez5aGx9W9XAmgRdiH3CpeMacW1iN8CAWjmkvnanaq2rz7m3ubKazuDyZbQtOvdAxe_btincdnG10RtAe4p6ho-tSne9pUrlrxX8gSSfGYo0mupyQoakSzm2rWvomnmihZlaF0aFFJia7tFTRg2_S6xsWtVutS0w4fz9JZ8gaUWwMfWf9tigh10y8sBmjNMTDaaEmj-wiCcr7TBdAcucv2hJmkvwUVazCNcaETaqcq-5ueVG5T43FDCyIy78abwKFJPXZ0tkQfz9m1GHojt43SYSwvTCt2d2frgwgYVVWxyyQ3h0BCXVbDGduGT3hnxJllXwtR83Fb8nMifp64w6vYKlw-Z_fETzrF3v0mKNWP_eztadhQX_wjyLfUrcNvRjtzpkU0NPu_yMb5qKYImEANlwU_GDFADKx2ZbUEkuf82MRZtdrdEa6y-bFVbKACZ5xhCE; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"99"},{"key":"ETag","value":"W/\"63-+NIFKTVrmpE2xENn1ixEtXVZeqo\""},{"key":"Date","value":"Fri, 21 Jun 2024 11:01:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Please check your email admin@natours.com to change your password.\"\n}"}],"_postman_id":"3966f101-18ab-4a42-8903-db27526c5133"},{"name":"Reset My Password","event":[{"listen":"test","script":{"id":"df7f0da6-5c27-4e3f-b7f6-306997df1270","exec":["// Body","var responseBody = pm.response.json();","","var currentUserId = responseBody.data.user._id;","pm.environment.set(\"currentUserId\", currentUserId.toString());","","// Cookies","var accessToken = pm.cookies.get('accessToken');","var refreshToken = pm.cookies.get('refreshToken');","","postman.setEnvironmentVariable('accessToken',accessToken)","postman.setEnvironmentVariable('refreshToken', refreshToken)","",""],"type":"text/javascript","packages":{}}}],"id":"a1caf201-c146-4c5b-b557-ceaac7aefd3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"12345678\",\n    \"passwordConfirmation\": \"12345678\",\n    \"resetPasswordToken\":\"c08df70fe8739e3c7dc84d800c1ffb5ce5ed25c0f66353c0f7a435e746d3f1f3\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/reset-my-password","description":"<p>Reset My Password - step 2/2</p>\n<p>Use this endpoint to reset the password for a user.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: PATCH</p>\n</li>\n<li><p>URL: <code>http://localhost:1337/api/v1/users/reset-my-password</code></p>\n</li>\n</ul>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>password</code> (string, required): The new password for the user.</p>\n</li>\n<li><p><code>passwordConfirmation</code> (string, required): Confirmation of the new password.</p>\n</li>\n<li><p><code>resetPasswordToken</code> (string, required): The token used for resetting the password.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 404 Not Found if the reset token is invalid or has expired</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","users","reset-my-password"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1caf201-c146-4c5b-b557-ceaac7aefd3d"}],"id":"13420cc4-7608-4d6d-8a9d-5836ecc20165","description":"<p>Public endpoints for authentication.</p>\n<p>You can:</p>\n<ul>\n<li><p>sign-up</p>\n</li>\n<li><p>login</p>\n</li>\n<li><p>reset your password (3 steps process: submit your email =&gt; receive a link with a reset-password-token in your email =&gt; submit your new password + reset-password-token)</p>\n</li>\n</ul>\n","_postman_id":"13420cc4-7608-4d6d-8a9d-5836ecc20165"},{"name":"Reviews","item":[{"name":"Get All Reviews","id":"b2ffcdf5-bcf3-4410-853a-d5e46412766e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews","description":"<p>Use this endpoint to retrieve a list of all reviews.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>http://localhost:1337/api/v1/reviews</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"841ed74d-8657-4b64-9d48-60bb3cb12d36","name":"Get All Reviews","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1813"},{"key":"ETag","value":"W/\"715-yFoO/LAm0N3CM6AqsyqDE6sPkDo\""},{"key":"Date","value":"Fri, 21 Jun 2024 10:21:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 4,\n    \"data\": {\n        \"reviews\": [\n            {\n                \"_id\": \"5c8a3d3a14eb5c17645c913e\",\n                \"content\": \"Ullamcorper ac nec id habitant a commodo eget libero cras congue!\",\n                \"rating\": 4,\n                \"user\": {\n                    \"_id\": \"5c8a24822f8fb814b56fa192\",\n                    \"name\": \"John Riley\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24822f8fb814b56fa192.jpg\"\n                },\n                \"tour\": \"5c88fa8cf4afda39709c2970\",\n                \"createdAt\": \"2024-05-28T14:31:09.024Z\",\n                \"updatedAt\": \"2024-05-28T14:31:09.024Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a3d5314eb5c17645c913f\",\n                \"content\": \"Ultrices nam dui ex posuere velit varius himenaeos bibendum fermentum sollicitudin purus\",\n                \"rating\": 5,\n                \"user\": {\n                    \"_id\": \"5c8a24822f8fb814b56fa192\",\n                    \"name\": \"John Riley\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24822f8fb814b56fa192.jpg\"\n                },\n                \"tour\": \"5c88fa8cf4afda39709c2974\",\n                \"createdAt\": \"2024-05-28T14:31:09.024Z\",\n                \"updatedAt\": \"2024-05-28T14:31:09.024Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a3d8614eb5c17645c9140\",\n                \"content\": \"Ultrices nam dui ex posuere velit varius himenaeos bibendum fermentum sollicitudin purus\",\n                \"rating\": 5,\n                \"user\": {\n                    \"_id\": \"5c8a24a02f8fb814b56fa193\",\n                    \"name\": \"Lisa Brown\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24a02f8fb814b56fa193.jpg\"\n                },\n                \"tour\": \"5c88fa8cf4afda39709c2974\",\n                \"createdAt\": \"2024-05-28T14:31:09.024Z\",\n                \"updatedAt\": \"2024-05-28T14:31:09.024Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a3d9b14eb5c17645c9141\",\n                \"content\": \"Vitae vulputate id quam metus orci cras mollis vivamus vehicula sapien et\",\n                \"rating\": 2,\n                \"user\": {\n                    \"_id\": \"5c8a24a02f8fb814b56fa193\",\n                    \"name\": \"Lisa Brown\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24a02f8fb814b56fa193.jpg\"\n                },\n                \"tour\": \"5c88fa8cf4afda39709c296c\",\n                \"createdAt\": \"2024-05-28T14:31:09.024Z\",\n                \"updatedAt\": \"2024-05-28T14:31:09.024Z\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"b2ffcdf5-bcf3-4410-853a-d5e46412766e"},{"name":"Get Review by id","id":"664967a1-3734-402d-9bb8-96f489eb00af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews/5c8a3e0714eb5c17645c9144","description":"<h2 id=\"get-review-by-id\">Get Review by id</h2>\n<p>Use this endpoint to retrieve a review by ID</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}</code>api/v1/reviews/:id</p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 404 Not Found if the review does not exist</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","reviews","5c8a3e0714eb5c17645c9144"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"67ae7820-bb01-4193-8e85-db19c01077c6","name":"Get Review by id","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews/5c8a3e0714eb5c17645c9144"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"480"},{"key":"ETag","value":"W/\"1e0-uO6O3iDd6Fx2S1NW4/Q8Ub66wmE\""},{"key":"Date","value":"Fri, 21 Jun 2024 10:24:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"review\": {\n            \"_id\": \"5c8a3e0714eb5c17645c9144\",\n            \"content\": \"Feugiat egestas ac pulvinar quis dui ligula tempor ad platea quisque scelerisque!\",\n            \"rating\": 5,\n            \"user\": {\n                \"_id\": \"5c8a24a02f8fb814b56fa193\",\n                \"name\": \"Lisa Brown\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24a02f8fb814b56fa193.jpg\"\n            },\n            \"tour\": \"5c88fa8cf4afda39709c2951\",\n            \"createdAt\": \"2024-05-28T14:31:09.024Z\",\n            \"updatedAt\": \"2024-05-28T14:31:09.024Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"664967a1-3734-402d-9bb8-96f489eb00af"}],"id":"e68f0ed5-9044-445a-9623-32ebb905feda","description":"<p>Public endpoints for reviews.</p>\n<p>You can fetch:</p>\n<ul>\n<li><p>all reviews</p>\n</li>\n<li><p>1 review by id</p>\n</li>\n</ul>\n","_postman_id":"e68f0ed5-9044-445a-9623-32ebb905feda"},{"name":"TourId / Reviews","item":[{"name":"Get All Reviews for 1 Tour","id":"5df20c46-2bd0-4f78-bd32-a585cf6c2af2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c2951/reviews","description":"<p>Use this endpoint to retrieve the reviews for a specific tour identified by its tour ID.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}</code>api/v1/tours/:id/reviews</p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 404 Not Found iif tour not found</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c2951","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"6d799451-30a6-483f-af99-fc6e1397a17f","name":"Get All Reviews for 1 Tour","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c2951/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1864"},{"key":"ETag","value":"W/\"748-DpZAmJodSw3si789WlLTZCu55ys\""},{"key":"Date","value":"Fri, 21 Jun 2024 11:08:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 4,\n    \"data\": {\n        \"reviews\": [\n            {\n                \"_id\": \"5c8a3e0714eb5c17645c9144\",\n                \"content\": \"Feugiat egestas ac pulvinar quis dui ligula tempor ad platea quisque scelerisque!\",\n                \"rating\": 5,\n                \"user\": {\n                    \"_id\": \"5c8a24a02f8fb814b56fa193\",\n                    \"name\": \"Lisa Brown\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24a02f8fb814b56fa193.jpg\"\n                },\n                \"tour\": \"5c88fa8cf4afda39709c2951\",\n                \"createdAt\": \"2024-05-28T14:31:09.024Z\",\n                \"updatedAt\": \"2024-05-28T14:31:09.024Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a3a8d14eb5c17645c9125\",\n                \"content\": \"Iaculis mauris eget sed nec lobortis rhoncus montes etiam dapibus suspendisse hendrerit quam pellentesque potenti sapien!\",\n                \"rating\": 5,\n                \"user\": {\n                    \"_id\": \"5c8a23c82f8fb814b56fa18d\",\n                    \"name\": \"Laura Wilson\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23c82f8fb814b56fa18d.jpg\"\n                },\n                \"tour\": \"5c88fa8cf4afda39709c2951\",\n                \"createdAt\": \"2024-05-28T14:31:09.023Z\",\n                \"updatedAt\": \"2024-05-28T14:31:09.023Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a3b6714eb5c17645c912e\",\n                \"content\": \"Venenatis molestie luctus cubilia taciti tempor faucibus nostra nisi curae integer.\",\n                \"rating\": 5,\n                \"user\": {\n                    \"_id\": \"5c8a23de2f8fb814b56fa18e\",\n                    \"name\": \"Max Smith\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23de2f8fb814b56fa18e.jpg\"\n                },\n                \"tour\": \"5c88fa8cf4afda39709c2951\",\n                \"createdAt\": \"2024-05-28T14:31:09.023Z\",\n                \"updatedAt\": \"2024-05-28T14:31:09.023Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a3c2514eb5c17645c9134\",\n                \"content\": \"Euismod suscipit ipsum efficitur rutrum dis mus dictumst laoreet lectus.\",\n                \"rating\": 5,\n                \"user\": {\n                    \"_id\": \"5c8a245f2f8fb814b56fa191\",\n                    \"name\": \"Eduardo Hernandez\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a245f2f8fb814b56fa191.jpg\"\n                },\n                \"tour\": \"5c88fa8cf4afda39709c2951\",\n                \"createdAt\": \"2024-05-28T14:31:09.023Z\",\n                \"updatedAt\": \"2024-05-28T14:31:09.023Z\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"5df20c46-2bd0-4f78-bd32-a585cf6c2af2"}],"id":"fa8311c2-af04-4b2f-baea-e425272568de","description":"<p>Other public endpoints for reviews.</p>\n<p>You can fetch:</p>\n<ul>\n<li>all reviews for 1 tour</li>\n</ul>\n","_postman_id":"fa8311c2-af04-4b2f-baea-e425272568de"},{"name":"Healthcheck","id":"b8755d3e-c4bb-4f84-a38e-211e464d6681","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/healthcheck","description":"<p>Use this endpoint to perform a health check on the api.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/healthcheck</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: text/plain</p>\n</li>\n<li><p>Body: \"OK\"</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","healthcheck"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8755d3e-c4bb-4f84-a38e-211e464d6681"}],"id":"0a9b5f17-53ac-452d-870e-0a9857fe6d88","description":"<p>Public endpoints.</p>\n","_postman_id":"0a9b5f17-53ac-452d-870e-0a9857fe6d88"},{"name":"Protected","item":[{"name":"Role: User","item":[{"name":"Auth","item":[{"name":"Logout","event":[{"listen":"test","script":{"id":"f4fdbdad-b9e3-4b5e-8709-8678675d263e","exec":["// Cookies","var accessToken = pm.cookies.get('accessToken');","var refreshToken = pm.cookies.get('refreshToken');","","postman.setEnvironmentVariable('accessToken',accessToken)","postman.setEnvironmentVariable('refreshToken', refreshToken)",""],"type":"text/javascript","packages":{}}}],"id":"207291cd-5b0a-4794-b81c-3220f1b4c2a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/sessions/logout","description":"<p>Use this endpoint to logout a session.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/sessions/logout</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><code>Status: 200 OK</code></li>\n</ul>\n","urlObject":{"path":["v1","sessions","logout"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"0fd8ef37-25af-462f-821e-09ce7d6a5076","name":"Logout","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/sessions/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"refreshToken=; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"20"},{"key":"ETag","value":"W/\"14-Y53wuE/mmbSikKcT/WualL1N65U\""},{"key":"Date","value":"Fri, 21 Jun 2024 11:58:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"207291cd-5b0a-4794-b81c-3220f1b4c2a7"}],"id":"89218042-a6b1-4a52-955d-e38981071ba0","description":"<p>Protected endpoints for auth.</p>\n<p>You can:</p>\n<ul>\n<li>log-out</li>\n</ul>\n","_postman_id":"89218042-a6b1-4a52-955d-e38981071ba0"},{"name":"TourId / Reviews","item":[{"name":"Create New Review for 1 Tour","id":"ae9f026c-dd34-483c-8cd6-acdf69571768","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"content\": \"Awesome tour\",\n    \"rating\": 4,\n    \"user\": \"{{currentUserId}}\",\n    \"tour\": \"5c88fa8cf4afda39709c2951\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c2951/reviews","description":"<p>Use this endpoint to create a new review on a tour.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/tours/:id/reviews</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 201 OK</p>\n</li>\n<li><p>Status: 404 Not Found if tour not found</p>\n</li>\n<li><p>Status: 403 forbidden if the user did not book this tour</p>\n</li>\n<li><p>Status: 403 forbidden if the user did already leave a review for this tour</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c2951","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae9f026c-dd34-483c-8cd6-acdf69571768"}],"id":"eff61f39-9a7b-4c67-8ad7-c6c968188790","description":"<p>Protected endpoints for reviews.</p>\n<p>You can:</p>\n<ul>\n<li>create a review for 1 tour</li>\n</ul>\n","_postman_id":"eff61f39-9a7b-4c67-8ad7-c6c968188790"},{"name":"Me","item":[{"name":"Get Me","id":"cfd471a0-ff73-4e03-84e2-6b8cb7a1af23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users/me","description":"<p>Use this endpoint to retrieve the data of the current user</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users/me</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","users","me"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"ba4c199c-7bb5-4b78-a816-2bded18bd670","name":"Get Me","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"501"},{"key":"ETag","value":"W/\"1f5-lsu0ryE+EGccxtwJzWsUGnoUF8A\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:30:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"5c8a1d5b0190b214360dc057\",\n            \"email\": \"admin@natours.com\",\n            \"name\": \"Chew Bacca\",\n            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716904092/natours/users/user-5c8a1d5b0190b214360dc057.png\",\n            \"role\": \"admin\",\n            \"isActive\": true,\n            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n            \"updatedAt\": \"2024-06-21T11:01:38.930Z\",\n            \"__v\": 0,\n            \"passwordResetToken\": \"07516194c32b058416b93953fd2827cbe5402965dfe2e6fb622eb28a213ca950\",\n            \"passwordResetTokenExpiresAt\": \"2024-06-21T11:11:38.930Z\"\n        }\n    }\n}"}],"_postman_id":"cfd471a0-ff73-4e03-84e2-6b8cb7a1af23"},{"name":"Update My Data","id":"1ef8f946-8b5e-4c94-aea1-bf181838a48b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"photo","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/user.jpg"],"src":"/Users/siegfried/Downloads/user.jpg"},{"key":"name","value":"Chuba Ka UpUPUP","type":"text"}]},"url":"{{URL}}api/v1/users/update-me","description":"<p>Use this endpoint to update the current user data (except password)</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: PATCH</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users/update-me</code></p>\n</li>\n</ul>\n<h3 id=\"request-body---formdata\">Request Body - FormData</h3>\n<p>Accepts</p>\n<ul>\n<li><p>photo: image file</p>\n</li>\n<li><p>name</p>\n</li>\n<li><p>email</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","users","update-me"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"6676c231-26c5-491d-9dd2-61d547c64732","name":"Update My Data","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"photo","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/user.jpg"],"src":"/Users/siegfried/Downloads/user.jpg"},{"key":"name","value":"Chuba Ka UpUPUP","type":"text"}]},"url":"{{URL}}api/v1/users/update-me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzA1NyIsImVtYWlsIjoiYWRtaW5AbmF0b3Vycy5jb20iLCJuYW1lIjoiQ2h1YmEgS2EgVXBVUFVQIiwicGhvdG8iOiJodHRwczovL3Jlcy5jbG91ZGluYXJ5LmNvbS9keWdwZDlwa2wvaW1hZ2UvdXBsb2FkL3YxNzE2OTA0MDkyL25hdG91cnMvdXNlcnMvdXNlci01YzhhMWQ1YjAxOTBiMjE0MzYwZGMwNTcucG5nIiwicm9sZSI6ImFkbWluIiwiaXNBY3RpdmUiOnRydWUsImNyZWF0ZWRBdCI6IjIwMjQtMDUtMjhUMTQ6MzE6MDguMTk3WiIsInVwZGF0ZWRBdCI6IjIwMjQtMDYtMjFUMTI6MzI6NTIuOTg3WiIsIl9fdiI6MCwicGFzc3dvcmRSZXNldFRva2VuIjoiMDc1MTYxOTRjMzJiMDU4NDE2YjkzOTUzZmQyODI3Y2JlNTQwMjk2NWRmZTJlNmZiNjIyZWIyOGEyMTNjYTk1MCIsInBhc3N3b3JkUmVzZXRUb2tlbkV4cGlyZXNBdCI6IjIwMjQtMDYtMjFUMTE6MTE6MzguOTMwWiJ9LCJzZXNzaW9uSWQiOiI2Njc1NmIzMDhhNjQ1YzM0MmQ3MzhkMzkiLCJpYXQiOjE3MTg5NzMxNzMsImV4cCI6MTcxODk3NDA3M30.Dqxe1J7-ACwr6s2dy7oYI9W5YxXlYPSuQNaF2Qu1kLg1qeXhnTfEAaobgZbPWuOK3oRyJ5ew0SV-dvh0Fq8ZCYdEa8K1cx1wSMihTQs6NC5NAbNRmp7CGwXNeooDOIs32XYW38bu712MqlMBgDEieaszpE_DfZFwJ4dbD2Vrq0I7e3xN94SCx_cG75XtgEF4nwtLKb0Ma7_IyCj_-VRvZTIhzW6TpIYvt2YxPK-sxsEZXMgJVWuuPZ4uOnKoRmjQAFoKCv0FYxG0CvIhpggNtGTjeYvhQ8FMikXv7ti22Cg2agKRIpY0zWa6jFf5hnSa7Ei37kWylJRJOEI8CQCF7CRx03CYK-yx_1h7KkFnrveiDSaalNYfZ-qjDUmiWPzXx7dcEBgF8-mMdMn6txhHtz8NvL04koiCDtZ0YLtMtlWSi2bGKVqeWKB4qLDFfdILNtHR1urLBqaWMpGF0hs0IHmIsrcKjaerpWnP17Y1hFtR7xFXuKuWoMRe1xivIJ3bhiR3iduCeI1keKcA7gbR0PPGT6wNwsWPwBXnpM0ZqPePWLNbGXKHcdoFh5RtoytC0JLgEuriU3qklDHjJ88e4TyrRv44l1XfoMg2vbUoDzaW-Jag-y35wRvNBpkQ3B1PMqAp4FJDzx3tUtIXIsCs2vqzXmQoWEMMSkkkdofP5x4; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzA1NyIsImVtYWlsIjoiYWRtaW5AbmF0b3Vycy5jb20iLCJuYW1lIjoiQ2h1YmEgS2EgVXBVUFVQIiwicGhvdG8iOiJodHRwczovL3Jlcy5jbG91ZGluYXJ5LmNvbS9keWdwZDlwa2wvaW1hZ2UvdXBsb2FkL3YxNzE2OTA0MDkyL25hdG91cnMvdXNlcnMvdXNlci01YzhhMWQ1YjAxOTBiMjE0MzYwZGMwNTcucG5nIiwicm9sZSI6ImFkbWluIiwiaXNBY3RpdmUiOnRydWUsImNyZWF0ZWRBdCI6IjIwMjQtMDUtMjhUMTQ6MzE6MDguMTk3WiIsInVwZGF0ZWRBdCI6IjIwMjQtMDYtMjFUMTI6MzI6NTIuOTg3WiIsIl9fdiI6MCwicGFzc3dvcmRSZXNldFRva2VuIjoiMDc1MTYxOTRjMzJiMDU4NDE2YjkzOTUzZmQyODI3Y2JlNTQwMjk2NWRmZTJlNmZiNjIyZWIyOGEyMTNjYTk1MCIsInBhc3N3b3JkUmVzZXRUb2tlbkV4cGlyZXNBdCI6IjIwMjQtMDYtMjFUMTE6MTE6MzguOTMwWiJ9LCJzZXNzaW9uSWQiOiI2Njc1NmIzMDhhNjQ1YzM0MmQ3MzhkMzkiLCJpYXQiOjE3MTg5NzMxNzMsImV4cCI6MTc1MDUzMDc3M30.oOqD2yYo88J_gm6Hi3twCC8plaWPK0h5E-sg6hYo7xUY78priJeHA4Q9kuFz_5nrrpRukVY4CE4XkF9pD-7hjp7ysA7PpfrFifEZeOgLxYbtDOeX6n910mpVeZkW0NGCNVWQt4-9IaowPdjzWjaODKxDsVshX0GMsWMqSwJq_GT3ztpY-_zp7dp4UsxHHRvmvBJLEXBpwB-z7JY6ZHKaOv4BdkL4XPR2V04FcaxmQ4m15Gn_NHbgqOKosnZbJoNfJwgElF1mJncQY16sk5p6Es50AsQQ_Tp7jmLTt6pYncl7VQDV3dAMhTpU0DKvnK1Pq4NHFmNwkP7d1ZBpWCBEo3S9QZdQeca3osPeKsCR2Wf8ec7szGAFm3IWzdxfOirmOH-T22F9VLf3gc3cXR6CIPol9alyjptgm44MRhjJT9jy4jr2MO6xVkagirfsha2-iS5Kh5YKvOyjXIwHbdGkUsqsO4AGYxP15ptPTydm-YyhD2w3tq9esL08LY54f96FFbgIlDR0KC9e_bp1UI56Ki2KyiKLpezzQ1oeWJzEGdJzsbTLYKdTmb3RCLUw8wkDT9mMWXdOHsoHOiloM7Nu6oLBPx05rv3yrETMX6RLV73OwcQnfFqhxqc0Ynl_ymtX86jZ6kQpeeqqX_wlqEGjgWrc0gIP2HpNFcXQGCszO1k; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"506"},{"key":"ETag","value":"W/\"1fa-3gU93ot1Oh65r1WpeuEdyxHzgH8\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:32:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"5c8a1d5b0190b214360dc057\",\n            \"email\": \"admin@natours.com\",\n            \"name\": \"Chuba Ka UpUPUP\",\n            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716904092/natours/users/user-5c8a1d5b0190b214360dc057.png\",\n            \"role\": \"admin\",\n            \"isActive\": true,\n            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n            \"updatedAt\": \"2024-06-21T12:32:52.987Z\",\n            \"__v\": 0,\n            \"passwordResetToken\": \"07516194c32b058416b93953fd2827cbe5402965dfe2e6fb622eb28a213ca950\",\n            \"passwordResetTokenExpiresAt\": \"2024-06-21T11:11:38.930Z\"\n        }\n    }\n}"}],"_postman_id":"1ef8f946-8b5e-4c94-aea1-bf181838a48b"},{"name":"Fake Delete Me","id":"9d53114e-d30d-4656-8301-b980ff817a09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/delete-me","description":"<p>Use this endpoint to update the current user isActive field value to false.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: PATCH</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users/delete-me</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","users","delete-me"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"e284c62b-c6f6-42a4-973c-28bdda1e0759","name":"Fake Delete Me","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/delete-me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"refreshToken=; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"507"},{"key":"ETag","value":"W/\"1fb-4pAxB1Hay50viUtTjo9WrmoB+K4\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:34:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"5c8a1d5b0190b214360dc057\",\n            \"email\": \"admin@natours.com\",\n            \"name\": \"Chuba Ka UpUPUP\",\n            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716904092/natours/users/user-5c8a1d5b0190b214360dc057.png\",\n            \"role\": \"admin\",\n            \"isActive\": false,\n            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n            \"updatedAt\": \"2024-06-21T12:34:24.858Z\",\n            \"__v\": 0,\n            \"passwordResetToken\": \"07516194c32b058416b93953fd2827cbe5402965dfe2e6fb622eb28a213ca950\",\n            \"passwordResetTokenExpiresAt\": \"2024-06-21T11:11:38.930Z\"\n        }\n    }\n}"}],"_postman_id":"9d53114e-d30d-4656-8301-b980ff817a09"},{"name":"Update My Password","event":[{"listen":"test","script":{"id":"490b6b95-ab3a-4eee-ac29-54a511c1245e","exec":[""],"type":"text/javascript","packages":{}}}],"id":"0716140d-9a04-4aa5-afda-ea3397dbf148","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \"currentPassword\": \"1236456\",\n    \"password\":  \"12345678\",\n    \"passwordConfirmation\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/update-my-password","description":"<p>Use this endpoint to update the current user password.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: PATCH</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users/update-my-password</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 401 Unauthorized if Invalid email or password</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","users","update-my-password"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"f3433d12-3c7f-477f-9566-d6557edf7b43","name":"Update My Password","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \"currentPassword\": \"123456\",\n    \"password\":  \"12345678\",\n    \"passwordConfirmation\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/update-my-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"506"},{"key":"ETag","value":"W/\"1fa-aOp35fAJCv4RYqRHex/3kAiT+QE\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:33:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"5c8a1d5b0190b214360dc057\",\n            \"email\": \"admin@natours.com\",\n            \"name\": \"Chuba Ka UpUPUP\",\n            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716904092/natours/users/user-5c8a1d5b0190b214360dc057.png\",\n            \"role\": \"admin\",\n            \"isActive\": true,\n            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n            \"updatedAt\": \"2024-06-21T12:33:58.254Z\",\n            \"__v\": 0,\n            \"passwordResetToken\": \"07516194c32b058416b93953fd2827cbe5402965dfe2e6fb622eb28a213ca950\",\n            \"passwordResetTokenExpiresAt\": \"2024-06-21T11:11:38.930Z\"\n        }\n    }\n}"}],"_postman_id":"0716140d-9a04-4aa5-afda-ea3397dbf148"}],"id":"3baeb9c1-b488-48fa-b8c0-284fe0bf0772","description":"<p>Protected endpoints for the current authenticated user.</p>\n<p>You can:</p>\n<ul>\n<li><p>get user's data</p>\n</li>\n<li><p>update user's data (except password)</p>\n</li>\n<li><p>(fake-) delete user : update user (set isActive to false)</p>\n</li>\n</ul>\n","_postman_id":"3baeb9c1-b488-48fa-b8c0-284fe0bf0772"},{"name":"Reviews","item":[{"name":"Update Review","id":"28c579b6-6513-46d3-ba9d-4a9a40f1e348","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"content\": \"Triple AAA\",\n    \"rating\": 5\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews/5c8a3d3a14eb5c17645c913e","description":"<p>Use this endpint to update a review (content and/or rating)</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: PATCH</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/reviews/:id</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 404 Not Found if review does not exist</p>\n</li>\n<li><p>Status: 403 Forbidden if the current user is not the author of this review</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","reviews","5c8a3d3a14eb5c17645c913e"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"28c579b6-6513-46d3-ba9d-4a9a40f1e348"}],"id":"3ff20609-096c-4954-852e-d676180747c9","description":"<p>Protected endpoints for reviews.</p>\n<p>You can:</p>\n<ul>\n<li>update a review (content and/or rating)</li>\n</ul>\n","_postman_id":"3ff20609-096c-4954-852e-d676180747c9"},{"name":"Stripe","item":[{"name":"Get Stripe Checkout Session","id":"71508d67-a844-42c8-bd91-850d34894408","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/bookings/checkout-session/5c88fa8cf4afda39709c2951","description":"<p>Use this endpoint to get the stripe checkout session for a booking on a tour.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/bookings/checkout-session/:tourId</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>tourId: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 404 Not Found if tour not found</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","bookings","checkout-session","5c88fa8cf4afda39709c2951"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"aaeaeac7-16f6-4466-8cc7-f7fd4cfe0b2e","name":"Get Stripe Checkout Session","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/bookings/checkout-session/5c88fa8cf4afda39709c2951"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzA1NyIsImVtYWlsIjoiYWRtaW5AbmF0b3Vycy5jb20iLCJuYW1lIjoiQ2h1YmEgS2EgVXBVUFVQIiwicGhvdG8iOiJodHRwczovL3Jlcy5jbG91ZGluYXJ5LmNvbS9keWdwZDlwa2wvaW1hZ2UvdXBsb2FkL3YxNzE2OTA0MDkyL25hdG91cnMvdXNlcnMvdXNlci01YzhhMWQ1YjAxOTBiMjE0MzYwZGMwNTcucG5nIiwicm9sZSI6ImFkbWluIiwiaXNBY3RpdmUiOnRydWUsImNyZWF0ZWRBdCI6IjIwMjQtMDUtMjhUMTQ6MzE6MDguMTk3WiIsInVwZGF0ZWRBdCI6IjIwMjQtMDYtMjFUMTI6NDI6MDAuMDQ5WiIsIl9fdiI6MCwicGFzc3dvcmRSZXNldFRva2VuIjoiMDc1MTYxOTRjMzJiMDU4NDE2YjkzOTUzZmQyODI3Y2JlNTQwMjk2NWRmZTJlNmZiNjIyZWIyOGEyMTNjYTk1MCIsInBhc3N3b3JkUmVzZXRUb2tlbkV4cGlyZXNBdCI6IjIwMjQtMDYtMjFUMTE6MTE6MzguOTMwWiJ9LCJzZXNzaW9uSWQiOiI2Njc1NzUxODM0MDM4NTJiZGYxMmRkZTMiLCJpYXQiOjE3MTkwMTMxOTYsImV4cCI6MTcxOTAxNDA5Nn0.NfU8GJaB3f4eMn57Iv2pEOMWssTDe_9oZ0TLKhl33IJzRpu8fOlhQw8w94osfxVPeCJM2CQTncA0pU6BHQ3cGOileS1E_f1dS68RRZ07X6c-yeVcBkuhYTJX7FOcTrggMeY1vxdiHXHEhibv70IRaFxB0oAfTjICc9UXr8ZSzOO4RO0_ZsBt2AULcQ0w52_Hi8zRrgecEExIfkx1uVLmiIeYahzalFS0nhy0bVeyuB4OjES2Pg-r_ehcZOZhrsxLXVnqMIzY3cgIczY-QecfWal-TEGPbooQqQvipFai9bPIvVr1wta-srb03kUwMWxt4qM-rc95u1_Ce9Ui-Df6k5oKLkxx4MnPejB2h7eN4NRt3kyEboyUcmzRJVcqeMc6w4NDGDq1P_sA8fidXSMNCEBWMdUfrZGxO_RKoIGN6PNj_fBKQhm6mnoqzphXFqjVcI6ARQ-k4eH8l7h25AROKlNe0Wm_uIbYnLjB-5UpLYHW18BA4h86V7dUZrL5u2IU0USlHiPa0SD4HpXm5csNfZwq82s7BezOUSkIviYW-nokiHxYDv4uEmAG3jEe-c_0B74h1Gd_y77RcGxHxL4ly44YWeSP0F-odHvG555NpsH0LcyVdnrcWD_eOEQUrbFm0pQMj7D-6aO2SXj54v4-LtEM0RiWjvMZiiG0xMgPBgA; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2266"},{"key":"ETag","value":"W/\"8da-UelNCpoB59ggOdsB/8ZCQ0Gip90\""},{"key":"Date","value":"Fri, 21 Jun 2024 23:39:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"stripeSession\": {\n            \"id\": \"cs_test_a1yzbv4HmWO6LswIbmlcv1j8angxAQ91sm5vZSzlBGaxGTH2g1QmEYo7Ei\",\n            \"object\": \"checkout.session\",\n            \"after_expiration\": null,\n            \"allow_promotion_codes\": null,\n            \"amount_subtotal\": 39700,\n            \"amount_total\": 39700,\n            \"automatic_tax\": {\n                \"enabled\": false,\n                \"liability\": null,\n                \"status\": null\n            },\n            \"billing_address_collection\": null,\n            \"cancel_url\": \"http://localhost:3000/tours/5c88fa8cf4afda39709c2951\",\n            \"client_reference_id\": \"5c88fa8cf4afda39709c2951\",\n            \"client_secret\": null,\n            \"consent\": null,\n            \"consent_collection\": null,\n            \"created\": 1719013198,\n            \"currency\": \"usd\",\n            \"currency_conversion\": null,\n            \"custom_fields\": [],\n            \"custom_text\": {\n                \"after_submit\": null,\n                \"shipping_address\": null,\n                \"submit\": null,\n                \"terms_of_service_acceptance\": null\n            },\n            \"customer\": null,\n            \"customer_creation\": \"if_required\",\n            \"customer_details\": {\n                \"address\": null,\n                \"email\": \"admin@natours.com\",\n                \"name\": null,\n                \"phone\": null,\n                \"tax_exempt\": \"none\",\n                \"tax_ids\": null\n            },\n            \"customer_email\": \"admin@natours.com\",\n            \"expires_at\": 1719099598,\n            \"invoice\": null,\n            \"invoice_creation\": {\n                \"enabled\": false,\n                \"invoice_data\": {\n                    \"account_tax_ids\": null,\n                    \"custom_fields\": null,\n                    \"description\": null,\n                    \"footer\": null,\n                    \"issuer\": null,\n                    \"metadata\": {},\n                    \"rendering_options\": null\n                }\n            },\n            \"livemode\": false,\n            \"locale\": null,\n            \"metadata\": {},\n            \"mode\": \"payment\",\n            \"payment_intent\": null,\n            \"payment_link\": null,\n            \"payment_method_collection\": \"if_required\",\n            \"payment_method_configuration_details\": null,\n            \"payment_method_options\": {\n                \"card\": {\n                    \"request_three_d_secure\": \"automatic\"\n                }\n            },\n            \"payment_method_types\": [\n                \"card\"\n            ],\n            \"payment_status\": \"unpaid\",\n            \"phone_number_collection\": {\n                \"enabled\": false\n            },\n            \"recovered_from\": null,\n            \"saved_payment_method_options\": null,\n            \"setup_intent\": null,\n            \"shipping_address_collection\": null,\n            \"shipping_cost\": null,\n            \"shipping_details\": null,\n            \"shipping_options\": [],\n            \"status\": \"open\",\n            \"submit_type\": null,\n            \"subscription\": null,\n            \"success_url\": \"http://localhost:3000/my-bookings\",\n            \"total_details\": {\n                \"amount_discount\": 0,\n                \"amount_shipping\": 0,\n                \"amount_tax\": 0\n            },\n            \"ui_mode\": \"hosted\",\n            \"url\": \"https://checkout.stripe.com/c/pay/cs_test_a1yzbv4HmWO6LswIbmlcv1j8angxAQ91sm5vZSzlBGaxGTH2g1QmEYo7Ei#fidkdWxOYHwnPyd1blpxYHZxWjA0SkRRcmJCfEo1MDB%2FNkE8YzZcU0RIUXNfXE5CdW5ydlNsXG9GQlFdVWQzdVFXSWFUajRSUURMd0JpRHZEYz1kVXRhQXR1aUF%2FY0t2aXI1M1V3blZxbU1tNTVkdkJPVUBoaScpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl\"\n        }\n    }\n}"}],"_postman_id":"71508d67-a844-42c8-bd91-850d34894408"},{"name":"WebHook Stripe","id":"986d2db9-c88d-421d-a870-5b1e189b379e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{URL}}/stripe/webhook","description":"<p>Allows Stripe to send a POST HTTP request containing a `checkout.session.completed` event.</p>\n<p>Once Stripe signature is verified, the route handler creates a booking record in the database using the corresponding service.</p>\n","urlObject":{"path":["stripe","webhook"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"986d2db9-c88d-421d-a870-5b1e189b379e"}],"id":"15ae9824-b6af-459d-a425-e89e06744cf8","description":"<p>Protected endpoints for stripe.</p>\n<p>You can:</p>\n<ul>\n<li>get Stripe Checkout Session</li>\n</ul>\n<p>Stripe can:</p>\n<ul>\n<li>post a checkout.session.completed event</li>\n</ul>\n","_postman_id":"15ae9824-b6af-459d-a425-e89e06744cf8"},{"name":"Bookings","item":[{"name":"Get Booking by id","id":"0aa36b47-21a4-4c9c-a430-f6cb8087b36b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/bookings/6655eaae6d116da9986b1991","description":"<p>Use this endpoint to get 1 booking by id</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/bookings/:id</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 404 Not Found if booking not found</p>\n</li>\n<li><p>Status: 403 Forbidden if current user did not book this booking OR if not admin</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","bookings","6655eaae6d116da9986b1991"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"20aa88eb-c310-4b71-b209-05bbfacd00a4","name":"Get Booking by id","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/bookings/6655eaae6d116da9986b1991"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1581"},{"key":"ETag","value":"W/\"62d-2y+oi8dvycmPLDQ8pfVd6PhTD8Q\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:53:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"booking\": {\n            \"_id\": \"6655eaae6d116da9986b1991\",\n            \"price\": 597,\n            \"tour\": {\n                \"_id\": \"5c88fa8cf4afda39709c295a\",\n                \"name\": \"The Snow Adventurer\",\n                \"duration\": 4,\n                \"maxGroupSize\": 10,\n                \"difficulty\": \"difficult\",\n                \"ratingsAverage\": 4.5,\n                \"ratingsCount\": 6,\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295a-cover.jpg\",\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -106.855385,\n                            39.182677\n                        ],\n                        \"description\": \"Aspen Highlands\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c295c\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -106.516623,\n                            39.60499\n                        ],\n                        \"description\": \"Beaver Creek\",\n                        \"day\": 2,\n                        \"_id\": \"5c88fa8cf4afda39709c295b\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                        \"email\": \"jennifer@natours.com\",\n                        \"name\": \"Jennifer Hardy\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"slug\": \"the_snow_adventurer\"\n            },\n            \"user\": {\n                \"_id\": \"5c8a1dfa2f8fb814b56fa181\",\n                \"name\": \"user01\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716911290/natours/users/user-5c8a1dfa2f8fb814b56fa181.png\"\n            },\n            \"createdAt\": \"2024-05-28T14:31:10.556Z\",\n            \"updatedAt\": \"2024-05-28T14:31:10.556Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"0aa36b47-21a4-4c9c-a430-f6cb8087b36b"},{"name":"Get my Bookings","id":"b597e752-a045-49fc-be3f-3b42c7e48ed4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users/my-bookings","description":"<p>Use this endpoint to get all bookings for the current user.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users/my-bookings</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","users","my-bookings"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"20e4bc53-ec40-40f9-85fa-464c53fc14d9","name":"Get my bookings","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/users/my-bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzA1NyIsImVtYWlsIjoiYWRtaW5AbmF0b3Vycy5jb20iLCJuYW1lIjoiQ2h1YmEgS2EgVXBVUFVQIiwicGhvdG8iOiJodHRwczovL3Jlcy5jbG91ZGluYXJ5LmNvbS9keWdwZDlwa2wvaW1hZ2UvdXBsb2FkL3YxNzE2OTA0MDkyL25hdG91cnMvdXNlcnMvdXNlci01YzhhMWQ1YjAxOTBiMjE0MzYwZGMwNTcucG5nIiwicm9sZSI6ImFkbWluIiwiaXNBY3RpdmUiOnRydWUsImNyZWF0ZWRBdCI6IjIwMjQtMDUtMjhUMTQ6MzE6MDguMTk3WiIsInVwZGF0ZWRBdCI6IjIwMjQtMDYtMjFUMTI6NDI6MDAuMDQ5WiIsIl9fdiI6MCwicGFzc3dvcmRSZXNldFRva2VuIjoiMDc1MTYxOTRjMzJiMDU4NDE2YjkzOTUzZmQyODI3Y2JlNTQwMjk2NWRmZTJlNmZiNjIyZWIyOGEyMTNjYTk1MCIsInBhc3N3b3JkUmVzZXRUb2tlbkV4cGlyZXNBdCI6IjIwMjQtMDYtMjFUMTE6MTE6MzguOTMwWiJ9LCJzZXNzaW9uSWQiOiI2Njc1NzUxODM0MDM4NTJiZGYxMmRkZTMiLCJpYXQiOjE3MTkwMTQ3MjEsImV4cCI6MTcxOTAxNTYyMX0.RmfMYRdxlAz03RYGnOPyu48j1A8O1NiX0RoCJ2moTWPwXohS94So8ZVqaoaDNOVy_dBlU9AkwfgSMEi_SLDhd9tTthNHZetWhAs2HuijSrgJ_ggpjzyc0bMFJ1TVM0ax7slsS8FvrjovxG5B0ZobYusmkwbDKsO0OCpU94l5WXute7loSkeA790qkU3h0UKsYuC4PNEzNscH3n2QfPVjrIfWUYRWBzfImyqVJnVvRfeQsA4ffXTq2UGxmVTkcTqVAiBtVfGES1L9S1fJ-jfjZMouRJ250-ja3O6N7jJXqB63_FB-a9zLepuNFV3pwGc7sguyBfM0J2A0LpDeXePYH5qoJ8nxjOCU1f_uXvq-ijmvoKuOfZf4VNIg4a6aZdTxymTMnokumQTpFye50FlGr43HRBJDUbN4qtajlYsMvz2b2psEAYb8AaovnuaCRlxLEZNIrNaQOkjoynbDLewZE34rOfnWL2NXNpqM0Tuy4pt7bXaQi8v-2HLRM-m6cKojBrfjmt9Q-Fy8ejOWT2UPGsliMeI9875PC9JlxAI13f6X3OWyyDyx8DnRSvRPphHOuVRhzhtMdEJkI1fpBpKE0HJyej2UnHrQ7or5VtY0SRdrrcgZan_dYjsu8KHVGR1m-896uptJhtHtDZIv9um3S_-tX4DjJFxgrzGE4O9q6MU; Domain=localhost; Path=/; HttpOnly; SameSite=Lax"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"57"},{"key":"ETag","value":"W/\"39-IEJ3Uv2zYsFDYaA/1hsgOwpjzME\""},{"key":"Date","value":"Sat, 22 Jun 2024 00:05:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 0,\n    \"data\": {\n        \"bookings\": []\n    }\n}"}],"_postman_id":"b597e752-a045-49fc-be3f-3b42c7e48ed4"}],"id":"ad9cae7e-dc8b-47c5-b839-d8767a2334d7","description":"<p>Protected endpoints for bookings.</p>\n<p>You can:</p>\n<ul>\n<li><p>get all bookings for the current user</p>\n</li>\n<li><p>get 1 booking by id</p>\n</li>\n</ul>\n","_postman_id":"ad9cae7e-dc8b-47c5-b839-d8767a2334d7"}],"id":"5fc0f25d-028d-4a85-8af3-d5077c6c86cb","description":"<p>Protected endpoints for user authenticated as \"user\".</p>\n","_postman_id":"5fc0f25d-028d-4a85-8af3-d5077c6c86cb"},{"name":"Role: Admin","item":[{"name":"Get All Users","id":"106f78ee-29ec-44bb-8503-1d4346134a12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users","description":"<p>Use this endpoint to get all users.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","users"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"6b17a2d0-efb6-4ca7-87cd-bae9da1f5000","name":"Get All Users","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"6926"},{"key":"ETag","value":"W/\"1b0e-jPJ0gU11v51lGuYyQCv9NLFwnBo\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:50:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 22,\n    \"data\": {\n        \"users\": [\n            {\n                \"_id\": \"5c8a21f22f8fb814b56fa18a\",\n                \"email\": \"lead-guide@natours.com\",\n                \"name\": \"Aarav Lynn\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a21f22f8fb814b56fa18a.jpg\",\n                \"role\": \"lead-guide\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a1d5b0190b214360dc057\",\n                \"email\": \"admin@natours.com\",\n                \"name\": \"Chuba Ka UpUPUP\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716904092/natours/users/user-5c8a1d5b0190b214360dc057.png\",\n                \"role\": \"admin\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-06-21T12:42:00.049Z\",\n                \"__v\": 0,\n                \"passwordResetToken\": \"07516194c32b058416b93953fd2827cbe5402965dfe2e6fb622eb28a213ca950\",\n                \"passwordResetTokenExpiresAt\": \"2024-06-21T11:11:38.930Z\"\n            },\n            {\n                \"_id\": \"5c8a22c62f8fb814b56fa18b\",\n                \"email\": \"miyah@natours.com\",\n                \"name\": \"Miyah Myles\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a22c62f8fb814b56fa18b.jpg\",\n                \"role\": \"lead-guide\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a1f292f8fb814b56fa184\",\n                \"email\": \"guide@natours.com\",\n                \"name\": \"Leo Gillespie\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f292f8fb814b56fa184.jpg\",\n                \"role\": \"guide\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                \"email\": \"jennifer@natours.com\",\n                \"name\": \"Jennifer Hardy\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                \"role\": \"guide\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a1dfa2f8fb814b56fa181\",\n                \"email\": \"user01@natours.com\",\n                \"name\": \"user01\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716911290/natours/users/user-5c8a1dfa2f8fb814b56fa181.png\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T15:48:10.798Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a1e1a2f8fb814b56fa182\",\n                \"email\": \"sophie@natours.com\",\n                \"name\": \"Sophie Louise Hart\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1e1a2f8fb814b56fa182.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a1ec62f8fb814b56fa183\",\n                \"email\": \"ayls@natours.com\",\n                \"name\": \"Ayla Cornell\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1ec62f8fb814b56fa183.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a23c82f8fb814b56fa18d\",\n                \"email\": \"laura@natours.com\",\n                \"name\": \"Laura Wilson\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23c82f8fb814b56fa18d.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a23de2f8fb814b56fa18e\",\n                \"email\": \"max@natours.com\",\n                \"name\": \"Max Smith\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23de2f8fb814b56fa18e.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a24282f8fb814b56fa18f\",\n                \"email\": \"isabel@natours.com\",\n                \"name\": \"Isabel Kirkland\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24282f8fb814b56fa18f.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a245f2f8fb814b56fa191\",\n                \"email\": \"edu@natours.com\",\n                \"name\": \"Eduardo Hernandez\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a245f2f8fb814b56fa191.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a24402f8fb814b56fa190\",\n                \"email\": \"alex@natours.com\",\n                \"name\": \"Alexander Jones\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24402f8fb814b56fa190.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a24822f8fb814b56fa192\",\n                \"email\": \"john@natours.com\",\n                \"name\": \"John Riley\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24822f8fb814b56fa192.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a24a02f8fb814b56fa193\",\n                \"email\": \"lisa@natours.com\",\n                \"name\": \"Lisa Brown\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a24a02f8fb814b56fa193.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a20d32f8fb814b56fa187\",\n                \"email\": \"eliana@natours.com\",\n                \"name\": \"Eliana Stout\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a20d32f8fb814b56fa187.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a211f2f8fb814b56fa188\",\n                \"email\": \"chris@natours.com\",\n                \"name\": \"Cristian Vega\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a211f2f8fb814b56fa188.jpg\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.198Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.198Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                \"email\": \"ben@natours.com\",\n                \"name\": \"Ben Hadley\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                \"role\": \"guide\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                \"email\": \"kate@natours.com\",\n                \"name\": \"Kate Morrison\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                \"role\": \"guide\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                \"updatedAt\": \"2024-05-28T14:31:08.197Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"6655eb14be6082808ffa4f85\",\n                \"email\": \"jane.doe@example.com\",\n                \"name\": \"jane doe\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-05-28T14:32:52.890Z\",\n                \"updatedAt\": \"2024-05-28T14:32:52.890Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"6675512af6f61bdd68af1f25\",\n                \"email\": \"janea.doe@example.com\",\n                \"name\": \"jane doe\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-06-21T10:08:42.797Z\",\n                \"updatedAt\": \"2024-06-21T10:08:42.797Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"667552f0f6f61bdd68af1f2e\",\n                \"email\": \"jane3a.doe@example.com\",\n                \"name\": \"jane doe\",\n                \"role\": \"user\",\n                \"isActive\": true,\n                \"createdAt\": \"2024-06-21T10:16:16.634Z\",\n                \"updatedAt\": \"2024-06-21T10:16:16.634Z\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"106f78ee-29ec-44bb-8503-1d4346134a12"},{"name":"Get User by id","id":"a85a332e-b4e4-4e09-8307-29ec68e31191","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users/5c8a1d5b0190b214360dc057","description":"<p>Use this endpoint to get 1 user by id.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users/:id</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","users","5c8a1d5b0190b214360dc057"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"dcd554d4-ff21-4e2f-9d55-b3a4198c2b07","name":"Get User by id","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/users/5c8a1d5b0190b214360dc057"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"506"},{"key":"ETag","value":"W/\"1fa-vuOrB2hXC3D1C5Irr2DJF92uJ94\""},{"key":"Date","value":"Sat, 22 Jun 2024 00:29:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"5c8a1d5b0190b214360dc057\",\n            \"email\": \"admin@natours.com\",\n            \"name\": \"Chuba Ka UpUPUP\",\n            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716904092/natours/users/user-5c8a1d5b0190b214360dc057.png\",\n            \"role\": \"admin\",\n            \"isActive\": true,\n            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n            \"updatedAt\": \"2024-06-21T12:42:00.049Z\",\n            \"__v\": 0,\n            \"passwordResetToken\": \"07516194c32b058416b93953fd2827cbe5402965dfe2e6fb622eb28a213ca950\",\n            \"passwordResetTokenExpiresAt\": \"2024-06-21T11:11:38.930Z\"\n        }\n    }\n}"}],"_postman_id":"a85a332e-b4e4-4e09-8307-29ec68e31191"},{"name":"Update User","id":"4bc79dde-5702-4858-a5ca-2702cf433b8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"up up up\",\n    \"role\": \"lead-guide\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/5c8a22c62f8fb814b56fa18b","description":"<p>Use this endpoint to update 1 user.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: PATCH</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/users/:id</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","users","5c8a22c62f8fb814b56fa18b"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"866af647-4314-4a88-8dde-d10d4c4a0392","name":"Update User","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"up up up\",\n    \"role\": \"lead-guide\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/5c8a22c62f8fb814b56fa18b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"359"},{"key":"ETag","value":"W/\"167-2da6zKBOJYlB55mAGlfEsUQTKiA\""},{"key":"Date","value":"Sat, 22 Jun 2024 00:41:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"5c8a22c62f8fb814b56fa18b\",\n            \"email\": \"miyah@natours.com\",\n            \"name\": \"up up up\",\n            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a22c62f8fb814b56fa18b.jpg\",\n            \"role\": \"lead-guide\",\n            \"isActive\": true,\n            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n            \"updatedAt\": \"2024-06-22T00:41:45.536Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"4bc79dde-5702-4858-a5ca-2702cf433b8d"},{"name":"Get All Bookings for 1 Tour","id":"41a95fd9-0cbf-4474-91f4-00ef2da897bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c295a/bookings","description":"<p>Use this endpoint to get all bookings for 1 tour.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/tours/:id/bookings</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c295a","bookings"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"e5fa6149-db54-4704-aefa-f9481a3472cd","name":"Get All Bookings for 1 Tour","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c295a/bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1598"},{"key":"ETag","value":"W/\"63e-fz+X29/ZUqTG9QmfxHyAJlJmpWY\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:46:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 1,\n    \"data\": {\n        \"bookings\": [\n            {\n                \"_id\": \"6655eaae6d116da9986b1991\",\n                \"price\": 597,\n                \"tour\": {\n                    \"_id\": \"5c88fa8cf4afda39709c295a\",\n                    \"name\": \"The Snow Adventurer\",\n                    \"duration\": 4,\n                    \"maxGroupSize\": 10,\n                    \"difficulty\": \"difficult\",\n                    \"ratingsAverage\": 4.5,\n                    \"ratingsCount\": 6,\n                    \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295a-cover.jpg\",\n                    \"locations\": [\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -106.855385,\n                                39.182677\n                            ],\n                            \"description\": \"Aspen Highlands\",\n                            \"day\": 1,\n                            \"_id\": \"5c88fa8cf4afda39709c295c\"\n                        },\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -106.516623,\n                                39.60499\n                            ],\n                            \"description\": \"Beaver Creek\",\n                            \"day\": 2,\n                            \"_id\": \"5c88fa8cf4afda39709c295b\"\n                        }\n                    ],\n                    \"guides\": [\n                        {\n                            \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                            \"email\": \"ben@natours.com\",\n                            \"name\": \"Ben Hadley\",\n                            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                            \"role\": \"guide\",\n                            \"isActive\": true,\n                            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                            \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                        },\n                        {\n                            \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                            \"email\": \"jennifer@natours.com\",\n                            \"name\": \"Jennifer Hardy\",\n                            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                            \"role\": \"guide\",\n                            \"isActive\": true,\n                            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                            \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                        }\n                    ],\n                    \"slug\": \"the_snow_adventurer\"\n                },\n                \"user\": {\n                    \"_id\": \"5c8a1dfa2f8fb814b56fa181\",\n                    \"name\": \"user01\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716911290/natours/users/user-5c8a1dfa2f8fb814b56fa181.png\"\n                },\n                \"createdAt\": \"2024-05-28T14:31:10.556Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.556Z\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"41a95fd9-0cbf-4474-91f4-00ef2da897bf"},{"name":"Delete Review","id":"69edddc1-e93b-4d97-a3f0-f817891f132b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/reviews/66252c63a6f70ac649db2b73","description":"<p>Use this endpoint to delete a review.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/reviews/:id</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","reviews","66252c63a6f70ac649db2b73"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"69edddc1-e93b-4d97-a3f0-f817891f132b"},{"name":"Get All Bookings","id":"cef67aa6-7da8-4985-b14a-81962419979d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/bookings","description":"<p>Use this endpoint to get all bookings.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/bookings</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","bookings"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"db4cd6ed-e8ea-43fd-88e8-ce2ebd6bca7f","name":"Get All Bookings","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4970"},{"key":"ETag","value":"W/\"136a-j0EpsA1SW0YAHJsGu6EeaMqJHZ4\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:47:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"dataCount\": 3,\n    \"data\": {\n        \"bookings\": [\n            {\n                \"_id\": \"6655fd1570d3e133b5abb19e\",\n                \"price\": 397,\n                \"tour\": {\n                    \"_id\": \"5c88fa8cf4afda39709c2951\",\n                    \"name\": \"The Forest Hiker\",\n                    \"duration\": 5,\n                    \"maxGroupSize\": 25,\n                    \"difficulty\": \"easy\",\n                    \"ratingsAverage\": 5,\n                    \"ratingsCount\": 9,\n                    \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541557/natours/tours/tour-5c88fa8cf4afda39709c2951-cover.jpg\",\n                    \"locations\": [\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -116.214531,\n                                51.417611\n                            ],\n                            \"description\": \"Banff National Park\",\n                            \"day\": 1,\n                            \"_id\": \"5c88fa8cf4afda39709c2954\"\n                        },\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -118.076152,\n                                52.875223\n                            ],\n                            \"description\": \"Jasper National Park\",\n                            \"day\": 3,\n                            \"_id\": \"5c88fa8cf4afda39709c2953\"\n                        },\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -117.490309,\n                                51.261937\n                            ],\n                            \"description\": \"Glacier National Park of Canada\",\n                            \"day\": 5,\n                            \"_id\": \"5c88fa8cf4afda39709c2952\"\n                        }\n                    ],\n                    \"guides\": [\n                        {\n                            \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                            \"email\": \"kate@natours.com\",\n                            \"name\": \"Kate Morrison\",\n                            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                            \"role\": \"guide\",\n                            \"isActive\": true,\n                            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                            \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                        },\n                        {\n                            \"_id\": \"5c8a1f292f8fb814b56fa184\",\n                            \"email\": \"guide@natours.com\",\n                            \"name\": \"Leo Gillespie\",\n                            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f292f8fb814b56fa184.jpg\",\n                            \"role\": \"guide\",\n                            \"isActive\": true,\n                            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                            \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                        }\n                    ],\n                    \"slug\": \"the_forest_hiker\"\n                },\n                \"user\": {\n                    \"_id\": \"5c8a1dfa2f8fb814b56fa181\",\n                    \"name\": \"user01\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716911290/natours/users/user-5c8a1dfa2f8fb814b56fa181.png\"\n                },\n                \"createdAt\": \"2024-05-28T15:49:41.720Z\",\n                \"updatedAt\": \"2024-05-28T15:49:41.720Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"6655eaae6d116da9986b1991\",\n                \"price\": 597,\n                \"tour\": {\n                    \"_id\": \"5c88fa8cf4afda39709c295a\",\n                    \"name\": \"The Snow Adventurer\",\n                    \"duration\": 4,\n                    \"maxGroupSize\": 10,\n                    \"difficulty\": \"difficult\",\n                    \"ratingsAverage\": 4.5,\n                    \"ratingsCount\": 6,\n                    \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295a-cover.jpg\",\n                    \"locations\": [\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -106.855385,\n                                39.182677\n                            ],\n                            \"description\": \"Aspen Highlands\",\n                            \"day\": 1,\n                            \"_id\": \"5c88fa8cf4afda39709c295c\"\n                        },\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -106.516623,\n                                39.60499\n                            ],\n                            \"description\": \"Beaver Creek\",\n                            \"day\": 2,\n                            \"_id\": \"5c88fa8cf4afda39709c295b\"\n                        }\n                    ],\n                    \"guides\": [\n                        {\n                            \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                            \"email\": \"ben@natours.com\",\n                            \"name\": \"Ben Hadley\",\n                            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                            \"role\": \"guide\",\n                            \"isActive\": true,\n                            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                            \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                        },\n                        {\n                            \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                            \"email\": \"jennifer@natours.com\",\n                            \"name\": \"Jennifer Hardy\",\n                            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                            \"role\": \"guide\",\n                            \"isActive\": true,\n                            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                            \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                        }\n                    ],\n                    \"slug\": \"the_snow_adventurer\"\n                },\n                \"user\": {\n                    \"_id\": \"5c8a1dfa2f8fb814b56fa181\",\n                    \"name\": \"user01\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716911290/natours/users/user-5c8a1dfa2f8fb814b56fa181.png\"\n                },\n                \"createdAt\": \"2024-05-28T14:31:10.556Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.556Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"6655eaae6d116da9986b1990\",\n                \"price\": 397,\n                \"tour\": {\n                    \"_id\": \"5c88fa8cf4afda39709c2951\",\n                    \"name\": \"The Forest Hiker\",\n                    \"duration\": 5,\n                    \"maxGroupSize\": 25,\n                    \"difficulty\": \"easy\",\n                    \"ratingsAverage\": 5,\n                    \"ratingsCount\": 9,\n                    \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716541557/natours/tours/tour-5c88fa8cf4afda39709c2951-cover.jpg\",\n                    \"locations\": [\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -116.214531,\n                                51.417611\n                            ],\n                            \"description\": \"Banff National Park\",\n                            \"day\": 1,\n                            \"_id\": \"5c88fa8cf4afda39709c2954\"\n                        },\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -118.076152,\n                                52.875223\n                            ],\n                            \"description\": \"Jasper National Park\",\n                            \"day\": 3,\n                            \"_id\": \"5c88fa8cf4afda39709c2953\"\n                        },\n                        {\n                            \"type\": \"Point\",\n                            \"coordinates\": [\n                                -117.490309,\n                                51.261937\n                            ],\n                            \"description\": \"Glacier National Park of Canada\",\n                            \"day\": 5,\n                            \"_id\": \"5c88fa8cf4afda39709c2952\"\n                        }\n                    ],\n                    \"guides\": [\n                        {\n                            \"_id\": \"5c8a201e2f8fb814b56fa186\",\n                            \"email\": \"kate@natours.com\",\n                            \"name\": \"Kate Morrison\",\n                            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a201e2f8fb814b56fa186.jpg\",\n                            \"role\": \"guide\",\n                            \"isActive\": true,\n                            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                            \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                        },\n                        {\n                            \"_id\": \"5c8a1f292f8fb814b56fa184\",\n                            \"email\": \"guide@natours.com\",\n                            \"name\": \"Leo Gillespie\",\n                            \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f292f8fb814b56fa184.jpg\",\n                            \"role\": \"guide\",\n                            \"isActive\": true,\n                            \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                            \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                        }\n                    ],\n                    \"slug\": \"the_forest_hiker\"\n                },\n                \"user\": {\n                    \"_id\": \"5c8a1dfa2f8fb814b56fa181\",\n                    \"name\": \"user01\",\n                    \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716911290/natours/users/user-5c8a1dfa2f8fb814b56fa181.png\"\n                },\n                \"createdAt\": \"2024-05-28T14:31:10.555Z\",\n                \"updatedAt\": \"2024-05-28T14:31:10.555Z\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"cef67aa6-7da8-4985-b14a-81962419979d"},{"name":"Get Booking by id","id":"c02192f1-322e-460f-9aaf-45a598627c60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/bookings/6655eaae6d116da9986b1991","description":"<p>Use this endpoint to get 1 booking by id.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/bookings/:id</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Status: 404 Not Found if booking not found</p>\n</li>\n<li><p>Status: 403 Forbidden if current user did not book this booking OR if not admin</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","bookings","6655eaae6d116da9986b1991"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"03523714-6e4f-4ebe-b0b3-97d48ea4bb44","name":"Get Booking by id","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/bookings/6655eaae6d116da9986b1991"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1581"},{"key":"ETag","value":"W/\"62d-2y+oi8dvycmPLDQ8pfVd6PhTD8Q\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:53:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"booking\": {\n            \"_id\": \"6655eaae6d116da9986b1991\",\n            \"price\": 597,\n            \"tour\": {\n                \"_id\": \"5c88fa8cf4afda39709c295a\",\n                \"name\": \"The Snow Adventurer\",\n                \"duration\": 4,\n                \"maxGroupSize\": 10,\n                \"difficulty\": \"difficult\",\n                \"ratingsAverage\": 4.5,\n                \"ratingsCount\": 6,\n                \"imageCover\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534626/natours/tours/tour-5c88fa8cf4afda39709c295a-cover.jpg\",\n                \"locations\": [\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -106.855385,\n                            39.182677\n                        ],\n                        \"description\": \"Aspen Highlands\",\n                        \"day\": 1,\n                        \"_id\": \"5c88fa8cf4afda39709c295c\"\n                    },\n                    {\n                        \"type\": \"Point\",\n                        \"coordinates\": [\n                            -106.516623,\n                            39.60499\n                        ],\n                        \"description\": \"Beaver Creek\",\n                        \"day\": 2,\n                        \"_id\": \"5c88fa8cf4afda39709c295b\"\n                    }\n                ],\n                \"guides\": [\n                    {\n                        \"_id\": \"5c8a23412f8fb814b56fa18c\",\n                        \"email\": \"ben@natours.com\",\n                        \"name\": \"Ben Hadley\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a23412f8fb814b56fa18c.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    },\n                    {\n                        \"_id\": \"5c8a1f4e2f8fb814b56fa185\",\n                        \"email\": \"jennifer@natours.com\",\n                        \"name\": \"Jennifer Hardy\",\n                        \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716534638/natours/users/user-5c8a1f4e2f8fb814b56fa185.jpg\",\n                        \"role\": \"guide\",\n                        \"isActive\": true,\n                        \"createdAt\": \"2024-05-28T14:31:08.197Z\",\n                        \"updatedAt\": \"2024-05-28T14:31:08.197Z\"\n                    }\n                ],\n                \"slug\": \"the_snow_adventurer\"\n            },\n            \"user\": {\n                \"_id\": \"5c8a1dfa2f8fb814b56fa181\",\n                \"name\": \"user01\",\n                \"photo\": \"https://res.cloudinary.com/dygpd9pkl/image/upload/v1716911290/natours/users/user-5c8a1dfa2f8fb814b56fa181.png\"\n            },\n            \"createdAt\": \"2024-05-28T14:31:10.556Z\",\n            \"updatedAt\": \"2024-05-28T14:31:10.556Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"c02192f1-322e-460f-9aaf-45a598627c60"}],"id":"0458202f-129a-49f8-9834-7a4b94d685a7","description":"<p>Protected endpoints for user authenticated as \"admin\".</p>\n<p>You can:</p>\n<ul>\n<li><p>get all users</p>\n</li>\n<li><p>get 1 user by id</p>\n</li>\n<li><p>update a user</p>\n</li>\n<li><p>get all bookings</p>\n</li>\n<li><p>get all bookings for 1 tour</p>\n</li>\n<li><p>get 1 booking by id</p>\n</li>\n<li><p>delete a review</p>\n</li>\n</ul>\n","_postman_id":"0458202f-129a-49f8-9834-7a4b94d685a7"},{"name":"Role: Admin  || Lead-Guide","item":[{"name":"Create New Tour","event":[{"listen":"test","script":{"id":"5296f13f-d0c4-479a-b88c-e0ad9e0cd42d","exec":["// Parse the response body as JSON","var responseBody = pm.response.json();","","// Extract the value of _id","var tourId = responseBody.data.tour._id;","","// Set the value as a Postman environment or global variable","pm.environment.set(\"tourId\", tourId);"],"type":"text/javascript","packages":{}}}],"id":"c7505dca-e89e-462e-a73f-d8ff09b6fd96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"NEW Awesome TOUR","type":"text"},{"key":"duration","value":"5","type":"text"},{"key":"maxGroupSize","value":"2","type":"text"},{"key":"price","value":"25","type":"text"},{"key":"summary","value":"Awesome Awesome Awesome","type":"text"},{"key":"difficulty","value":"medium","type":"text"},{"key":"imageCover","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green-round.png"],"src":"/Users/siegfried/Downloads/logo-green-round.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green-round.png"],"src":"/Users/siegfried/Downloads/logo-green-round.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green.png"],"src":"/Users/siegfried/Downloads/logo-green.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/user.jpg"],"src":"/Users/siegfried/Downloads/user.jpg"},{"key":"discount","value":"15","type":"text"}]},"url":"{{URL}}api/v1/tours","description":"<p>Use this endpoint to create a new tour.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/tours</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 201 Created</li>\n</ul>\n","urlObject":{"path":["v1","tours"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"619d1351-ce0e-4b0d-80d8-711a06b4c79d","name":"Create New Tour","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"NEW Awesome TOUR","type":"text"},{"key":"duration","value":"5","type":"text"},{"key":"maxGroupSize","value":"2","type":"text"},{"key":"price","value":"25","type":"text"},{"key":"summary","value":"Awesome Awesome Awesome","type":"text"},{"key":"difficulty","value":"medium","type":"text"},{"key":"imageCover","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green-round.png"],"src":"/Users/siegfried/Downloads/logo-green-round.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green-round.png"],"src":"/Users/siegfried/Downloads/logo-green-round.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green.png"],"src":"/Users/siegfried/Downloads/logo-green.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/user.jpg"],"src":"/Users/siegfried/Downloads/user.jpg"},{"key":"discount","value":"15","type":"text"}]},"url":"{{URL}}api/v1/tours"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"501"},{"key":"ETag","value":"W/\"1f5-pqURygs0wI6jOtURoe+gUl8MHpk\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:48:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"tour\": {\n            \"name\": \"NEW Awesome TOUR\",\n            \"duration\": 5,\n            \"maxGroupSize\": 2,\n            \"difficulty\": \"medium\",\n            \"ratingsAverage\": 4.5,\n            \"ratingsCount\": 1,\n            \"price\": 25,\n            \"discount\": 15,\n            \"summary\": \"Awesome Awesome Awesome\",\n            \"images\": [],\n            \"startDates\": [],\n            \"startLocation\": {\n                \"type\": \"Point\",\n                \"coordinates\": [\n                    115,\n                    8.64\n                ],\n                \"description\": \"description\"\n            },\n            \"guides\": [],\n            \"_id\": \"667576903403852bdf12de04\",\n            \"locations\": [],\n            \"createdAt\": \"2024-06-21T12:48:16.123Z\",\n            \"updatedAt\": \"2024-06-21T12:48:16.123Z\",\n            \"slug\": \"new_awesome_tour\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"c7505dca-e89e-462e-a73f-d8ff09b6fd96"},{"name":"Update Tour","event":[{"listen":"test","script":{"id":"c62183a0-b312-404f-8c82-9c758c3f43dd","exec":[""],"type":"text/javascript","packages":{}}}],"id":"f565b847-346c-47f9-ad50-9a5907ae01fd","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"imageCover","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green-round.png"],"src":"/Users/siegfried/Downloads/logo-green-round.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green.png"],"src":"/Users/siegfried/Downloads/logo-green.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/user.jpg"],"src":"/Users/siegfried/Downloads/user.jpg"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/access-refresh-02.drawio (1).png"],"src":"/Users/siegfried/Downloads/access-refresh-02.drawio (1).png"},{"key":"difficulty","value":"easy","type":"text"},{"key":"summary","value":"Awesome Awesome Awesome Awesome","type":"text"},{"key":"price","value":"999","type":"text"},{"key":"name","value":"NEW NAME 04 BISSS","type":"text","disabled":true},{"key":"duration","value":"42","type":"text"},{"key":"maxGroupSize","value":"12","type":"text"}]},"url":"{{URL}}api/v1/tours/667576903403852bdf12de04","description":"<p>Use this endpoint to update a tour.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: PATCH</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/tours/:id</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours","667576903403852bdf12de04"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"b609ab78-092c-4fdd-ab55-34efaea11e0a","name":"Update Tour","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"imageCover","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green-round.png"],"src":"/Users/siegfried/Downloads/logo-green-round.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/logo-green.png"],"src":"/Users/siegfried/Downloads/logo-green.png"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/user.jpg"],"src":"/Users/siegfried/Downloads/user.jpg"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/siegfried/Downloads/access-refresh-02.drawio (1).png"],"src":"/Users/siegfried/Downloads/access-refresh-02.drawio (1).png"},{"key":"difficulty","value":"easy","type":"text"},{"key":"summary","value":"Awesome Awesome Awesome Awesome","type":"text"},{"key":"price","value":"999","type":"text"},{"key":"name","value":"NEW NAME 04 BISSS","type":"text","disabled":true},{"key":"duration","value":"42","type":"text"},{"key":"maxGroupSize","value":"12","type":"text"}]},"url":"{{URL}}api/v1/tours/667576903403852bdf12de04"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"510"},{"key":"ETag","value":"W/\"1fe-h4pZYyIxEyvxS1NRZx5AuxVBlRk\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:49:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"tour\": {\n            \"startLocation\": {\n                \"type\": \"Point\",\n                \"coordinates\": [\n                    115,\n                    8.64\n                ],\n                \"description\": \"description\"\n            },\n            \"_id\": \"667576903403852bdf12de04\",\n            \"name\": \"NEW Awesome TOUR\",\n            \"duration\": 42,\n            \"maxGroupSize\": 12,\n            \"difficulty\": \"easy\",\n            \"ratingsAverage\": 4.5,\n            \"ratingsCount\": 1,\n            \"price\": 999,\n            \"discount\": 15,\n            \"summary\": \"Awesome Awesome Awesome Awesome\",\n            \"images\": [],\n            \"startDates\": [],\n            \"guides\": [],\n            \"locations\": [],\n            \"createdAt\": \"2024-06-21T12:48:16.123Z\",\n            \"updatedAt\": \"2024-06-21T12:49:01.561Z\",\n            \"slug\": \"new_awesome_tour\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"f565b847-346c-47f9-ad50-9a5907ae01fd"},{"name":"Delete Tour","id":"f14d5efc-3687-4bc3-9acf-661ddae271cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c295a","description":"<p>Use this endpoint to delete a tour.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/tours/:id</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>id: string</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 204 No Content</li>\n</ul>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c295a"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"e2b2cdaf-5882-4565-b070-639ecf914597","name":"Delete Tour","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c295a"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Date","value":"Sat, 22 Jun 2024 03:18:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f14d5efc-3687-4bc3-9acf-661ddae271cd"}],"id":"af22fc7f-813c-4228-9272-855a6338caa2","description":"<p>Protected endpoints for user authenticated as \"admin\" or \"lead-guide\".</p>\n<p>You can:</p>\n<ul>\n<li><p>create a new tour</p>\n</li>\n<li><p>update a tour</p>\n</li>\n<li><p>delete a tour</p>\n</li>\n</ul>\n","_postman_id":"af22fc7f-813c-4228-9272-855a6338caa2"},{"name":"Role: Admin  || Lead-Guide || Guide","item":[{"name":"Get  Tours Monthly Stats","event":[{"listen":"test","script":{"id":"d8c756dc-4f25-4c8c-a5aa-b8dc0b31f448","exec":[""],"type":"text/javascript","packages":{}}}],"id":"ca7aa82b-efb1-48a4-9e14-c56f3f4b7c54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours//monthly-stats/2024","description":"<p>Use this endpoint to get monthly statistics for a given year on all tours.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{URL}}api/v1/tours/monthly-stats/:year</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path parameters</h3>\n<ul>\n<li>year: number</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n","urlObject":{"path":["v1","tours","","monthly-stats","2024"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[{"id":"797a64fd-e581-48ad-94ee-56bc23e72f17","name":"Get  Tours Monthly Stats","originalRequest":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours//monthly-stats/2024"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"744"},{"key":"ETag","value":"W/\"2e8-aIQyLpU853RXAlocAyfgnaOX9S4\""},{"key":"Date","value":"Fri, 21 Jun 2024 12:50:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"stats\": [\n            {\n                \"toursStartcount\": 2,\n                \"tours\": [\n                    \"The Wine Taster\",\n                    \"The Sports Lover\"\n                ],\n                \"month\": 9\n            },\n            {\n                \"toursStartcount\": 2,\n                \"tours\": [\n                    \"The Forest Hiker\",\n                    \"The Sports Lover\"\n                ],\n                \"month\": 7\n            },\n            {\n                \"toursStartcount\": 2,\n                \"tours\": [\n                    \"The Forest Hiker\",\n                    \"The Wine Taster\"\n                ],\n                \"month\": 4\n            },\n            {\n                \"toursStartcount\": 2,\n                \"tours\": [\n                    \"The Star Gazer\",\n                    \"The City Wanderer\"\n                ],\n                \"month\": 3\n            },\n            {\n                \"toursStartcount\": 2,\n                \"tours\": [\n                    \"The Forest Hiker\",\n                    \"The Star Gazer\"\n                ],\n                \"month\": 10\n            },\n            {\n                \"toursStartcount\": 1,\n                \"tours\": [\n                    \"The City Wanderer\"\n                ],\n                \"month\": 5\n            },\n            {\n                \"toursStartcount\": 1,\n                \"tours\": [\n                    \"The Northern Lights\"\n                ],\n                \"month\": 12\n            },\n            {\n                \"toursStartcount\": 1,\n                \"tours\": [\n                    \"The City Wanderer\"\n                ],\n                \"month\": 6\n            },\n            {\n                \"toursStartcount\": 1,\n                \"tours\": [\n                    \"The Wine Taster\"\n                ],\n                \"month\": 2\n            },\n            {\n                \"toursStartcount\": 1,\n                \"tours\": [\n                    \"The Park Camper\"\n                ],\n                \"month\": 8\n            }\n        ]\n    }\n}"}],"_postman_id":"ca7aa82b-efb1-48a4-9e14-c56f3f4b7c54"}],"id":"e1a9dff6-21b5-4b27-9341-568304babdb4","description":"<p>Protected endpoints for user authenticated as \"admin\", \"lead-guide\" or \"guide\".</p>\n","_postman_id":"e1a9dff6-21b5-4b27-9341-568304babdb4"}],"id":"f53ebc60-f812-432c-a6df-331bf600a0fb","description":"<p>Protected endpoints.</p>\n<p>Authentication is required.</p>\n<p>Authorizations vary upon authenticated user's role (\"user\", \"admin\", \"lead-guide\" or \"guide\") and endpoints.</p>\n<p>Required:</p>\n<ul>\n<li><p>All protected routes require the user to send valid accessToken and refreshToken cookies.</p>\n</li>\n<li><p>If not logged in, Response Status 401 Unauthorized</p>\n</li>\n</ul>\n","_postman_id":"f53ebc60-f812-432c-a6df-331bf600a0fb"}],"variable":[{"key":"jwt","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1ZmMwOTZjNTA2NTUxZjFkMjgyYTNmNiIsImlhdCI6MTcxMTAxNjMwMCwiZXhwIjoxNzE4NzkyMzAwfQ.F6G7BkrmA1ajfF29UHXCayoyAUXx4B_h5j6XfmYdteQ"}]}