{"info":{"_postman_id":"23ccecb9-35fd-4a9d-a301-6d33791399a8","name":"natours","description":"<html><head></head><body><p><strong>The Natours API</strong>&nbsp;contains endpoints for Tours, Users, and Reviews.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18431775","collectionId":"23ccecb9-35fd-4a9d-a301-6d33791399a8","publishedId":"2s93kz65Xd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-18T07:42:04.000Z"},"item":[{"name":"Tours","item":[{"name":"Get all the tours","id":"4c2b3fbc-d6cc-4f24-93b9-3a5c3e24908a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/","description":"<p>API Endpoint for querying all the tours, allows query parameters.</p>\n","urlObject":{"path":["api","v1","tours",""],"host":["{{URL}}"],"query":[{"disabled":true,"key":"difficulty","value":"easy"},{"disabled":true,"key":"price[lt]","value":"1400"},{"disabled":true,"key":"sort","value":"price,ratingsAverage"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"sort","value":"-ratingsAverage,price"},{"disabled":true,"key":"page","value":"4"},{"disabled":true,"key":"fields","value":"name,duration"},{"disabled":true,"key":"sort","value":"price"},{"disabled":true,"key":"sort","value":"duration"},{"disabled":true,"key":"duration","value":"5"},{"disabled":true,"key":"duration","value":"9"},{"disabled":true,"key":"limit","value":"2"},{"disabled":true,"description":{"content":"<p>query for tour duration. supports gte, lte, gt, lt operators</p>\n","type":"text/plain"},"key":"duration[gte]","value":"7"},{"disabled":true,"key":"price[lt]","value":"1000"},{"disabled":true,"key":"ratingsAverage[gte]","value":"4.7"}],"variable":[]}},"response":[],"_postman_id":"4c2b3fbc-d6cc-4f24-93b9-3a5c3e24908a"},{"name":"Create new tour","id":"cc60e5d7-273e-4e67-babf-0a5caf71c370","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"new test tour\",\n    \"duration\": 1,\n    \"difficulty\": \"easy\",\n    \"price\": 101,\n    \"summary\": \"test tour\",\n    \"imageCover\": \"tour-5-cover.jpg\",\n    \"maxGroupSize\": 4\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours","description":"<p>API Endpoint for creating a tour.</p>\n<p>Requires to be logged in, with a role of admin || lead-guide.</p>\n","urlObject":{"path":["api","v1","tours"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc60e5d7-273e-4e67-babf-0a5caf71c370"},{"name":"Get a Tour by Id","id":"dcc407fe-5735-4227-b8e6-670ec006024c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/646558abb7ae6d6775702866","description":"<p>API Endpoint for querying single tour, with a path variable of :id</p>\n","urlObject":{"path":["api","v1","tours","646558abb7ae6d6775702866"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dcc407fe-5735-4227-b8e6-670ec006024c"},{"name":"Update a Tour","id":"62b23f6d-ba11-4c90-b97e-3f9e8ff298df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"imageCover","type":"file","src":"/home/abk/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-1.jpg"},{"key":"images","type":"file","src":"/home/abk/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-2.jpg"},{"key":"images","type":"file","src":"/home/abk/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-3.jpg"},{"key":"images","type":"file","src":"/home/abk/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-4.jpg"},{"key":"price","value":"656","type":"text"}]},"url":"{{URL}}/api/v1/tours/648be31bfbcab599204c1a65","description":"<p>API Endpoint for updating a tour using path variable :id.</p>\n<p>Requires to be logged in, with a role of admin || lead-guide.</p>\n","urlObject":{"path":["api","v1","tours","648be31bfbcab599204c1a65"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"62b23f6d-ba11-4c90-b97e-3f9e8ff298df"},{"name":"Delete a Tour","id":"86470952-a8ad-43ee-a9ed-e76b6e280dd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/tours/645fde1aaeec9e479ab3ace0","description":"<p>API Endpoint for deleting a tour using path variable :id.</p>\n<p>Requires to be logged in, with a role of admin || lead-guide.</p>\n","urlObject":{"path":["api","v1","tours","645fde1aaeec9e479ab3ace0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86470952-a8ad-43ee-a9ed-e76b6e280dd0"},{"name":"Get top 5 cheap tours","id":"e01698e0-1870-4e42-a6af-1c5b26ca594a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/top-5-cheap","description":"<p>Alias endpoint for querying:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>limit</th>\n<th>5</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sort</td>\n<td>-ratingsAverage,price</td>\n</tr>\n<tr>\n<td>fields</td>\n<td>name,price,ratingsAverage,summary,difficulty</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","tours","top-5-cheap"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e01698e0-1870-4e42-a6af-1c5b26ca594a"},{"name":"Get monthly plan","id":"572ae38a-503f-4d56-bd9b-a754e429756d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/monthly-plan/2021","description":"<p>API Endpoint for all tours for a specific year - with path variable :year.</p>\n<p>Requires to be logged in, with a role of admin || lead-guide.</p>\n","urlObject":{"path":["api","v1","tours","monthly-plan","2021"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"572ae38a-503f-4d56-bd9b-a754e429756d"},{"name":"Get tour stats","id":"118d9f90-7f2c-4f43-a48a-79b57dec046f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/tour-stats","description":"<p>API Endpoint for top 5 tours per tour's difficulty.</p>\n","urlObject":{"path":["api","v1","tours","tour-stats"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"118d9f90-7f2c-4f43-a48a-79b57dec046f"},{"name":"get tours within radius","id":"70e651b5-7d13-48b5-a41b-a3806c84ca2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/tours-within/400/center/38.551803, -121.487647/unit/mi","description":"<p>API Endpoint for getting all tours within a certain radius.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Variable</strong></th>\n<th><strong>Explanation</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>:distance</td>\n<td>The radius</td>\n<td>400</td>\n</tr>\n<tr>\n<td>:latlng</td>\n<td>Latitude and longtitude</td>\n<td>34.111745,-118.113491</td>\n</tr>\n<tr>\n<td>:unit</td>\n<td>Unit of measurement</td>\n<td>mi <strong>(mi / km only!)</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","tours","tours-within","400","center","38.551803, -121.487647","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"70e651b5-7d13-48b5-a41b-a3806c84ca2a"},{"name":"get distances to tours from point","id":"f361859d-53a6-483a-a6bb-9cf525a68b72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/distances/38.551803, -121.487647/unit/km","description":"<p>API Endpoint for getting all tours' distances from a certain point.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Variable</strong></th>\n<th>Explanation</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>:latlng</td>\n<td>Latitude and longtitude</td>\n<td>34.111745,-118.113491</td>\n</tr>\n<tr>\n<td>:unit</td>\n<td>Unit of measurement</td>\n<td>mi <strong>(mi / km only!)</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","tours","distances","38.551803, -121.487647","unit","km"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f361859d-53a6-483a-a6bb-9cf525a68b72"}],"id":"b8da9eb2-ea47-4bf8-94f2-05683bd7ee46","description":"<p>API Endpoints for CRUD operations for the <strong>tours collection</strong>.<br />Includes aggregated pipelines, and geospatial queries and aggregation.</p>\n","_postman_id":"b8da9eb2-ea47-4bf8-94f2-05683bd7ee46"},{"name":"Users","item":[{"name":"get all users","id":"0380d89a-0d1c-4acd-909f-32bac9326935","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users","description":"<p>API Endpoint for getting all users, for <strong>admin</strong> role only.</p>\n","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"role","value":"user"}],"variable":[]}},"response":[],"_postman_id":"0380d89a-0d1c-4acd-909f-32bac9326935"},{"name":"Get a user by id","id":"ffda6c1f-4fe5-479c-948d-b4579fb567cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"url":"{{URL}}/api/v1/users/645e912b0660b1eb8e39ba40","description":"<p>API Endpoint for getting a user using :userId, for <strong>admin</strong> role only.</p>\n","urlObject":{"path":["api","v1","users","645e912b0660b1eb8e39ba40"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ffda6c1f-4fe5-479c-948d-b4579fb567cd"},{"name":"Update User","id":"dc8080ec-f6ef-4311-8e82-cc9004f8d0a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Administrator\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/645e912b0660b1eb8e39ba40","description":"<p>API Endpoint for updating a user using :userId, for <strong>admin</strong> role only.</p>\n","urlObject":{"path":["api","v1","users","645e912b0660b1eb8e39ba40"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc8080ec-f6ef-4311-8e82-cc9004f8d0a1"},{"name":"Delete User","id":"7eebfb5e-4d52-4cec-85c8-3b140727cb82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/users/6461aa80f74cb48202967215","description":"<p>API Endpoint for deleting a user using :userId, for <strong>admin</strong> role only.</p>\n","urlObject":{"path":["api","v1","users","6461aa80f74cb48202967215"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7eebfb5e-4d52-4cec-85c8-3b140727cb82"},{"name":"Get Current User","id":"90926ea5-f08a-44db-9136-004effc9e9aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/me","description":"<p>API Endpoint to getting current user's data.</p>\n","urlObject":{"path":["api","v1","users","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"90926ea5-f08a-44db-9136-004effc9e9aa"},{"name":"Update Current User","id":"d75dbc4f-dc57-44b8-9ce2-baaecfe32432","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Leo Gillespie","type":"text","disabled":true},{"key":"photo","type":"file","src":"/home/abk/complete-node-bootcamp-master/4-natours/starter/dev-data/img/aarav.jpg"}]},"url":"{{URL}}/api/v1/users/updateMe","description":"<p>API Endpoint to update current user's data.</p>\n<p>Changing password is not allowed in this path.</p>\n","urlObject":{"path":["api","v1","users","updateMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d75dbc4f-dc57-44b8-9ce2-baaecfe32432"},{"name":"Delete Current User","id":"07729479-b64f-48fe-80f7-3749320f0054","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/users/deleteMe","description":"<p>API Endpoint to deleting current user's account.</p>\n","urlObject":{"path":["api","v1","users","deleteMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"07729479-b64f-48fe-80f7-3749320f0054"}],"id":"bdb857b8-971e-48fb-b060-3bd59f3e5e21","description":"<p>API Endpoints for CRUD operations for the <strong>users collection</strong>.</p>\n","_postman_id":"bdb857b8-971e-48fb-b060-3bd59f3e5e21"},{"name":"Reviews","item":[{"name":"get all reviews","id":"bd3ba6ae-40f9-4f09-bb02-d71cd184fdd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews","description":"<p>API Endpoint for getting all reviews.</p>\n<p>Allows query parameters.</p>\n<p>Requires to be logged in.</p>\n","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"rating","value":"4"},{"disabled":true,"key":"limit","value":"1"},{"disabled":true,"key":"page","value":"4"}],"variable":[]}},"response":[],"_postman_id":"bd3ba6ae-40f9-4f09-bb02-d71cd184fdd2"},{"name":"Get Review","id":"d7974262-d78a-43f0-81e0-9e57c21dc7e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/reviews/646175e97e61d42f9357f416","description":"<p>API Endpoint for getting a single review using path variable :id.</p>\n<p>Requires to be logged in.</p>\n","urlObject":{"path":["api","v1","reviews","646175e97e61d42f9357f416"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d7974262-d78a-43f0-81e0-9e57c21dc7e9"},{"name":"Create New Review","id":"030dbf80-50e7-4448-be30-68862f3fed7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"review\": \"loved it\",\n    \"rating\": 4,\n    \"tour\": \"5c88fa8cf4afda39709c295a\",\n    \"user\": \"645e92c93abd42edee051c57\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews","description":"<p>API Endpoint for creating a review.</p>\n<p>Requires to be logged in, with a role of user.</p>\n","urlObject":{"path":["api","v1","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"030dbf80-50e7-4448-be30-68862f3fed7b"},{"name":"Update Review","id":"eeed1864-12e3-453d-a6e3-7ba11399eee6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"rating\": 3\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reviews/646580f7b7ae6d677570287f","description":"<p>API Endpoint for updating a review using path variable :id.</p>\n<p>Requires to be logged in, with a role of user || admin.</p>\n","urlObject":{"path":["api","v1","reviews","646580f7b7ae6d677570287f"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eeed1864-12e3-453d-a6e3-7ba11399eee6"},{"name":"Delete Review","id":"05634533-ca5c-47e5-b0c7-0a32814f0977","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/reviews/64653a186244b940d72c1e46","description":"<p>API Endpoint for deleting a review using path variable :id.</p>\n<p>Requires to be logged in, with a role of user || admin.</p>\n","urlObject":{"path":["api","v1","reviews","64653a186244b940d72c1e46"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"05634533-ca5c-47e5-b0c7-0a32814f0977"}],"id":"0d63ee6c-46c1-4cf2-9fc0-63d703dc70ac","_postman_id":"0d63ee6c-46c1-4cf2-9fc0-63d703dc70ac","description":""},{"name":"Authentication","item":[{"name":"sign up","event":[{"listen":"test","script":{"id":"0852dcf4-7a97-41a5-925a-6f6c93f2aa10","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"13c900bd-df6d-4efc-a3ea-013086b09006","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"abk\",\n    \"email\": \"abk@mailsac.com\",\n    \"password\": \"test1234\",\n    \"passwordConfirm\": \"test1234\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/signup","description":"<p>API Endpoint for signing up, provide name, mail, password and passwordConfirm <strong>(must match!)</strong></p>\n","urlObject":{"path":["api","v1","users","signup"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"13c900bd-df6d-4efc-a3ea-013086b09006"},{"name":"login","event":[{"listen":"test","script":{"id":"d3a62fc0-7e4d-4d18-b28c-e281060961b8","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"cb1aad47-7fed-4c02-b02d-3c4f9d06790e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"laura@example.com\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/login","description":"<p>Simple login endpoint, provide email and password.<br />Postman will save the jwt to the env variables.</p>\n","urlObject":{"path":["api","v1","users","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb1aad47-7fed-4c02-b02d-3c4f9d06790e"},{"name":"forgot password","id":"8ebee05e-bdd6-4632-80bd-ca4d259e605e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test50@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/forgotPassword","description":"<p>API Endpoint for forgetting password.</p>\n<p>Generates new reset password token and sends to the email provided.</p>\n","urlObject":{"path":["api","v1","users","forgotPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ebee05e-bdd6-4632-80bd-ca4d259e605e"},{"name":"reset password","event":[{"listen":"test","script":{"id":"7bf982f3-3548-42d9-8c6f-dc75b36cc28e","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"d8a86e13-5699-4c79-9c1c-0e88dec8e80b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"newpassword\",\n    \"passwordConfirm\": \"newpassword\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/resetPassword/cdd09af4342dd1aed29880ddeda6487c6eff508a2eb1d2fc2d56c0b5418e1570","description":"<p>API Endpoint for resetting the password, using the :resetPasswordToken sent to mail.</p>\n","urlObject":{"path":["api","v1","users","resetPassword","cdd09af4342dd1aed29880ddeda6487c6eff508a2eb1d2fc2d56c0b5418e1570"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8a86e13-5699-4c79-9c1c-0e88dec8e80b"},{"name":"update current user password","event":[{"listen":"test","script":{"id":"b1be14ac-d6e1-4018-b6fc-1da959bc79fe","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"e0ff36ff-e4f6-4ba6-955c-9c1a0f38c67f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"passwordCurrent\": \"12345678\",\n    \"password\": \"12345678\",\n    \"passwordConfirm\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/updateMyPassword","description":"<p>API Endpoint to update current user's password.</p>\n<p>Requires to be logged in.</p>\n","urlObject":{"path":["api","v1","users","updateMyPassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e0ff36ff-e4f6-4ba6-955c-9c1a0f38c67f"}],"id":"79c155f7-2d6e-4541-96f7-1548ea225441","description":"<p>API Endpoints for authentication.</p>\n<p>incl. signing up, login, forgot password + reset password, update current user's password.</p>\n","_postman_id":"79c155f7-2d6e-4541-96f7-1548ea225441"},{"name":"Tours/Reviews","item":[{"name":"Get All Reviews on Tour","id":"1050332e-737d-4fd3-a323-2751698db2bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tours/5c88fa8cf4afda39709c2961/reviews","description":"<p>API Endpoint for getting all reviews, under a specific tour - with the :tourId.</p>\n<p>Requires to be logged in.</p>\n","urlObject":{"path":["api","v1","tours","5c88fa8cf4afda39709c2961","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1050332e-737d-4fd3-a323-2751698db2bc"},{"name":"Create New Review on Tour","id":"aacff23e-611e-49a2-8092-3d1ae8115c6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"review\": \"AWESOME\",\n    \"rating\": 5\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tours/646558abb7ae6d6775702866/reviews","description":"<p>API Endpoint for creating a review, under a specific tour - with the :tourId.</p>\n<p>Requires to be logged in, with a role of user.</p>\n","urlObject":{"path":["api","v1","tours","646558abb7ae6d6775702866","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aacff23e-611e-49a2-8092-3d1ae8115c6a"}],"id":"1d12bb35-8fa2-41d5-a86e-13eb5692476b","_postman_id":"1d12bb35-8fa2-41d5-a86e-13eb5692476b","description":""},{"name":"Bookings","item":[{"name":"Get All Bookings","id":"70181184-b4f8-4041-9516-9e88835a5b89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bookings/","urlObject":{"path":["api","v1","bookings",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"70181184-b4f8-4041-9516-9e88835a5b89"},{"name":"booking checkout","id":"6e144630-2726-469c-a54e-333f016ab030","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bookings/checkout-session/5c88fa8cf4afda39709c2955","urlObject":{"path":["api","v1","bookings","checkout-session","5c88fa8cf4afda39709c2955"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e144630-2726-469c-a54e-333f016ab030"},{"name":"Get Booking","id":"9dafc56e-6f1b-4cae-9023-2d07697d583c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bookings/64a349afc8a635097f519845","urlObject":{"path":["api","v1","bookings","64a349afc8a635097f519845"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9dafc56e-6f1b-4cae-9023-2d07697d583c"}],"id":"77b42496-5e12-45e2-b84f-c92671e02adb","_postman_id":"77b42496-5e12-45e2-b84f-c92671e02adb","description":""}]}