{"info":{"_postman_id":"ad3d58c5-44dc-4bb1-857c-af90ac259525","name":"ProHiker","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10112808","collectionId":"ad3d58c5-44dc-4bb1-857c-af90ac259525","publishedId":"TVYKacMN","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-30T16:09:31.000Z"},"item":[{"name":"User","item":[{"name":"Get All Users","id":"f7b9dcde-0de9-4267-aedc-e301dc5699c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/users","urlObject":{"path":["v1","users"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7b9dcde-0de9-4267-aedc-e301dc5699c0"},{"name":"Update Profile","id":"55e072e1-641c-4b27-b888-610dcb10e6fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Sudaraka Senevirathne\",\r\n    \"email\": \"sudharakafb@gamil.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/updateProfile","urlObject":{"path":["v1","users","updateProfile"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"55e072e1-641c-4b27-b888-610dcb10e6fa"},{"name":"Get User","id":"213695d2-a93a-4896-a16e-966334a70d50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/users/5f4006fb278cdf043c0eb0cc","urlObject":{"path":["v1","users","5f4006fb278cdf043c0eb0cc"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"213695d2-a93a-4896-a16e-966334a70d50"},{"name":"Get Me","id":"b4477502-e07d-4a71-b91c-7f509b6c2e8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"passwordCurrent\":\"abcd1234\",\r\n    \"password\": \"abcd12345\",\r\n    \"password\": \"abcd12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/updatePassword","urlObject":{"path":["v1","users","updatePassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4477502-e07d-4a71-b91c-7f509b6c2e8f"}],"id":"0e923c22-3d69-47e3-8eb7-71722e246866","_postman_id":"0e923c22-3d69-47e3-8eb7-71722e246866","description":""},{"name":"Hike","item":[{"name":"Get All Hikes","id":"13be8700-5574-4352-91a3-5c99d0bc863a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/hikes?price[lt]=1200&ratingAverage[gte]=4.0","urlObject":{"path":["v1","hikes"],"host":["{{URL}}api"],"query":[{"key":"price[lt]","value":"1200"},{"key":"ratingAverage[gte]","value":"4.0"}],"variable":[]}},"response":[],"_postman_id":"13be8700-5574-4352-91a3-5c99d0bc863a"},{"name":"Create New Hike","id":"6211f95d-aa45-4145-bd19-1415cf2d3019","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Bambaragala Hike\",\r\n    \"duration\": 5,\r\n    \"maxGroupSize\": 8,\r\n    \"minGroupSize\": 2,\r\n    \"difficulty\": \"easy\",\r\n    \"ratingAverage\": 4.8,\r\n    \"ratingsQuantity\": 23,\r\n    \"price\": 497,\r\n    \"summary\": \"Exploring the jaw-dropping US east coast by foot and by boat\",\r\n    \"description\": \"Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\\nIrure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\",\r\n    \"imageCover\": \"tour-2-cover.jpg\",\r\n    \"images\": [\"tour-2-1.jpg\", \"tour-2-2.jpg\", \"tour-2-3.jpg\"],\r\n    \"startDates\": [\"2021-06-19,10:00\", \"2021-07-20,10:00\", \"2021-08-18,10:00\"],\r\n    \"guides\": [\"5f4006fb278cdf043c0eb0cc\",\"5f49470f92cbb630246e9cbd\"]\r\n  }\r\n  ","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/hikes","urlObject":{"path":["v1","hikes"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6211f95d-aa45-4145-bd19-1415cf2d3019"},{"name":"Update Hike","id":"19797a30-cdec-41cc-a0f9-6246b26bb7af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"ratingAverage\": 2000000,\r\n    \"difficulty\": \"DUKC\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/hikes/5f1c6cb1dae2e9362c780c8e","urlObject":{"path":["v1","hikes","5f1c6cb1dae2e9362c780c8e"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"19797a30-cdec-41cc-a0f9-6246b26bb7af"},{"name":"Get Hike","id":"e1a21144-e6de-424e-8a1e-57277c82e8db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/hikes/5f8fd439674ef526c0d6d87e","urlObject":{"path":["v1","hikes","5f8fd439674ef526c0d6d87e"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1a21144-e6de-424e-8a1e-57277c82e8db"},{"name":"Delete Hike","id":"47c4d75c-66b7-48c7-8dbd-9ed5e5c06ee0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/hikes/5f8fd439674ef526c0d6d87e","urlObject":{"path":["v1","hikes","5f8fd439674ef526c0d6d87e"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"47c4d75c-66b7-48c7-8dbd-9ed5e5c06ee0"},{"name":"Top 5 Cheap","id":"3e00c224-7054-402b-b38a-81baf48fc50b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/hikes/top-5-cheap","urlObject":{"path":["v1","hikes","top-5-cheap"],"host":["{{URL}}api"],"query":[{"disabled":true,"key":"sort","value":"maxGroupSize,price"}],"variable":[]}},"response":[],"_postman_id":"3e00c224-7054-402b-b38a-81baf48fc50b"},{"name":"Hike Stats","id":"a20092fd-f6c3-4f79-aa8a-5621afbb96a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/hikes/hike-stats","urlObject":{"path":["v1","hikes","hike-stats"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a20092fd-f6c3-4f79-aa8a-5621afbb96a9"},{"name":"Get Hike within Range","id":"9380340c-c533-4657-a061-b3aa8f40fb0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/hikes/hike-within/400/center/34.111745,-118.113491/unit/mi","urlObject":{"path":["v1","hikes","hike-within","400","center","34.111745,-118.113491","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"9380340c-c533-4657-a061-b3aa8f40fb0f"},{"name":"Get Distances","id":"ef889458-f08f-4f23-b1ef-da1cfa946587","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/hikes/distances/34.111745,-118.113491/unit/mi","urlObject":{"path":["v1","hikes","distances","34.111745,-118.113491","unit","mi"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef889458-f08f-4f23-b1ef-da1cfa946587"}],"id":"630a3362-a28c-4d8f-ac86-67b48959ded1","_postman_id":"630a3362-a28c-4d8f-ac86-67b48959ded1","description":""},{"name":"Authentication","item":[{"name":"Signup","event":[{"listen":"test","script":{"id":"e5161c74-42bc-43f2-a002-fbde0de8e905","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"e47efb97-d39c-4146-a554-52c47bc06efc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Bhagya\",\r\n    \"email\": \"bhagyauwu@gmail.com\",\r\n    \"password\": \"abcd1234\",\r\n    \"passwordConfirm\": \"abcd1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/signup","urlObject":{"path":["v1","users","signup"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e47efb97-d39c-4146-a554-52c47bc06efc"},{"name":"Signin","event":[{"listen":"test","script":{"id":"574019f6-7fe0-4e77-97e5-2d4461ae807c","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"4b7e6f99-56a3-41fe-9964-3c1e09666f06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@prohiker.io\",\r\n    \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/signin","urlObject":{"path":["v1","users","signin"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b7e6f99-56a3-41fe-9964-3c1e09666f06"},{"name":"Forgot Password","id":"8b7d4d23-baf2-4d91-b538-5a0239a83a11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"menaka@gamil.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/forgotPassword","urlObject":{"path":["v1","users","forgotPassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"8b7d4d23-baf2-4d91-b538-5a0239a83a11"},{"name":"Reset Password","id":"d4a7d9ea-2158-4ba2-8751-d0c7eb07adab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"newpass123\",\r\n    \"passwordConfirm\": \"newpass123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/resetPassword/efcc149c2d8effd5679314364fb5c4fafdd7dd05983f29b8cdcfed6d53665010","urlObject":{"path":["v1","users","resetPassword","efcc149c2d8effd5679314364fb5c4fafdd7dd05983f29b8cdcfed6d53665010"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4a7d9ea-2158-4ba2-8751-d0c7eb07adab"},{"name":"Delete Profile","id":"adc855e0-d148-45ba-af73-3de768c85abe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}api/v1/users/deleteProfile","urlObject":{"path":["v1","users","deleteProfile"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"adc855e0-d148-45ba-af73-3de768c85abe"},{"name":"Update Password","id":"4297f59d-e0bd-4992-a7ae-797f7d051b47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"passwordCurrent\":\"abcd1234\",\r\n    \"password\": \"abcd12345\",\r\n    \"passwordConfirm\": \"abcd12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/users/updatePassword","urlObject":{"path":["v1","users","updatePassword"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4297f59d-e0bd-4992-a7ae-797f7d051b47"}],"id":"3189eae6-aeb8-4eae-b4ba-3a2273a65f06","_postman_id":"3189eae6-aeb8-4eae-b4ba-3a2273a65f06","description":""},{"name":"Review","item":[{"name":"Nested Routes","item":[{"name":"/Hike/Review - Nested Routes","id":"eb9d0bec-59c8-42d4-8dfb-7b20aa3d48ef","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\": 1.0,\r\n    \"review\": \"Awesome Hike, Test Nested Routes\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/hikes/5f8fd439674ef526c0d6d87e/reviews","urlObject":{"path":["v1","hikes","5f8fd439674ef526c0d6d87e","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb9d0bec-59c8-42d4-8dfb-7b20aa3d48ef"},{"name":"/Hike/Review","id":"65736a39-b8a8-4add-8561-9dbe12941b97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/hikes/5f53d2fb7b51232c487e6018/reviews","urlObject":{"path":["v1","hikes","5f53d2fb7b51232c487e6018","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"65736a39-b8a8-4add-8561-9dbe12941b97"}],"id":"75dec1dd-6fc2-411f-9278-a95f84a0064b","_postman_id":"75dec1dd-6fc2-411f-9278-a95f84a0064b","description":""},{"name":"Create Review","id":"283a8c04-a860-4e1c-ae8d-cf1dccf5f40e","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\": \"Awesome guys, Nice\",\r\n    \"rating\": 4.5,\r\n    \"user\": \"5f4006fb278cdf043c0eb0cc\",\r\n    \"hike\": \"5f8fd439674ef526c0d6d87e\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews","urlObject":{"path":["v1","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"283a8c04-a860-4e1c-ae8d-cf1dccf5f40e"},{"name":"Get All Reviews","id":"46723202-2059-4767-924a-0c298687d264","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}api/v1/reviews","urlObject":{"path":["v1","reviews"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"46723202-2059-4767-924a-0c298687d264"},{"name":"Update Review","id":"a2b6338c-9333-4836-820c-86858a146fb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}api/v1/reviews/5f9595751144d32cd4df4147","urlObject":{"path":["v1","reviews","5f9595751144d32cd4df4147"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2b6338c-9333-4836-820c-86858a146fb6"},{"name":"Get Review","id":"981aeba6-3b6b-4958-a6e2-68db8064b5c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}api/v1/reviews/5f6620aef1e7421290e780cf","urlObject":{"path":["v1","reviews","5f6620aef1e7421290e780cf"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"981aeba6-3b6b-4958-a6e2-68db8064b5c4"}],"id":"1749ee2f-b92e-43c1-9937-39ae44a0d8da","_postman_id":"1749ee2f-b92e-43c1-9937-39ae44a0d8da","description":""}]}