{"info":{"_postman_id":"77c51698-648d-4546-bd29-bcc620429565","name":"Natours","description":"<html><head></head><body><p>Natours is An Application built for tourist.  </p>\n<p>Built By: <a href=\"https://github.com/feelchi1star\">Felix Chinonso Emmanuel</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21087341","collectionId":"77c51698-648d-4546-bd29-bcc620429565","publishedId":"2s93CPrCQC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-02-26T11:45:11.000Z"},"item":[{"name":"Authentication","item":[{"name":"Sign up user","event":[{"listen":"test","script":{"exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript","id":"bb1293eb-8aeb-4f96-bbe1-125f68bad020"}}],"id":"4e1bbf87-6863-4322-9fb9-ce7b5b5b931a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"cook@gmail.com\",\n    \"name\" : \"music\",\n    \"password\": \"12345678\"\n    ,\"passwordConfirm\":\"12345678\"\n\n\n\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/signup","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ed1a3d36-011d-4a2f-aa0a-79d9fb4495dd","id":"ed1a3d36-011d-4a2f-aa0a-79d9fb4495dd","name":"Authentication","type":"folder"}},"urlObject":{"path":["users","signup"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e1bbf87-6863-4322-9fb9-ce7b5b5b931a"},{"name":"Login user","event":[{"listen":"test","script":{"id":"e5cb6cb9-f7c6-4aba-a089-9d313acdc698","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"67c8723d-24e2-4f1c-8fa6-d05bfb1324a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"loulou@example.com\",\n    \"password\": \"(password)\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/login","urlObject":{"path":["users","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"67c8723d-24e2-4f1c-8fa6-d05bfb1324a6"},{"name":"Reset password","event":[{"listen":"test","script":{"id":"d7f8eab0-6311-4338-a6c5-1f51883e7799","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"46f43158-d46f-4ae0-a27a-a40039bcbc57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\":\"123450000\",\n\"passwordConfirm\":\"123450000\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/resetpassword/{resetToken}","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ed1a3d36-011d-4a2f-aa0a-79d9fb4495dd","id":"ed1a3d36-011d-4a2f-aa0a-79d9fb4495dd","name":"Authentication","type":"folder"}},"urlObject":{"path":["users","resetpassword","{resetToken}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"46f43158-d46f-4ae0-a27a-a40039bcbc57"},{"name":"Update Password","event":[{"listen":"test","script":{"exec":["// pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript","id":"b61656eb-47da-4aaf-9f56-0c6e7d216f58"}}],"id":"91223cd0-de0f-4159-8394-8fe43a3b2c0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"\n{\n\"passwordCurrent\":\"12345678\",\n    \"password\": \"123456780\"\n,    \"passwordConfirm\": \"123456780\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/updatepassword","urlObject":{"path":["users","updatepassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"91223cd0-de0f-4159-8394-8fe43a3b2c0b"},{"name":"Forgotten Password","id":"485f60e4-1e46-44db-beda-78fedb2c8b03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \"email\":\"welcome@gmail.com\"}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/forgotpassword","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ed1a3d36-011d-4a2f-aa0a-79d9fb4495dd","id":"ed1a3d36-011d-4a2f-aa0a-79d9fb4495dd","name":"Authentication","type":"folder"}},"urlObject":{"path":["users","forgotpassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"485f60e4-1e46-44db-beda-78fedb2c8b03"}],"id":"ed1a3d36-011d-4a2f-aa0a-79d9fb4495dd","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"d9ac29f5-1585-47fd-8001-e0c90dc004e3"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"97699b32-42e4-4422-a4bd-1f3d215c26aa"}}],"_postman_id":"ed1a3d36-011d-4a2f-aa0a-79d9fb4495dd","description":""},{"name":"User","item":[{"name":"Get all user","id":"17811192-469e-45be-bdbb-4eaf5e8105a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/users","urlObject":{"path":["users"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"17811192-469e-45be-bdbb-4eaf5e8105a8"},{"name":"Update User Profile","id":"d6c412f1-cbeb-4d26-83f2-d278afc4eeb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\"name\":\"peter\",\n\"role\":\"admin\",\n\"email\":\"11@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/updateMe","urlObject":{"path":["users","updateMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6c412f1-cbeb-4d26-83f2-d278afc4eeb0"},{"name":"Update User Admin","id":"633be116-8212-48a3-a9c0-122943253125","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\"name\":\"peter\",\n\"role\":\"admin\",\n\"email\":\"cooke1@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/63f2d9c0a44c799d23f570da","urlObject":{"path":["users","63f2d9c0a44c799d23f570da"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"633be116-8212-48a3-a9c0-122943253125"},{"name":"Delete Current User","id":"a345e645-0a06-49ef-9222-78afe78a8f27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/deleteMe","urlObject":{"path":["users","deleteMe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a345e645-0a06-49ef-9222-78afe78a8f27"},{"name":"Delete User Admin","id":"446a9968-0ad8-44fb-b931-7df5ce8bccf3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/users/63f2d9430611bb01fb625bd6","urlObject":{"path":["users","63f2d9430611bb01fb625bd6"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"446a9968-0ad8-44fb-b931-7df5ce8bccf3"},{"name":"GET User Admin","id":"5160eaf7-66f9-4245-b962-7d14c4a8ba67","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}}/users/63818772f59f8197004382b9","urlObject":{"path":["users","63818772f59f8197004382b9"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5160eaf7-66f9-4245-b962-7d14c4a8ba67"},{"name":"Get Me","id":"f130f34c-978d-4d36-bb1c-2460ccfea972","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/users/me","urlObject":{"path":["users","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f130f34c-978d-4d36-bb1c-2460ccfea972"}],"id":"23d46d61-4d75-428c-937b-b9f69e24195c","_postman_id":"23d46d61-4d75-428c-937b-b9f69e24195c","description":""},{"name":"Tours","item":[{"name":"Get All Tour","id":"f09e1945-cc33-48c5-8e24-6b41d99e3902","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/tours?duration[gt]=?","description":"<h2 id=\"get-all-tour-and-you-can-also-perform-some-filter-options\">Get All Tour and you can also Perform some filter options</h2>\n","urlObject":{"path":["tours"],"host":["{{URL}}"],"query":[{"description":{"content":"<p>Get tour Based on duration</p>\n","type":"text/plain"},"key":"duration[gt]","value":"?"}],"variable":[]}},"response":[],"_postman_id":"f09e1945-cc33-48c5-8e24-6b41d99e3902"},{"name":"Get Single Tour","id":"b3c08a90-c2c3-4b6c-8a3a-51816f817944","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/tours/5c88fa8cf4afda39709c2955","urlObject":{"path":["tours","5c88fa8cf4afda39709c2955"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3c08a90-c2c3-4b6c-8a3a-51816f817944"},{"name":"Delete Tour","id":"dfd2584d-bd66-4148-909f-d340942637f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/tours/63f291caee485a8fcf6cdfa0","urlObject":{"path":["tours","63f291caee485a8fcf6cdfa0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfd2584d-bd66-4148-909f-d340942637f3"},{"name":"top-5-cheap","id":"ca4d25fb-df34-47c9-9819-3c957ec3ccfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/tours/top-5-cheap","urlObject":{"path":["tours","top-5-cheap"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca4d25fb-df34-47c9-9819-3c957ec3ccfe"},{"name":"tour-stats","id":"285e6368-caaf-456e-a7a1-710eb230628b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/tours/monthly-plan/2021","urlObject":{"path":["tours","monthly-plan","2021"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"285e6368-caaf-456e-a7a1-710eb230628b"},{"name":"Edit Tour","id":"3acfd256-3a94-48ec-8db0-538d1358567e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\"guides\":[\"63818772f59f8197004382b9\", \"638189a46a412cb84fe00ab9\", \"63a1a0b5a929f5c245a9dde6\",\"63a1a0b5a929f5c245a9dde6\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{DevApiURL}}/tours/5c88fa8cf4afda39709c2955","urlObject":{"path":["tours","5c88fa8cf4afda39709c2955"],"host":["{{DevApiURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3acfd256-3a94-48ec-8db0-538d1358567e"},{"name":"Create new Tour","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"e9401abd-1020-440e-a2c6-dfeff7964146"}}],"id":"d6f13eb5-fda5-4a3d-ae1f-7c520d3c2d88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"guides\":[],\n     \"name\": \"Another Wellcome Updated\",\n            \"duration\": 4,\n            \"maxGroupSize\": 10,\n            \"difficulty\": \"difficult\",\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\": \"tour-3-cover.jpg\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/tours","urlObject":{"path":["tours"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6f13eb5-fda5-4a3d-ae1f-7c520d3c2d88"},{"name":"Search Tours Within","id":"03cba1ec-bcb2-44a0-8466-34e74a2f3800","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/tours/tours-within/100/center/34.111745,-118.11349/unit/mi","urlObject":{"path":["tours","tours-within","100","center","34.111745,-118.11349","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"03cba1ec-bcb2-44a0-8466-34e74a2f3800"},{"name":"Search Tours Distance From two Point","id":"18fdd707-fb24-4afd-bef2-c77e4fcc61ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/tours/distance/34.111745,-118.11349/unit/mi","urlObject":{"path":["tours","distance","34.111745,-118.11349","unit","mi"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"18fdd707-fb24-4afd-bef2-c77e4fcc61ab"}],"id":"b349870a-59d5-4ee3-80d4-fb4016c4bb1a","description":"<h1 id=\"you-can-create-get-delete-tour-from-this-collection\">You can Create, Get, Delete Tour From this Collection</h1>\n","_postman_id":"b349870a-59d5-4ee3-80d4-fb4016c4bb1a"},{"name":"Reviews","item":[{"name":"Get All Reviews","id":"3c586001-3040-437e-96e7-9d163bc9cf63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/reviews?rating=4","urlObject":{"path":["reviews"],"host":["{{URL}}"],"query":[{"key":"rating","value":"4"}],"variable":[]}},"response":[],"_postman_id":"3c586001-3040-437e-96e7-9d163bc9cf63"},{"name":"Create Review","id":"24552191-2d08-470a-a91e-987dd00d1046","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tour\":\"63ef7fcdc03cabc3d8741a6e\",\n  \"review\": \"I love The Products. No Nest\",\n  \"rating\":3\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/reviews","urlObject":{"path":["reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"24552191-2d08-470a-a91e-987dd00d1046"},{"name":"Get Single Reviews","id":"406e0a72-0c9d-4823-a269-42aaea6c2cdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/reviews/63f2a829f82ad8a356b78102","urlObject":{"path":["reviews","63f2a829f82ad8a356b78102"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"406e0a72-0c9d-4823-a269-42aaea6c2cdd"},{"name":"Delete Single Reviews","id":"421ba061-5eee-40ca-aa07-d3942fde7190","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/reviews/63f94f7f309ffcef24ef754b","urlObject":{"path":["reviews","63f94f7f309ffcef24ef754b"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"421ba061-5eee-40ca-aa07-d3942fde7190"},{"name":"Edit Single Reviews","id":"50bd66ca-65b2-421a-ac96-cfe64ceaf887","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"rating\":5\n    \n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/reviews/63f6f38e073556786058659b","urlObject":{"path":["reviews","63f6f38e073556786058659b"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"50bd66ca-65b2-421a-ac96-cfe64ceaf887"}],"id":"adffcdd6-6672-4262-b6ac-50bd395e01e8","_postman_id":"adffcdd6-6672-4262-b6ac-50bd395e01e8","description":""},{"name":"Tours/Review","item":[{"name":"Create Review Tour/Review","id":"5087c34f-f599-4e2d-87b0-5a50e5913758","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"review\": \"Welcome home team\",\n  \"rating\":1\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/tours/63f6f31b0735567860586596/reviews","urlObject":{"path":["tours","63f6f31b0735567860586596","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5087c34f-f599-4e2d-87b0-5a50e5913758"},{"name":"Get All Review Tour/Review","id":"3d264fe2-83d4-4531-9c2b-407620697a4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/tours/5c88fa8cf4afda39709c2955/reviews","urlObject":{"path":["tours","5c88fa8cf4afda39709c2955","reviews"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d264fe2-83d4-4531-9c2b-407620697a4a"}],"id":"763a0595-783c-4d66-bebe-ea79a706159a","_postman_id":"763a0595-783c-4d66-bebe-ea79a706159a","description":""},{"name":"Error Handling","id":"3e8a1243-6681-41a7-8073-700c4315bc9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"OPTIONS","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.krikia.com/v1/business","urlObject":{"protocol":"https","path":["v1","business"],"host":["api","krikia","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e8a1243-6681-41a7-8073-700c4315bc9d"}]}