{"info":{"_postman_id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","name":"Weather API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"13192503","collectionId":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","publishedId":"2sAY4ye1X6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-04T23:37:58.000Z"},"item":[{"name":"Login","event":[{"listen":"test","script":{"id":"e15b9466-a514-4175-9de2-8841ab3c249d","exec":["// Stores the user's id in an environment or global variable","var token = pm.response.json().token;","","// Save the user's id in a collection variable","pm.collectionVariables.set(\"token\", token);"],"type":"text/javascript","packages":{}}}],"id":"feecc5de-7451-4664-ab00-65f934962f96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"jorge@email.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/api/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","name":"Weather API","type":"collection"}},"urlObject":{"protocol":"http","path":["api","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"feecc5de-7451-4664-ab00-65f934962f96"},{"name":"Logout","id":"c3cc65d1-4e59-447e-a13c-ef0ff9c23667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost/api/logout","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","name":"Weather API","type":"collection"}},"urlObject":{"protocol":"http","path":["api","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3cc65d1-4e59-447e-a13c-ef0ff9c23667"},{"name":"User","id":"cf0a4368-9d9c-4061-af71-ad3783ede589","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost/api/user","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","name":"Weather API","type":"collection"}},"urlObject":{"protocol":"http","path":["api","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf0a4368-9d9c-4061-af71-ad3783ede589"},{"name":"Locations","id":"7af398fa-cbd6-4735-9ccd-3fb945f32022","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost/api/user/locations","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","name":"Weather API","type":"collection"}},"urlObject":{"protocol":"http","path":["api","user","locations"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7af398fa-cbd6-4735-9ccd-3fb945f32022"},{"name":"Create Location","id":"b47f6ebe-43f7-4128-9ebb-c5c1440ea209","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"BR\",\n    \"city\": \"Sorocaba\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/api/user/locations","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","name":"Weather API","type":"collection"}},"urlObject":{"protocol":"http","path":["api","user","locations"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b47f6ebe-43f7-4128-9ebb-c5c1440ea209"},{"name":"Delete Location","id":"6eaa0c09-d099-452e-a925-3f5cd9380a1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost/api/user/locations/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","name":"Weather API","type":"collection"}},"urlObject":{"protocol":"http","path":["api","user","locations","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6eaa0c09-d099-452e-a925-3f5cd9380a1d"},{"name":"Open Weather Request","id":"09c4021e-095e-4a1e-a3db-1e17b7a1b779","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.openweathermap.org/data/2.5/forecast?q=dasdasd3213213hasuihd,ARAaaaaaaaaaaaaaaaa&appid=&units=metric","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","id":"e5dbf6be-d46c-4d89-a8b1-5c738c2e96b4","name":"Weather API","type":"collection"}},"urlObject":{"protocol":"https","path":["data","2.5","forecast"],"host":["api","openweathermap","org"],"query":[{"key":"q","value":"dasdasd3213213hasuihd,ARAaaaaaaaaaaaaaaaa"},{"key":"appid","value":""},{"key":"units","value":"metric"}],"variable":[]}},"response":[],"_postman_id":"09c4021e-095e-4a1e-a3db-1e17b7a1b779"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"730cec4c-7457-43cf-a3f1-93b0c7b9c020","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"342c42ca-5d1a-43cd-9318-8c7ce1590260","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"token","value":"","type":"string"},{"key":"open_weather_api_key","value":"","type":"string"}]}