{"info":{"_postman_id":"e8dfa521-59fc-4839-8022-1595d505d785","name":"natours","description":"<html><head></head><body><p>{{url}}: \"<a href=\"https://natours-gwhk.onrender.com/\">https://natours-gwhk.onrender.com/</a>\"</p>\n<p><strong>Natours API</strong>  provides endpoints for managing tours, users, reviews and authentication.</p>\n<p>The Tours endpoint allows the user to retrieve a list of all available tours, view details of a specific tour, create new tours and edit existing tours.</p>\n<p>The Users endpoint enables the admins to retrieve information about a specific user, create new users, and edit existing user information.</p>\n<p>The Reviews endpoint allows the user to view all reviews for a specific tour, add new reviews, and edit existing reviews.</p>\n<p>The Authentication endpoint provides functionality for users to log in and log out of the API, as well as retrieve information about the current user's session.</p>\n<p>This API allows for easy management of tour information, user information, and reviews, providing a comprehensive platform for travel-related applications.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23240552","collectionId":"e8dfa521-59fc-4839-8022-1595d505d785","publishedId":"2s8YzXvfuB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-12-16T14:27:35.000Z"},"item":[{"name":"Tours","item":[{"name":"Get All Tours","id":"2e876862-33dc-4ae1-9a3b-453e34209218","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours","description":"<p>Use this to get all tours</p>\n","urlObject":{"path":["v1","tours"],"host":["{{URL}}api"],"query":[{"disabled":true,"description":{"content":"<p>Query for tour duration, supports gte, lte, gt, lt operators.</p>\n","type":"text/plain"},"key":"duration[gte]","value":"5"},{"disabled":true,"key":"price[lt]","value":"1000"},{"disabled":true,"key":"sort","value":"-price,=ratingsAverage"},{"disabled":true,"key":"fields","value":"-name,-duration,-difficulty,-price"},{"disabled":true,"key":"limit","value":"5"},{"disabled":true,"key":"sort","value":"-ratingAverage,price"},{"disabled":true,"key":"fields","value":"name,duration"},{"disabled":true,"key":"difficulty","value":"easy"},{"disabled":true,"key":"difficulty","value":"difficult"},{"disabled":true,"key":"price[lte]","value":"1000"},{"disabled":true,"key":"ratingsAverage[gte]","value":"4.7"}],"variable":[]}},"response":[],"_postman_id":"2e876862-33dc-4ae1-9a3b-453e34209218"},{"name":"Get Tour","id":"04c4abd0-7627-441d-b06c-028f6f7c28a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c2961","description":"<p>It is to get a single tour by ID.</p>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c2961"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"04c4abd0-7627-441d-b06c-028f6f7c28a3"},{"name":"Create new Tour","id":"d1ca089e-add2-4475-a170-d20d48177613","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    \"maxGroupSize\": 1,\n    \"difficulty\": \"easy\",\n    \"price\": 200,\n    \"priceDiscount\": 100,\n    \"summary\": \"Test Tour\",\n    \"imageCover\": \"tour-3-cover.jpg\"\n\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours","description":"<p>Use this end point to create a new tour. Only users with \"admin\" or \"lead-guide\" roles can create new tours. This endpoint requires log in.</p>\n","urlObject":{"path":["v1","tours"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1ca089e-add2-4475-a170-d20d48177613"},{"name":"Update Tour","id":"58fb7e5c-c71c-4c3f-8b86-cb32be1d12d6","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/linux/Desktop/Araf/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-1.jpg"},{"key":"images","type":"file","src":"/home/linux/Desktop/Araf/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-2.jpg"},{"key":"images","type":"file","src":"/home/linux/Desktop/Araf/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-3.jpg"},{"key":"images","type":"file","src":"/home/linux/Desktop/Araf/complete-node-bootcamp-master/4-natours/starter/dev-data/img/new-tour-4.jpg"},{"key":"price","value":"997","type":"text"}]},"url":"{{URL}}api/v1/tours/63aa950eb5a116a2d5729d57","description":"<p>Use this endpoint to update the tour's information by providing the tour ID. This action is only permissible to users with \"admin\" and \"lead-guide\" roles. This endpoint requires log in.</p>\n","urlObject":{"path":["v1","tours","63aa950eb5a116a2d5729d57"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"58fb7e5c-c71c-4c3f-8b86-cb32be1d12d6"},{"name":"Delete Tour","id":"6855a626-d2c1-4240-8f11-d5c3bac090aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c295a","description":"<p>Use this endpoint to delete a tour using the tour's id. This action is reserved to \"admin\" and \"lead-guide\" roles. Endpoint requires log in.</p>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c295a"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6855a626-d2c1-4240-8f11-d5c3bac090aa"},{"name":"Get Top 5 Cheap Tours","id":"29769912-9295-4085-a8ea-d513de574713","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/top-5-cheap","description":"<p>Use this endpoint to get the top cheapest tours.</p>\n","urlObject":{"path":["v1","tours","top-5-cheap"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"29769912-9295-4085-a8ea-d513de574713"},{"name":"Get Monthly Plan","id":"d82ff57e-0c8b-4f84-b811-d5ac6f5c5fc8","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>Use this endpoint as an \"admin\", a \" lead-guide\" or a \"guide\" to get the monthly plan of tours. Requires log in.</p>\n","urlObject":{"path":["v1","tours","monthly-plan","2021"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"d82ff57e-0c8b-4f84-b811-d5ac6f5c5fc8"},{"name":"Get Tour Stats","id":"af6d64b7-909c-4931-b702-bfeb2cfdd3f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/tour-stats","description":"<p>Use this endpoint to get the tour stats. Open for all users. Does not require log in.</p>\n","urlObject":{"path":["v1","tours","tour-stats"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"af6d64b7-909c-4931-b702-bfeb2cfdd3f5"},{"name":"Get Tour Within Radius","id":"c8cba778-a78c-4c8c-a983-e30e7f8f6ad9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/tours-within/400/center/35, -118/unit/mi","description":"<p>Use this endpoint to get a tour within the specified distance. Takes distance, latitude, longitude and units as variables. Units must be in miles (i.e \"mi\") or kilometers (i.e \"km\").</p>\n","urlObject":{"path":["v1","tours","tours-within","400","center","35, -118","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8cba778-a78c-4c8c-a983-e30e7f8f6ad9"},{"name":"Get distances to Tours From Point","id":"622a581c-dbcb-4d3e-a3ae-2529bd31ce09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/tours/distances/34.1111745, -118.1135/unit/mi","description":"<p>Use this endpoint to get the distance to a tour from a specific point on the map. Takes latitude, longitude and units as variables. Units must be in miles or kilometers (i.e \"mi\", \"km\").</p>\n","urlObject":{"path":["v1","tours","distances","34.1111745, -118.1135","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"622a581c-dbcb-4d3e-a3ae-2529bd31ce09"}],"id":"f8abe2ee-9a33-46f6-a98e-2ba8387ec67c","description":"<p><strong>This folder is all about tours.</strong>\nYou can CRUD tours. there is also some special endpoints for special requirements.</p>\n","_postman_id":"f8abe2ee-9a33-46f6-a98e-2ba8387ec67c"},{"name":"Users","item":[{"name":"Get All Users","id":"c8b1dd38-e78d-4bff-a990-e91a3f257086","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users?role=user","description":"<p>Use this endpoint as an \"admin\" to get all users. Requires log in.</p>\n","urlObject":{"path":["v1","users"],"host":["{{URL}}api"],"query":[{"key":"role","value":"user"}],"variable":[]}},"response":[],"_postman_id":"c8b1dd38-e78d-4bff-a990-e91a3f257086"},{"name":"Get user","id":"3d71cd54-6927-4767-8336-bd05c7644810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users/1","description":"<p>Use this endpoint as an \"admin\" to get a specific user. Takes user id as a parameter. Requires log in.</p>\n","urlObject":{"path":["v1","users","1"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d71cd54-6927-4767-8336-bd05c7644810"},{"name":"Get Current User","id":"9facf891-1057-4eb2-86f1-0e50a903a63c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/users/me","description":"<p>Use this endpoint as a user to get own information. Requires log in.</p>\n","urlObject":{"path":["v1","users","me"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"9facf891-1057-4eb2-86f1-0e50a903a63c"},{"name":"Update User","id":"e00ca747-cb2c-45e1-b033-209b53fba9e5","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/639456d73b0a235a54a597d7","description":"<p>Use this endpoint as an \"admin\" to update the information of a certain user. Takes user id as a parameter. Requires log in.</p>\n","urlObject":{"path":["v1","users","639456d73b0a235a54a597d7"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e00ca747-cb2c-45e1-b033-209b53fba9e5"},{"name":"Update Current User","id":"325311bc-1ba1-4ec5-b03d-89f562614934","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Leo J. Gillespie","type":"text","disabled":true},{"key":"photo","type":"file","src":"/home/linux/Desktop/Araf/complete-node-bootcamp-master/4-natours/starter/dev-data/img/aarav.jpg"}]},"url":"{{URL}}api/v1/users/updateMe","description":"<p>Use this endpoint as a \"user\" to update own information. Requires log in.</p>\n","urlObject":{"path":["v1","users","updateMe"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"325311bc-1ba1-4ec5-b03d-89f562614934"},{"name":"Delete User","id":"2a45ed5b-43a0-42f9-8135-bd7d8177c0c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/users/6396f6405cc1e4ed820fca2f","description":"<p>Use this endpoint as an \"admin\" to delete a specified user. Takes user id as a parameter. Requires log in.</p>\n","urlObject":{"path":["v1","users","6396f6405cc1e4ed820fca2f"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a45ed5b-43a0-42f9-8135-bd7d8177c0c6"},{"name":"Delete Current User","id":"05ca2472-b362-4b89-aef2-214fd0cc3194","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>Use this endpoint as a user to inactivate own account. Requires log in.</p>\n","urlObject":{"path":["v1","users","deleteMe"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"05ca2472-b362-4b89-aef2-214fd0cc3194"}],"id":"9f32b193-69a1-41c0-8c9e-6874d0ceae61","_postman_id":"9f32b193-69a1-41c0-8c9e-6874d0ceae61","description":""},{"name":"Authentication","item":[{"name":"Login","event":[{"listen":"test","script":{"id":"e416c8c9-96ac-46da-b087-bca0282117a4","exec":["pm.environment.set(\"jwt\", pm.response.json().token);",""],"type":"text/javascript"}}],"id":"cbf96150-386b-4e35-892c-f4dde386d015","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@natours.io\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/login","description":"<p>Use this end point to log in. Email and password must be provided.</p>\n","urlObject":{"path":["v1","users","login"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbf96150-386b-4e35-892c-f4dde386d015"},{"name":"Sign Up","id":"31c8b85f-bc7f-4686-ae63-5edb25b1d4cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Araf\",\n    \"email\": \"check@mailsac.com\",\n    \"password\": \"{{password}}\",\n    \"passwordConfirm\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/signup","description":"<p>Use this endpoint to create a new user account.</p>\n","urlObject":{"path":["v1","users","signup"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"31c8b85f-bc7f-4686-ae63-5edb25b1d4cb"},{"name":"Forgot Password","id":"0025a4c5-63de-4a2b-9d04-f2c333e447dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test@natours.io\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/forgotPassword","description":"<p>Use this endpoint to get a token for reseting a forgotten password.</p>\n","urlObject":{"path":["v1","users","forgotPassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0025a4c5-63de-4a2b-9d04-f2c333e447dd"},{"name":"Reset Password","event":[{"listen":"test","script":{"id":"a9dff223-7957-47ad-b3f9-68d2c2b11c76","exec":["pm.environment.set(\"jwt\", pm.response.json().token);",""],"type":"text/javascript"}}],"id":"c519c9c1-bca4-4990-aace-980989cba9c8","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/c53efe02510f228b359ef647f9bcce9f7be63e3bb05e4f86c0a58c5cf083a92f","description":"<p>Use this endpoint as a user to reset a password. Takes the token provided in the forgotten password endpoint as a parameter.</p>\n","urlObject":{"path":["v1","users","resetPassword","c53efe02510f228b359ef647f9bcce9f7be63e3bb05e4f86c0a58c5cf083a92f"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c519c9c1-bca4-4990-aace-980989cba9c8"},{"name":"Update Current Password","event":[{"listen":"test","script":{"id":"a6d40faa-6362-40d8-ac64-4e395131396b","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"773cab98-2373-456e-a744-a4005ddacda4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"passwordCurrent\": \"pass1234\",\n    \"password\": \"newpassword\",\n    \"passwordConfirm\": \"newpassword\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/updateMyPassword","description":"<p>Use this endpoint to update the current password. Requires log in.</p>\n","urlObject":{"path":["v1","users","updateMyPassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"773cab98-2373-456e-a744-a4005ddacda4"}],"id":"6cd7c4f1-07da-400b-bfe7-546c10ec5705","_postman_id":"6cd7c4f1-07da-400b-bfe7-546c10ec5705","description":""},{"name":"Tours/Reviews","item":[{"name":"Get All Reviews on Tour","id":"a95e632d-1cf7-4a4e-b8e9-097b9b6ef84f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/tours/5c88fa8cf4afda39709c2951/reviews","description":"<p>Use this endpoint to get the reviews of a specific tour. Takes as argument the tour's id. Requires log in.</p>\n","urlObject":{"path":["v1","tours","5c88fa8cf4afda39709c2951","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a95e632d-1cf7-4a4e-b8e9-097b9b6ef84f"},{"name":"Create New Review on Tour","id":"a01a4a58-7c14-423e-8fad-081a6351a85c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"rating\": 5,\n    \"review\": \"AMAZING\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/tours/6399c77889292883873a5e50/reviews","description":"<p>Use this endpoint as a user to create a review for a specific tour. Takes the tour's id as a parameter. Requires log in.</p>\n","urlObject":{"path":["v1","tours","6399c77889292883873a5e50","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a01a4a58-7c14-423e-8fad-081a6351a85c"}],"id":"951ef450-7489-4274-82f8-fd2a0b83a19e","_postman_id":"951ef450-7489-4274-82f8-fd2a0b83a19e","description":""},{"name":"Reviews","item":[{"name":"Get All Reviews","id":"80785d8a-9eff-47ed-b50f-25c8117987db","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>Use this endpoint to get all the reviews for all the tours. Requires log in.</p>\n","urlObject":{"path":["v1","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"80785d8a-9eff-47ed-b50f-25c8117987db"},{"name":"Get Review","id":"022a7ddc-28f0-4484-a84b-76985dbac9f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/reviews/5c88fa8cf4afda39709c295d","description":"<p>Use this endpoint to get a specific review. Requires log in.</p>\n","urlObject":{"path":["v1","reviews","5c88fa8cf4afda39709c295d"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"022a7ddc-28f0-4484-a84b-76985dbac9f8"},{"name":"Create New Review","id":"f9724484-01f4-4ca1-9294-4887ef04f612","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"review\": \"Amazing Tour\",\n    \"rating\": 4,\n    \"tour\": \"6399c77889292883873a5e50\",\n    \"user\": \"639495a2984eb0515bd798db\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews","description":"<p>Use this endpoint as a user to create a general review about the company or the tours offered. Requires log in. The tour's id and the user id must be provided.</p>\n","urlObject":{"path":["v1","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9724484-01f4-4ca1-9294-4887ef04f612"},{"name":"Update Review","id":"d6713913-9fdf-4935-a8e4-cd7ab5806133","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"rating\": 5\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews/639af1659f7b761791345c0e","description":"<p>Use this endpoint as a \"user\" or an \"admin\" to update a certain review. Takes the reviews's id as parameter. Requires log in.</p>\n","urlObject":{"path":["v1","reviews","639af1659f7b761791345c0e"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6713913-9fdf-4935-a8e4-cd7ab5806133"},{"name":"Delete Review","id":"4da99061-4951-4b70-a43e-a09cc38a77e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/reviews/639aefb231836a03bb3b1e81","description":"<p>Use this endpoint as a \"user\" or an \"admin\" to delete a certain review. Takes the review's id as a parameter. Requires log in.</p>\n","urlObject":{"path":["v1","reviews","639aefb231836a03bb3b1e81"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4da99061-4951-4b70-a43e-a09cc38a77e9"}],"id":"c9eff505-8cf6-4ebe-9266-3d175bc1a1a6","_postman_id":"c9eff505-8cf6-4ebe-9266-3d175bc1a1a6","description":""},{"name":"Bookings","item":[{"name":"Get All Bookings","id":"ee6ac39f-5fde-4761-8138-f67a3a0e9295","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":["v1","bookings"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee6ac39f-5fde-4761-8138-f67a3a0e9295"},{"name":"Get Booking","id":"3e4b37d6-5e0a-403a-803e-db3a9307495d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/bookings/63aee04e984faaedad5ea505","urlObject":{"path":["v1","bookings","63aee04e984faaedad5ea505"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e4b37d6-5e0a-403a-803e-db3a9307495d"},{"name":"Create Booking","id":"26e48a44-0d5d-4778-b68e-fe2e22bbd0b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}api/v1/bookings","urlObject":{"path":["v1","bookings"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"26e48a44-0d5d-4778-b68e-fe2e22bbd0b4"},{"name":"Update Booking","id":"c75b6ca2-ed91-43df-975d-ab03c8dbe1b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"paid\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/bookings/63aed5ac1e552d86419348e6","urlObject":{"path":["v1","bookings","63aed5ac1e552d86419348e6"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c75b6ca2-ed91-43df-975d-ab03c8dbe1b2"},{"name":"Delete Booking","id":"2c28c65b-2cd5-40bd-92a0-f65274d99c18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/bookings/63ad918448dd3d4c89d752c8","urlObject":{"path":["v1","bookings","63ad918448dd3d4c89d752c8"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c28c65b-2cd5-40bd-92a0-f65274d99c18"},{"name":"payment booking","id":"f051bfce-456c-4249-ae64-41806c7f7d98","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":["v1","bookings","checkout-session","5c88fa8cf4afda39709c2955"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"f051bfce-456c-4249-ae64-41806c7f7d98"}],"id":"03c03ce3-acab-42e0-b958-abbaa3350979","description":"<p><strong>NOT allowed to USE</strong></p>\n","_postman_id":"03c03ce3-acab-42e0-b958-abbaa3350979"},{"name":"http://127.0.0.1:5000/v1/posts?page=359&limit=5","id":"83f908b9-5d28-40ad-bc50-7c287e25bc37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/v1/posts?page=359&limit=5","urlObject":{"protocol":"http","port":"5000","path":["v1","posts"],"host":["127","0","0","1"],"query":[{"key":"page","value":"359"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"83f908b9-5d28-40ad-bc50-7c287e25bc37"}]}