{"info":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","description":"<html><head></head><body><p>this api is standalone api,made with full fleshed authorization,payments,email,photo upload,update,creating ,reading ,updating ,deleting (CRUD) rest api..it can query db,supports advanced db serch operartions,like sorting ,pagination,statistics and much more.this api supports a natours web app which supports many models and colllections.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11944008","collectionId":"167fd7f4-de2c-4c15-875c-c876cf44911a","publishedId":"T17Nbjug","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-13T19:03:58.000Z"},"item":[{"name":"tour","item":[{"name":"getting all tours","id":"2d1ac5fb-fa88-453c-ab7b-2c9184367dda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/api/v1/tours?price[gte]=500&sort=-price,-duration&limit=2&page=1","urlObject":{"path":["api","v1","tours"],"host":["{{url}}"],"query":[{"key":"price[gte]","value":"500"},{"key":"sort","value":"-price,-duration"},{"key":"limit","value":"2"},{"key":"page","value":"1"},{"disabled":true,"key":"fields","value":"difficulty"},{"disabled":true,"key":"difficulty","value":"difficult"}],"variable":[]}},"response":[],"_postman_id":"2d1ac5fb-fa88-453c-ab7b-2c9184367dda"},{"name":"creating  a tour","id":"0d2acff8-4e37-4449-b184-e8364a2fa20b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"The beast killer 1\",\n    \"maxGroupSize\": 25,\n    \"ratingsAverage\": 4.7,\n    \"ratingsQuantity\": 37,\n    \"price\":500,\n    \"difficulty\":\"difficult\",\n    \"duration\":4,\n    \"summary\": \"Breathtaking hike through the Canadian Banff National Park\",\n    \"description\": \"jfjf\",\n    \"imageCover\": \"tour-1-cover.jpg\",\n    \"images\": [\"tour-1-1.jpg\", \"tour-1-2.jpg\", \"tour-1-3.jpg\"],\n    \"startDates\": [\"2021-04-25,10:00\", \"2021-07-20,10:00\", \"2021-10-05,10:00\"],\n    \"guides\":[\n        \"5efe144a407e1b56d806d3d8\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/create/tour","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","create","tour"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d2acff8-4e37-4449-b184-e8364a2fa20b"},{"name":"getting tour by id","id":"d9d89fb4-2913-40da-9605-bcaa6b513e10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/api/v1/find/tour/5c88fa8cf4afda39709c2955","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","find","tour","5c88fa8cf4afda39709c2955"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9d89fb4-2913-40da-9605-bcaa6b513e10"},{"name":"updating a tour by id","id":"6584cd40-483e-4251-9a98-aa2758d881af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"images","type":"file","src":"/C:/Users/tony/Pictures/Saved Pictures/254508.jpg"},{"key":"images","type":"file","src":"/C:/Users/tony/Pictures/Saved Pictures/77049_naruto-shippuden-hd-wallpapers_1600x900_h.jpg"},{"key":"images","type":"file","src":"/C:/Users/tony/Pictures/Saved Pictures/85377-Naruto_Shippuuden-anime-manga-Namikaze_Minato-Kyuubi-748x468.jpg"},{"key":"imageCover","type":"file","src":"/C:/Users/tony/Pictures/Saved Pictures/254533.jpg"},{"key":"test","value":"hello","type":"text"}]},"url":"{{url}}/api/v1/tour/5c88fa8cf4afda39709c2955","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","tour","5c88fa8cf4afda39709c2955"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6584cd40-483e-4251-9a98-aa2758d881af"},{"name":"deleting  a tour by id","id":"2844dfd3-4da7-4916-bfee-35b77e5997d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/api/v1/tour/5eece421348e814fd060e358","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","tour","5eece421348e814fd060e358"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2844dfd3-4da7-4916-bfee-35b77e5997d5"},{"name":"get stats","id":"f623f7cc-d6b2-47b4-955a-b240873bb120","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/api/v1/tours/getstats","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","tours","getstats"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f623f7cc-d6b2-47b4-955a-b240873bb120"},{"name":"top-5-cheap","id":"240f0d81-9d1e-4b6d-9106-9ec5c1e4f8b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/api/v1/tours/top-5-cheap","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","tours","top-5-cheap"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"240f0d81-9d1e-4b6d-9106-9ec5c1e4f8b0"},{"name":"get monthly stats","id":"a7d75dbd-17c0-4714-bb33-9619d541e15b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/api/v1/tours/getMonthsStats/2021","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","tours","getMonthsStats","2021"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7d75dbd-17c0-4714-bb33-9619d541e15b"},{"name":" tour -> review create","id":"31e8816c-13b1-4009-98f0-53edd66cd968","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"review\":\"a good review 2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{urlf}}/tours/5eff3a4e16c1484410100f39/review/create","description":"<p>creating tour -&gt; review</p>\n","urlObject":{"path":["tours","5eff3a4e16c1484410100f39","review","create"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"31e8816c-13b1-4009-98f0-53edd66cd968"},{"name":"tour ->review get all","id":"76eb3ace-f61b-4628-826f-9fb2223d9ed8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{urlf}}/tours/5eff3a4e16c1484410100f39/review/getAll","description":"<p>gett all review inside a tour</p>\n","urlObject":{"path":["tours","5eff3a4e16c1484410100f39","review","getAll"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"76eb3ace-f61b-4628-826f-9fb2223d9ed8"},{"name":"getting a tour within a loc","id":"d2239580-c0c9-48d6-97b1-63ce4af2dd22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{urlf}}/tours/located-within/400/latlng/34.111745,-118.113491/units/mi","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["tours","located-within","400","latlng","34.111745,-118.113491","units","mi"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2239580-c0c9-48d6-97b1-63ce4af2dd22"},{"name":"getting a dist bw user and tour start point ","id":"c8afd5aa-5e26-43ff-9cf4-4eaa4c0773b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{urlf}}/tours/distances/34.111745,-118.113491/units/mi","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["tours","distances","34.111745,-118.113491","units","mi"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8afd5aa-5e26-43ff-9cf4-4eaa4c0773b1"},{"name":"tour booking","id":"55f171f2-3e1a-4315-a5d7-f4b04ddb0a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{urlf}}/bookings/checkout-session/5c88fa8cf4afda39709c2955","urlObject":{"path":["bookings","checkout-session","5c88fa8cf4afda39709c2955"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"55f171f2-3e1a-4315-a5d7-f4b04ddb0a71"},{"name":"getting tour by slug","id":"bfdfe2d5-c2db-46ce-8002-24b4943cab36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{urlf}}/tour/the-sea-explorer","urlObject":{"path":["tour","the-sea-explorer"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfdfe2d5-c2db-46ce-8002-24b4943cab36"}],"id":"04d70b2b-ef39-4718-8bbe-bb63dce84e9d","description":"<p>all tour related routes</p>\n","_postman_id":"04d70b2b-ef39-4718-8bbe-bb63dce84e9d","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}}},{"name":"users","item":[{"name":"deleting a user","id":"a6297d1c-f36d-4084-bf11-f03e6b9f9c0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{url}}/api/v1/user/deleteMe","urlObject":{"path":["api","v1","user","deleteMe"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6297d1c-f36d-4084-bf11-f03e6b9f9c0a"},{"name":"login a user","event":[{"listen":"test","script":{"id":"5e552887-094f-4f54-b01a-306359f44c71","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"36a0313a-bd75-4d96-a2c2-21cb72890bb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n    \"email\":\"admin@natours.io\",\r\n    \"password\":\"test1234\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/login/user","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","login","user"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"36a0313a-bd75-4d96-a2c2-21cb72890bb3"},{"name":"creating a user","event":[{"listen":"test","script":{"id":"9e59a4ff-970b-49fb-a258-81adbeb8f194","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"661b55b2-cd93-491b-9e2e-60361e463f34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"sam sam\",\r\n    \"email\":\"samy6@gmail.com\",\r\n    \"password\":\"samsamsam\",\r\n    \"confirmPassword\":\"samsamsam\",\r\n    \"photo\":\"sfsdjklskjdfsljs\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/create/user","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","create","user"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"661b55b2-cd93-491b-9e2e-60361e463f34"},{"name":"forgot Password","id":"9537d40c-e721-44ee-ad68-e4f8ea9f2838","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"janjanjan6@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/user/forgotPassword","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","user","forgotPassword"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9537d40c-e721-44ee-ad68-e4f8ea9f2838"},{"name":"reset password","event":[{"listen":"test","script":{"id":"ddf92b11-fc72-4439-a5a0-f5e5fc8c0409","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"ef2b0149-a50d-49b4-a02d-475933f8c2d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"passpasspass\",\r\n    \"confirmPassword\":\"passpasspass\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/user/resetPassword/d11788c0a4bfdc5b6871ee49135b4cc1e1387728020419cb286e06e64e3f204f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","user","resetPassword","d11788c0a4bfdc5b6871ee49135b4cc1e1387728020419cb286e06e64e3f204f"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef2b0149-a50d-49b4-a02d-475933f8c2d1"},{"name":"update password","event":[{"listen":"test","script":{"id":"2953ad2c-e86c-49d3-83f6-454d7741181d","exec":["    if(pm.response.to.have.status(201)){\r","pm.environment.set(\"jwt\", pm.response.json().token);\r","    }\r",""],"type":"text/javascript"}}],"id":"e180d3ca-c293-4a8e-bf9f-3085af3b0f5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\":\"samsamsam\",\r\n    \"newPassword\":\"samsamsamsam\",\r\n    \"confirmPassword\":\"samsamsamsam\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/user/updatePassword","urlObject":{"path":["api","v1","user","updatePassword"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e180d3ca-c293-4a8e-bf9f-3085af3b0f5f"},{"name":"update user info","id":"195b07e4-faae-4f17-acbf-c1fa552bae3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"photo","type":"file","src":"/C:/Users/tony/Pictures/Saved Pictures/madara.png"},{"key":"test","value":"hello","type":"text"}]},"url":"{{url}}/api/v1/user/updateMe","urlObject":{"path":["api","v1","user","updateMe"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"195b07e4-faae-4f17-acbf-c1fa552bae3e"},{"name":"getting all users","id":"b619b420-b4b9-48d9-8e08-1a5ea4ef5b05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/api/v1/user/getAllUsers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["api","v1","user","getAllUsers"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b619b420-b4b9-48d9-8e08-1a5ea4ef5b05"},{"name":"getting myself","id":"4a000888-9214-4236-8b77-9beee40cbdf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{urlf}}/user/getme","urlObject":{"path":["user","getme"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a000888-9214-4236-8b77-9beee40cbdf7"}],"id":"b22c736a-09f5-4316-9c3c-78f9ccf5c4da","description":"<p>all users related routes</p>\n","_postman_id":"b22c736a-09f5-4316-9c3c-78f9ccf5c4da","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}}},{"name":"general","item":[{"name":"hello","id":"b516e68d-b384-4d66-b37f-507c85e887fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":[""],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b516e68d-b384-4d66-b37f-507c85e887fc"},{"name":"404 page","id":"15c680b5-f70f-451d-a06c-963d82d3d209","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/lsjlf","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}},"urlObject":{"path":["lsjlf"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"15c680b5-f70f-451d-a06c-963d82d3d209"}],"id":"86f37e8d-c191-4e9f-ac22-d1ffde2f7b59","description":"<p>general request</p>\n","_postman_id":"86f37e8d-c191-4e9f-ac22-d1ffde2f7b59","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}}},{"name":"reviews ","item":[{"name":"getting all reviews","id":"39f21720-6ee5-4348-a506-c8dba54cceb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{urlf}}/review/getAll","urlObject":{"path":["review","getAll"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"39f21720-6ee5-4348-a506-c8dba54cceb8"},{"name":"create  review","id":"760689c5-b2bc-4eb3-af34-fd92a5ea5342","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\":5,\r\n    \"review\":\"a good review\",\r\n    \"tour\":\"5f00dd96a9dc6b5e34485aa4\",\r\n    \"user\":\"5c8a1d5b0190b214360dc057\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{urlf}}/review/create","urlObject":{"path":["review","create"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"760689c5-b2bc-4eb3-af34-fd92a5ea5342"}],"id":"149991cb-add1-42a7-a5d7-ff73832cb384","description":"<p>routes for revies</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"7b069d08-7d21-4c90-a702-00b83b4fcced","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"05f4f264-1b75-42ea-9221-48571941ed10","type":"text/javascript","exec":[""]}}],"_postman_id":"149991cb-add1-42a7-a5d7-ff73832cb384"},{"name":"bookings ","item":[{"name":"get all bookings","id":"590b3ae9-9ca5-4ad8-8458-a7d067ec3a31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{urlf}}/bookings/getAll","description":"<p>get all bookings in db</p>\n","urlObject":{"path":["bookings","getAll"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"590b3ae9-9ca5-4ad8-8458-a7d067ec3a31"},{"name":"create a booking","id":"46a3ef9b-8ad2-4b56-93c7-29bb8ef6b493","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\":\"5f07096a1076c725bced3204\",\r\n    \"tour\":\"5c88fa8cf4afda39709c2951\",\r\n    \"price\":456\r\n}","options":{"raw":{"language":"json"}}},"url":"{{urlf}}/bookings/create/booking","urlObject":{"path":["bookings","create","booking"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"46a3ef9b-8ad2-4b56-93c7-29bb8ef6b493"},{"name":"updating a booking by id","id":"d79c04e6-03cc-4559-b314-68e76809a40f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\":\"5f07096a1076c725bced3204\",\r\n    \"tour\":\"5c88fa8cf4afda39709c2951\",\r\n    \"price\":500\r\n}","options":{"raw":{"language":"json"}}},"url":"{{urlf}}/bookings/booking/5f09abfc41af241078ecf83c","urlObject":{"path":["bookings","booking","5f09abfc41af241078ecf83c"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d79c04e6-03cc-4559-b314-68e76809a40f"},{"name":"get booking by id","id":"2fbb1997-67db-4d96-b1f3-180bd4decea1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{urlf}}/bookings/find/booking/5f09abfc41af241078ecf83c","urlObject":{"path":["bookings","find","booking","5f09abfc41af241078ecf83c"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2fbb1997-67db-4d96-b1f3-180bd4decea1"},{"name":"delete  a booking by id","id":"6df7eea2-b088-4acb-ab16-14aa6309975d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{urlf}}/bookings/booking/5f09abfc41af241078ecf83c","urlObject":{"path":["bookings","booking","5f09abfc41af241078ecf83c"],"host":["{{urlf}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6df7eea2-b088-4acb-ab16-14aa6309975d"}],"id":"b7e4365f-74b1-4385-8d74-4aba62b0247a","description":"<p>routes relating to booking </p>\n","_postman_id":"b7e4365f-74b1-4385-8d74-4aba62b0247a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"167fd7f4-de2c-4c15-875c-c876cf44911a","id":"167fd7f4-de2c-4c15-875c-c876cf44911a","name":"tours-app","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]}},"event":[{"listen":"prerequest","script":{"id":"e580a9d1-ea66-48b0-962b-40a6f6049b4c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3bceb0aa-cef6-4e1c-ae37-bc7d00385710","type":"text/javascript","exec":[""]}}]}