{"info":{"_postman_id":"ec5e4ca9-b045-439b-a451-4a62ae6d416b","name":"SmartHome API","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>A API serve de base a estabelecer uma ligação entre a base de dados e o front-end (website em react que dá display de toda a informação de uma SmartHome), com vários de métodos de autenticação, bem como métodos que apresentam as divisões da casa conforme o indivíduo que esteja registado</p>\n<h1 id=\"overview\">Overview</h1>\n<p>A API contém vários métodos para criação, eliminação, modificação e atualização de dados (operaões CRUD) conforme necessário.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"}],"owner":"24060738","collectionId":"ec5e4ca9-b045-439b-a451-4a62ae6d416b","publishedId":"2s8Z6yXYY5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-03T01:41:18.000Z"},"item":[{"name":"Autenticar na plataforma","event":[{"listen":"prerequest","script":{"id":"51a44fc9-bd7b-4ed2-ad53-c066186c7ca7","exec":[""],"type":"text/javascript"}}],"id":"39f0b645-468a-4088-93a2-8a46ced9c220","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"alberto.matias000@gmail.com\",\n    \"password\": \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/smarthome/public/login","description":"<p>Método para autenticar um utilizador na base de dados, caso encontre um utilizador, gera um token, caso contrário, devolve erros.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["smarthome","public","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"66f4d596-8fce-46aa-a226-a1c00be1898d","name":"Login exemplo","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"alberto.matias000@gmail.com\",\n    \"password\": \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/smarthome/public/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 29 Dec 2022 21:56:56 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Autenticação bem-sucedida\",\n    \"jwttoken\": \"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhbGJlcnRvLm1hdGlhczAwMEBnbWFpbC5jb20iLCJleHAiOjE2NzIzNjkwMTYsImlhdCI6MTY3MjM1MTAxNn0.hYyNUg_rlrb9U7EhX9WJX8H1A5W3PVI3BEcAPNfF8pZwjXA-4nF9gphq3tpbxzCRkHsP5QHFcD07FbI77uoi-g\"\n}"}],"_postman_id":"39f0b645-468a-4088-93a2-8a46ced9c220"},{"name":"Registar utilizador na plataforma","id":"7120e1c2-c468-406a-90b4-0865782aa1cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8080/smarthome/public/register?name=Utilizador Exemplo&email=email.exemplo@gmail.com&password=pass&isAdmin=no","description":"<p>Método para registar um novo utilizador na plataforma. Recebe também um parâmetro adicional não obrigatório, a <em>prof-pic</em>.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["smarthome","public","register"],"host":["localhost"],"query":[{"key":"name","value":"Utilizador Exemplo"},{"key":"email","value":"email.exemplo@gmail.com"},{"key":"password","value":"pass"},{"key":"isAdmin","value":"no"}],"variable":[]}},"response":[{"id":"f4277e48-9b87-499c-80a9-5e15c7b65664","name":"Registo exemplo","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8080/smarthome/public/register?name=Utilizador Exemplo&email=email.exemplo@gmail.com&password=pass&isAdmin=no","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","public","register"],"query":[{"key":"name","value":"Utilizador Exemplo"},{"key":"email","value":"email.exemplo@gmail.com"},{"key":"password","value":"pass"},{"key":"isAdmin","value":"no"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 29 Dec 2022 21:53:37 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registered with success\"\n}"}],"_postman_id":"7120e1c2-c468-406a-90b4-0865782aa1cc"},{"name":"Informação sobre o utilizador","id":"8054a56c-640b-463b-83bc-ee7e701f211b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/smarthome/private/user/info","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","user","info"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c7b9f391-fdf7-47de-bf18-6f169b8cdc9b","name":"Exemplo informação do utilizador","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/user/info"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 29 Dec 2022 21:59:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"email\": \"alberto.matias000@gmail.com\",\n    \"nome\": \"Alberto Matias\",\n    \"password\": \"$2a$10$eynhZY/i2UZXM74HDkZUZu01nUschMFysGTzDDe93O2Zhtp1puq16\",\n    \"profileImage\": null,\n    \"casa\": {\n        \"id\": 1,\n        \"morada\": \"Rua Aviacão Naval, Aveiro\",\n        \"divisoes\": [\n            {\n                \"id\": 1,\n                \"nome\": \"sala\",\n                \"tipo\": \"SALA\"\n            },\n            {\n                \"id\": 2,\n                \"nome\": \"cozinha\",\n                \"tipo\": \"COZINHA\"\n            },\n            {\n                \"id\": 3,\n                \"nome\": \"exterior\",\n                \"tipo\": \"EXTERIOR\"\n            },\n            {\n                \"id\": 4,\n                \"nome\": \"quarto1\",\n                \"tipo\": \"QUARTO\"\n            }\n        ]\n    },\n    \"authorities\": [\n        {\n            \"authority\": \"ROLE_USER\"\n        }\n    ],\n    \"admin\": true\n}"}],"_postman_id":"8054a56c-640b-463b-83bc-ee7e701f211b"},{"name":"Atualizar utilizador","event":[{"listen":"prerequest","script":{"id":"de668a8a-894b-45a2-b35f-216f05e62c37","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"3cfe843d-92fe-4e45-b7b4-77388c6ac30d","exec":["idDiv = 1;"],"type":"text/javascript"}}],"id":"ba1b0318-f9ba-480f-887f-e06ea26ec077","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 1,\n    \"email\": \"alberto.matias000@gmail.com\",\n    \"nome\": \"Alberto Sobral Matias\",\n    \"password\": \"admin\",\n    \"profileImage\": null,\n    \"id_casa\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/smarthome/private/user/{idUtilizador}","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","user","{idUtilizador}"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"985c2a5f-930f-407f-a0d0-6edb98f8926d","name":"Exemplo atualização utilizador","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 1,\n    \"email\": \"alberto.matias000@gmail.com\",\n    \"nome\": \"Alberto Sobral Matias\",\n    \"password\": \"admin\",\n    \"profileImage\": null,\n    \"id_casa\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/smarthome/private/user/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 29 Dec 2022 22:07:15 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User updated\"\n}"}],"_postman_id":"ba1b0318-f9ba-480f-887f-e06ea26ec077"},{"name":"Atualizar foto de perfil","id":"eb78bec9-7877-47ba-ac87-59747a6b40f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:8080/smarthome/private/user/profilePic/{idDiv}?profPic=url-da-string","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","user","profilePic","{idDiv}"],"host":["localhost"],"query":[{"key":"profPic","value":"url-da-string"}],"variable":[]}},"response":[{"id":"84f7f8e3-937e-4dc7-b65b-186995d5bc18","name":"Exemplo de atualização da foto de perfil","originalRequest":{"method":"PUT","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/user/profilePic/1?profPic=url-da-string","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","user","profilePic","1"],"query":[{"key":"profPic","value":"url-da-string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 29 Dec 2022 22:17:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"changed profile picture sucessfully\"\n}"}],"_postman_id":"eb78bec9-7877-47ba-ac87-59747a6b40f0"},{"name":"Logout da plataforma","id":"78d7dc53-a876-47e6-821a-30caaf096257","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/user/logout","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","user","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dcc9ba32-a3cc-4fc2-ac7a-142250a81ddf","name":"Mensagem de logout sucedida","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/user/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 20:25:05 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Logout com sucesso\"\n}"}],"_postman_id":"78d7dc53-a876-47e6-821a-30caaf096257"},{"name":"Última informação sobre dada divisão","id":"e0aa420e-865e-467e-8624-9dab79bf15ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/currentInfo","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","currentInfo"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a8cc3b32-7776-492c-940d-f32e848542cd","name":"Exemplo da informação sobre uma dada divisão","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/1/currentInfo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 01:44:38 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"ar\": null,\n    \"temperatura\": {\n        \"id\": 20495,\n        \"tipo\": \"temperatura\",\n        \"dia\": \"2022-12-13\",\n        \"stamp\": \"2022-12-13T23:00:00.000+00:00\",\n        \"valor\": 11.319999999999999\n    },\n    \"humidade\": {\n        \"id\": 20496,\n        \"tipo\": \"humidade\",\n        \"dia\": \"2022-12-13\",\n        \"stamp\": \"2022-12-13T23:00:00.000+00:00\",\n        \"valor\": 18.900000000000002\n    }\n}"}],"_postman_id":"e0aa420e-865e-467e-8624-9dab79bf15ea"},{"name":"Relatório semanal de uma divisão","id":"16cf5865-a995-4856-97af-79255cbf5f9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/weeklyInfo","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","weeklyInfo"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1096d7fc-f560-491f-9c27-9d94e9aea192","name":"Exemplo de um relatório semanal","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/1/weeklyInfo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 01:48:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"0\": {\n        \"Avg ar\": \"0.0\",\n        \"Tmax\": \"18.0\",\n        \"Tmin\": \"9.46\",\n        \"Avg humidade\": \"15.824166666666665\",\n        \"Dia\": \"2022-12-07\"\n    },\n    \"1\": {\n        \"Avg ar\": \"0.0\",\n        \"Tmax\": \"18.16\",\n        \"Tmin\": \"9.34\",\n        \"Avg humidade\": \"15.829166666666666\",\n        \"Dia\": \"2022-12-08\"\n    },\n    \"2\": {\n        \"Avg ar\": \"0.0\",\n        \"Tmax\": \"18.14\",\n        \"Tmin\": \"9.360000000000001\",\n        \"Avg humidade\": \"15.848333333333334\",\n        \"Dia\": \"2022-12-09\"\n    },\n    \"3\": {\n        \"Avg ar\": \"0.0\",\n        \"Tmax\": \"18.12\",\n        \"Tmin\": \"9.38\",\n        \"Avg humidade\": \"15.8275\",\n        \"Dia\": \"2022-12-10\"\n    },\n    \"4\": {\n        \"Avg ar\": \"0.0\",\n        \"Tmax\": \"18.16\",\n        \"Tmin\": \"9.42\",\n        \"Avg humidade\": \"15.858333333333333\",\n        \"Dia\": \"2022-12-11\"\n    },\n    \"5\": {\n        \"Avg ar\": \"0.0\",\n        \"Tmax\": \"18.1\",\n        \"Tmin\": \"9.42\",\n        \"Avg humidade\": \"15.832499999999998\",\n        \"Dia\": \"2022-12-12\"\n    },\n    \"6\": {\n        \"Avg ar\": \"0.0\",\n        \"Tmax\": \"18.18\",\n        \"Tmin\": \"9.48\",\n        \"Avg humidade\": \"15.854999999999999\",\n        \"Dia\": \"2022-12-13\"\n    }\n}"}],"_postman_id":"16cf5865-a995-4856-97af-79255cbf5f9d"},{"name":"Lista de alertas de uma dada divisão","id":"af84aa70-8833-4586-96fd-baefdb59c81d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDivSala}/alerts","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDivSala}","alerts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"27074a24-b0dd-4407-a988-47a633027906","name":"Exemplo de mostragem de alertas da divisão com id 2","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/2/alerts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 01:50:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"div\": {\n            \"id\": 2,\n            \"nome\": \"cozinha\",\n            \"tipo\": \"COZINHA\"\n        },\n        \"sensor\": \"temperatura\",\n        \"valor\": 100,\n        \"stamp\": \"2022-12-13T23:53:00.000+00:00\"\n    },\n    {\n        \"id\": 2,\n        \"div\": {\n            \"id\": 2,\n            \"nome\": \"cozinha\",\n            \"tipo\": \"COZINHA\"\n        },\n        \"sensor\": \"temperatura\",\n        \"valor\": 100,\n        \"stamp\": \"2022-12-13T23:53:00.000+00:00\"\n    }\n]"}],"_postman_id":"af84aa70-8833-4586-96fd-baefdb59c81d"},{"name":"Lista de dispositivos de uma determinidada divisão","id":"3c27df0a-3d29-42e1-a347-2ac994b3453c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/devices","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","devices"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c339801c-73b1-4b3d-ab3e-598ef7f4dc17","name":"Exemplo da lista de dispositivos de uma divisão","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/1/devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 01:52:26 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"consumo_energy\": 140.03,\n        \"estado\": true,\n        \"tipo\": \"TOMADA\",\n        \"nome\": \"Máquina aeróbica\"\n    },\n    {\n        \"id\": 2,\n        \"consumo_energy\": 231.11,\n        \"estado\": true,\n        \"tipo\": \"TOMADA\",\n        \"nome\": \"PlayStation 5\"\n    },\n    {\n        \"id\": 3,\n        \"consumo_energy\": 164.82,\n        \"estado\": false,\n        \"tipo\": \"LAMPADA\",\n        \"luminosidade\": 100,\n        \"startTime\": \"19:00:00\",\n        \"endTime\": \"23:00:00\"\n    },\n    {\n        \"id\": 4,\n        \"consumo_energy\": 163.58,\n        \"estado\": false,\n        \"tipo\": \"LAMPADA\",\n        \"luminosidade\": 80,\n        \"startTime\": \"09:00:00\",\n        \"endTime\": \"18:00:00\"\n    },\n    {\n        \"id\": 5,\n        \"consumo_energy\": 313.74,\n        \"estado\": false,\n        \"tipo\": \"AC\",\n        \"tempAtual\": 22,\n        \"tempMin\": 20,\n        \"tempMax\": 35\n    },\n    {\n        \"id\": 6,\n        \"consumo_energy\": 598.06,\n        \"estado\": true,\n        \"tipo\": \"TOMADA\",\n        \"nome\": \"Televisão LG OLED\"\n    },\n    {\n        \"id\": 7,\n        \"consumo_energy\": 108.29,\n        \"estado\": true,\n        \"tipo\": \"TOMADA\",\n        \"nome\": \"Aquário\"\n    },\n    {\n        \"id\": 65,\n        \"consumo_energy\": 30,\n        \"estado\": false,\n        \"tipo\": \"TOMADA\",\n        \"nome\": \"Rádio XS-1\"\n    }\n]"}],"_postman_id":"3c27df0a-3d29-42e1-a347-2ac994b3453c"},{"name":"Adicionar dispositivo","id":"fb6a9063-85af-4e82-ad34-8b10e13f328d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/devices?tipo=LAMPADA&nome=lampada cozinha&consumo=6","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","devices"],"host":["localhost"],"query":[{"key":"tipo","value":"LAMPADA"},{"key":"nome","value":"lampada cozinha"},{"key":"consumo","value":"6"}],"variable":[]}},"response":[{"id":"017aa008-5030-4ed2-b74a-5c31a52b1973","name":"Exemplo da adição de um novo dispositivo","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/division/1/devices?tipo=LAMPADA&nome=lampada cozinha&consumo=6","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","division","1","devices"],"query":[{"key":"tipo","value":"LAMPADA"},{"key":"nome","value":"lampada cozinha"},{"key":"consumo","value":"6"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 02:28:28 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Dispositivo adicionado com sucesso.\"\n}"}],"_postman_id":"fb6a9063-85af-4e82-ad34-8b10e13f328d"},{"name":"Eliminar dispositivo","id":"9e147414-f237-45b4-96f6-ec00e4f425db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/devices?id=67","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","devices"],"host":["localhost"],"query":[{"key":"id","value":"67"}],"variable":[]}},"response":[{"id":"f68ff68a-342c-4072-bda8-fbf7ee691c86","name":"Exemplo de eliminação de um dado dispositivo","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/division/1/devices?id=67","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","division","1","devices"],"query":[{"key":"id","value":"67"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 02:32:42 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Dispositivo removido com sucesso.\"\n}"}],"_postman_id":"9e147414-f237-45b4-96f6-ec00e4f425db"},{"name":"Mudar estado de dispositivo (on/off)","id":"de502a02-8cb7-43b2-b11b-5b13e48218b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/device/{idDisp}","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","device","{idDisp}"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"753e10c9-8ddc-4930-bfd2-95cb95c7be1f","name":"Exemplo de resposta após alterar estado do dispositivo","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/smarthome/private/division/1/device/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 02:35:28 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Changed state\"\n}"}],"_postman_id":"de502a02-8cb7-43b2-b11b-5b13e48218b3"},{"name":"Ver consumo elétrico de uma dada divisão nos últimos 7 dias","id":"e6c03b7c-49ff-4ad9-9ffe-d0836fd42abe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/energy","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","energy"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0a2e1c67-40a0-4959-95f3-9d09145d972d","name":"Consumo elétrico de uma divisão","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/division/1/energy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 02:36:42 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"2022-11-30T00:00:00.000+00:00\": 1225,\n    \"2022-12-05T00:00:00.000+00:00\": 1952,\n    \"2022-12-02T00:00:00.000+00:00\": 1482,\n    \"2022-12-04T00:00:00.000+00:00\": 2330,\n    \"2022-12-03T00:00:00.000+00:00\": 654,\n    \"2022-12-01T00:00:00.000+00:00\": 1125,\n    \"2022-12-06T00:00:00.000+00:00\": 742\n}"}],"_postman_id":"e6c03b7c-49ff-4ad9-9ffe-d0836fd42abe"},{"name":"Atualizar valores dos regadores numa casa","id":"bc169d30-9343-469f-868d-c5ec2d733c54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDivExterior}/regadores/{idRegador}?start_time=20:00:00&end_time=22:00:00","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDivExterior}","regadores","{idRegador}"],"host":["localhost"],"query":[{"key":"start_time","value":"20:00:00"},{"key":"end_time","value":"22:00:00"}],"variable":[]}},"response":[{"id":"b94a3f9d-d9fb-411c-ad02-152643cee790","name":"Exemplo da modificação valores dos regadores numa casa","originalRequest":{"method":"PUT","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/division/3/regadores/16?start_time=20:00:00&end_time=22:00:00","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","division","3","regadores","16"],"query":[{"key":"start_time","value":"20:00:00"},{"key":"end_time","value":"22:00:00"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 02:48:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"updated successfully\"\n}"}],"_postman_id":"bc169d30-9343-469f-868d-c5ec2d733c54"},{"name":"Atualização de valores do ar condicionado numa divisão","id":"9eb6428b-0a24-478d-852c-377b5c123dca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/AC/{idAC}?temp_atual=32&temp_min=30&temp_max=35","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","AC","{idAC}"],"host":["localhost"],"query":[{"key":"temp_atual","value":"32"},{"key":"temp_min","value":"30"},{"key":"temp_max","value":"35"}],"variable":[]}},"response":[{"id":"ccbe5df7-94a7-4485-ba1b-3028e60ef95c","name":"Mensagem de sucesso aquando da atualização de valores do ar condicionado","originalRequest":{"method":"PUT","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/division/1/AC/{{idLampada}}?temp_atual=32&temp_min=30&temp_max=35","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","division","1","AC","{{idLampada}}"],"query":[{"key":"temp_atual","value":"32"},{"key":"temp_min","value":"30"},{"key":"temp_max","value":"35"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 02:53:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"updated successfully\"\n}"}],"_postman_id":"9eb6428b-0a24-478d-852c-377b5c123dca"},{"name":"Atualização de valores de uma lâmpada","id":"865e6aa9-aa29-46ca-b2c3-6993f6d90dc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/lampadas/{idLamp}?luminosidade=90&start_time=17:00:00&end_time=20:00:00","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","lampadas","{idLamp}"],"host":["localhost"],"query":[{"key":"luminosidade","value":"90"},{"key":"start_time","value":"17:00:00"},{"key":"end_time","value":"20:00:00"}],"variable":[]}},"response":[{"id":"a85170f7-0b46-4b52-a5c1-b23001dfa9a8","name":"Mensagem após a mudança de valores de uma lampada","originalRequest":{"method":"PUT","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/division/1/lampadas/3?luminosidade=90&start_time=17:00:00&end_time=20:00:00","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","division","1","lampadas","3"],"query":[{"key":"luminosidade","value":"90"},{"key":"start_time","value":"17:00:00"},{"key":"end_time","value":"20:00:00"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 02:57:42 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"updated successfully\"\n}"}],"_postman_id":"865e6aa9-aa29-46ca-b2c3-6993f6d90dc5"},{"name":"Adicionar alerta","id":"76e72e5c-c895-4fd4-9fa6-4db567aca74e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/smarthome/private/division/{idDiv}/addAlert?sensor=temperatura&valor=43&stamp=2022-12-29 12:23:33.123","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","division","{idDiv}","addAlert"],"host":["localhost"],"query":[{"key":"sensor","value":"temperatura"},{"key":"valor","value":"43"},{"key":"stamp","value":"2022-12-29 12:23:33.123"}],"variable":[]}},"response":[{"id":"436a1a87-97e5-4bcd-ac90-b3c97fb68f1d","name":"Mensagem de sucesso ao adicionar alerta","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/division/1/addAlert?sensor=temperatura&valor=43&stamp=2022-12-29 12:23:33.123","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","division","1","addAlert"],"query":[{"key":"sensor","value":"temperatura"},{"key":"valor","value":"43"},{"key":"stamp","value":"2022-12-29 12:23:33.123"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 21:33:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"updated successfully\"\n}"}],"_postman_id":"76e72e5c-c895-4fd4-9fa6-4db567aca74e"},{"name":"Obter informação sobre os sensores de uma casa","id":"4c2ce73e-9570-4c19-aa1a-5c9bff0a94df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"195af2d8-4baa-4d1b-bdea-56ce2c86d313","name":"Sensores de uma dada casa","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:14:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"generator_type\": 1\n    },\n    {\n        \"id\": 2,\n        \"generator_type\": 1\n    }\n]"}],"_postman_id":"4c2ce73e-9570-4c19-aa1a-5c9bff0a94df"},{"name":"Obter todas as divisões de uma casa","id":"5a2e24ca-f97f-4164-88ff-279b430d3b2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/divisions","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","divisions"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9f07e2bd-5312-4ffb-af0f-122d49ad1618","name":"Divisões de uma casa","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/1/divisions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:15:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"nome\": \"sala\",\n        \"tipo\": \"SALA\"\n    },\n    {\n        \"id\": 2,\n        \"nome\": \"cozinha\",\n        \"tipo\": \"COZINHA\"\n    },\n    {\n        \"id\": 3,\n        \"nome\": \"exterior\",\n        \"tipo\": \"EXTERIOR\"\n    },\n    {\n        \"id\": 4,\n        \"nome\": \"quarto1\",\n        \"tipo\": \"QUARTO\"\n    }\n]"}],"_postman_id":"5a2e24ca-f97f-4164-88ff-279b430d3b2b"},{"name":"Adicionar nova divisão à casa","id":"d9321c9b-94e1-4d4f-86fd-530591b1984c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/divisions?tipo=QUARTO&nome=quarto_exemplo","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","divisions"],"host":["localhost"],"query":[{"key":"tipo","value":"QUARTO"},{"key":"nome","value":"quarto_exemplo"}],"variable":[]}},"response":[{"id":"fbd4e1c3-f847-4b1c-a94c-ecaff3e88b22","name":"Adicionar novo quarto a uma casa","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/house/1/divisions?tipo=QUARTO&nome=quarto_exemplo","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","house","1","divisions"],"query":[{"key":"tipo","value":"QUARTO"},{"key":"nome","value":"quarto_exemplo"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:19:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Nova divisão adicionada com sucesso.\"\n}"}],"_postman_id":"d9321c9b-94e1-4d4f-86fd-530591b1984c"},{"name":"Remoção de uma divisão numa casa","id":"d5728bd3-7f01-498e-bd61-f05b0d76d032","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/divisions?idDiv=15","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","divisions"],"host":["localhost"],"query":[{"key":"idDiv","value":"15"}],"variable":[]}},"response":[{"id":"5beb5dee-4edc-4326-ac7d-43bd26a91b26","name":"Resposta à remoção de uma divisão","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/house/1/divisions?idDiv=15","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","house","1","divisions"],"query":[{"key":"idDiv","value":"15"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:21:37 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Divisão removida com sucesso.\"\n}"}],"_postman_id":"d5728bd3-7f01-498e-bd61-f05b0d76d032"},{"name":"Informação sobre uma divisão","id":"2e8f990b-4c5f-49b9-b0ee-34f3e5510e82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/division/{idDiv}","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","division","{idDiv}"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8748c5c0-9a6d-4020-82ec-2c801fe76956","name":"Exemplo dos dados de uma divisão","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/1/division/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 21:39:05 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"nome\": \"sala\",\n    \"tipo\": \"SALA\"\n}"}],"_postman_id":"2e8f990b-4c5f-49b9-b0ee-34f3e5510e82"},{"name":"Buscar consumo de energia das diferentes divisões","id":"c4c1c8a9-6e17-4581-89a9-c9e5d559b251","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/energy/current","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","energy","current"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3505a6b6-14ca-42c7-b44a-e861926b191f","name":"Valores com consumo médio confome as divisões","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/1/energy/current"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:24:38 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"1\": 937.4599999999999,\n    \"2\": 427.65999999999997,\n    \"3\": 252.49,\n    \"4\": 565.42\n}"}],"_postman_id":"c4c1c8a9-6e17-4581-89a9-c9e5d559b251"},{"name":"Consumo energético das várias divisões no último mês","id":"6e35d074-8686-454b-9b64-d07f2ed4d752","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/energy/month","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","energy","month"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d6404056-7c11-4cbe-9af2-8279d09ab6d4","name":"Exemplo do consumo nos últimos 30 dias registados na base de dados","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/1/energy/month"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:25:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"1\": {\n        \"2022-11-18T00:00:00.000+00:00\": 1646,\n        \"2022-11-23T00:00:00.000+00:00\": 1915,\n        \"2022-11-28T00:00:00.000+00:00\": 2794,\n        \"2022-12-03T00:00:00.000+00:00\": 654,\n        \"2022-11-08T00:00:00.000+00:00\": 2811,\n        \"2022-11-13T00:00:00.000+00:00\": 1022,\n        \"2022-11-15T00:00:00.000+00:00\": 2510,\n        \"2022-11-20T00:00:00.000+00:00\": 2163,\n        \"2022-11-25T00:00:00.000+00:00\": 670,\n        \"2022-11-30T00:00:00.000+00:00\": 1225,\n        \"2022-12-05T00:00:00.000+00:00\": 1952,\n        \"2022-11-10T00:00:00.000+00:00\": 2979,\n        \"2022-11-12T00:00:00.000+00:00\": 2679,\n        \"2022-11-17T00:00:00.000+00:00\": 1930,\n        \"2022-11-22T00:00:00.000+00:00\": 1637,\n        \"2022-11-27T00:00:00.000+00:00\": 2529,\n        \"2022-12-02T00:00:00.000+00:00\": 1482,\n        \"2022-11-07T00:00:00.000+00:00\": 1507,\n        \"2022-11-29T00:00:00.000+00:00\": 1815,\n        \"2022-12-04T00:00:00.000+00:00\": 2330,\n        \"2022-11-09T00:00:00.000+00:00\": 1642,\n        \"2022-11-14T00:00:00.000+00:00\": 672,\n        \"2022-11-19T00:00:00.000+00:00\": 1974,\n        \"2022-11-24T00:00:00.000+00:00\": 679,\n        \"2022-11-06T00:00:00.000+00:00\": 2375,\n        \"2022-11-11T00:00:00.000+00:00\": 1683,\n        \"2022-11-16T00:00:00.000+00:00\": 1174,\n        \"2022-11-21T00:00:00.000+00:00\": 894,\n        \"2022-11-26T00:00:00.000+00:00\": 2907,\n        \"2022-12-01T00:00:00.000+00:00\": 1125\n    },\n    \"2\": {\n        \"2022-11-18T00:00:00.000+00:00\": 1913,\n        \"2022-11-23T00:00:00.000+00:00\": 2986,\n        \"2022-11-28T00:00:00.000+00:00\": 1056,\n        \"2022-12-03T00:00:00.000+00:00\": 2216,\n        \"2022-11-08T00:00:00.000+00:00\": 1924,\n        \"2022-11-13T00:00:00.000+00:00\": 2556,\n        \"2022-11-15T00:00:00.000+00:00\": 667,\n        \"2022-11-20T00:00:00.000+00:00\": 1672,\n        \"2022-11-25T00:00:00.000+00:00\": 2383,\n        \"2022-11-30T00:00:00.000+00:00\": 2665,\n        \"2022-12-05T00:00:00.000+00:00\": 1752,\n        \"2022-11-10T00:00:00.000+00:00\": 2530,\n        \"2022-11-12T00:00:00.000+00:00\": 2422,\n        \"2022-11-17T00:00:00.000+00:00\": 1691,\n        \"2022-11-22T00:00:00.000+00:00\": 754,\n        \"2022-11-27T00:00:00.000+00:00\": 1558,\n        \"2022-12-02T00:00:00.000+00:00\": 2521,\n        \"2022-11-07T00:00:00.000+00:00\": 749,\n        \"2022-11-29T00:00:00.000+00:00\": 2555,\n        \"2022-12-04T00:00:00.000+00:00\": 2648,\n        \"2022-11-09T00:00:00.000+00:00\": 819,\n        \"2022-11-14T00:00:00.000+00:00\": 2141,\n        \"2022-11-19T00:00:00.000+00:00\": 2600,\n        \"2022-11-24T00:00:00.000+00:00\": 963,\n        \"2022-11-06T00:00:00.000+00:00\": 2364,\n        \"2022-11-11T00:00:00.000+00:00\": 2964,\n        \"2022-11-16T00:00:00.000+00:00\": 2172,\n        \"2022-11-21T00:00:00.000+00:00\": 1884,\n        \"2022-11-26T00:00:00.000+00:00\": 2448,\n        \"2022-12-01T00:00:00.000+00:00\": 1978\n    },\n    \"3\": {\n        \"2022-11-18T00:00:00.000+00:00\": 281,\n        \"2022-11-23T00:00:00.000+00:00\": 1103,\n        \"2022-11-28T00:00:00.000+00:00\": 555,\n        \"2022-12-03T00:00:00.000+00:00\": 1341,\n        \"2022-11-08T00:00:00.000+00:00\": 866,\n        \"2022-11-13T00:00:00.000+00:00\": 844,\n        \"2022-11-15T00:00:00.000+00:00\": 1459,\n        \"2022-11-20T00:00:00.000+00:00\": 1290,\n        \"2022-11-25T00:00:00.000+00:00\": 569,\n        \"2022-11-30T00:00:00.000+00:00\": 663,\n        \"2022-12-05T00:00:00.000+00:00\": 370,\n        \"2022-11-10T00:00:00.000+00:00\": 1072,\n        \"2022-11-12T00:00:00.000+00:00\": 1233,\n        \"2022-11-17T00:00:00.000+00:00\": 1220,\n        \"2022-11-22T00:00:00.000+00:00\": 937,\n        \"2022-11-27T00:00:00.000+00:00\": 784,\n        \"2022-12-02T00:00:00.000+00:00\": 500,\n        \"2022-11-07T00:00:00.000+00:00\": 917,\n        \"2022-11-29T00:00:00.000+00:00\": 268,\n        \"2022-12-04T00:00:00.000+00:00\": 1212,\n        \"2022-11-09T00:00:00.000+00:00\": 353,\n        \"2022-11-14T00:00:00.000+00:00\": 1156,\n        \"2022-11-19T00:00:00.000+00:00\": 1182,\n        \"2022-11-24T00:00:00.000+00:00\": 1118,\n        \"2022-11-06T00:00:00.000+00:00\": 1103,\n        \"2022-11-11T00:00:00.000+00:00\": 1139,\n        \"2022-11-16T00:00:00.000+00:00\": 804,\n        \"2022-11-21T00:00:00.000+00:00\": 1139,\n        \"2022-11-26T00:00:00.000+00:00\": 1059,\n        \"2022-12-01T00:00:00.000+00:00\": 1129\n    },\n    \"4\": {\n        \"2022-11-18T00:00:00.000+00:00\": 443,\n        \"2022-11-23T00:00:00.000+00:00\": 917,\n        \"2022-11-28T00:00:00.000+00:00\": 1389,\n        \"2022-12-03T00:00:00.000+00:00\": 1335,\n        \"2022-11-08T00:00:00.000+00:00\": 499,\n        \"2022-11-13T00:00:00.000+00:00\": 208,\n        \"2022-11-15T00:00:00.000+00:00\": 353,\n        \"2022-11-20T00:00:00.000+00:00\": 1469,\n        \"2022-11-25T00:00:00.000+00:00\": 598,\n        \"2022-11-30T00:00:00.000+00:00\": 208,\n        \"2022-12-05T00:00:00.000+00:00\": 909,\n        \"2022-11-10T00:00:00.000+00:00\": 409,\n        \"2022-11-12T00:00:00.000+00:00\": 201,\n        \"2022-11-17T00:00:00.000+00:00\": 1297,\n        \"2022-11-22T00:00:00.000+00:00\": 798,\n        \"2022-11-27T00:00:00.000+00:00\": 420,\n        \"2022-12-02T00:00:00.000+00:00\": 784,\n        \"2022-11-07T00:00:00.000+00:00\": 763,\n        \"2022-11-29T00:00:00.000+00:00\": 378,\n        \"2022-12-04T00:00:00.000+00:00\": 465,\n        \"2022-11-09T00:00:00.000+00:00\": 389,\n        \"2022-11-14T00:00:00.000+00:00\": 889,\n        \"2022-11-19T00:00:00.000+00:00\": 569,\n        \"2022-11-24T00:00:00.000+00:00\": 1258,\n        \"2022-11-06T00:00:00.000+00:00\": 301,\n        \"2022-11-11T00:00:00.000+00:00\": 1291,\n        \"2022-11-16T00:00:00.000+00:00\": 956,\n        \"2022-11-21T00:00:00.000+00:00\": 432,\n        \"2022-11-26T00:00:00.000+00:00\": 729,\n        \"2022-12-01T00:00:00.000+00:00\": 759\n    }\n}"}],"_postman_id":"6e35d074-8686-454b-9b64-d07f2ed4d752"},{"name":"Consumo semanal de todas as divisões numa casa","id":"e678c049-248c-4e43-8a7b-0f38bd9f78ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/energy/week","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","energy","week"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a3ac13a2-c7d5-4750-bd1c-effa3f8e0297","name":"Exemplo do consumo numa semana numa casa","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/1/energy/week"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:28:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"1\": {\n        \"2022-11-30T00:00:00.000+00:00\": 1225,\n        \"2022-12-05T00:00:00.000+00:00\": 1952,\n        \"2022-12-02T00:00:00.000+00:00\": 1482,\n        \"2022-12-04T00:00:00.000+00:00\": 2330,\n        \"2022-12-03T00:00:00.000+00:00\": 654,\n        \"2022-12-01T00:00:00.000+00:00\": 1125,\n        \"2022-12-06T00:00:00.000+00:00\": 742\n    },\n    \"2\": {\n        \"2022-11-30T00:00:00.000+00:00\": 2665,\n        \"2022-12-05T00:00:00.000+00:00\": 1752,\n        \"2022-12-02T00:00:00.000+00:00\": 2521,\n        \"2022-12-04T00:00:00.000+00:00\": 2648,\n        \"2022-12-03T00:00:00.000+00:00\": 2216,\n        \"2022-12-01T00:00:00.000+00:00\": 1978,\n        \"2022-12-06T00:00:00.000+00:00\": 2983\n    },\n    \"3\": {\n        \"2022-11-30T00:00:00.000+00:00\": 663,\n        \"2022-12-05T00:00:00.000+00:00\": 370,\n        \"2022-12-02T00:00:00.000+00:00\": 500,\n        \"2022-12-04T00:00:00.000+00:00\": 1212,\n        \"2022-12-03T00:00:00.000+00:00\": 1341,\n        \"2022-12-01T00:00:00.000+00:00\": 1129,\n        \"2022-12-06T00:00:00.000+00:00\": 1326\n    },\n    \"4\": {\n        \"2022-11-30T00:00:00.000+00:00\": 208,\n        \"2022-12-05T00:00:00.000+00:00\": 909,\n        \"2022-12-02T00:00:00.000+00:00\": 784,\n        \"2022-12-04T00:00:00.000+00:00\": 465,\n        \"2022-12-03T00:00:00.000+00:00\": 1335,\n        \"2022-12-01T00:00:00.000+00:00\": 759,\n        \"2022-12-06T00:00:00.000+00:00\": 1094\n    }\n}"}],"_postman_id":"e678c049-248c-4e43-8a7b-0f38bd9f78ac"},{"name":"Obter informação sobre todos os utilizadores associados a uma casa","id":"8fa69597-afbb-4db5-b389-fca7ada368b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/users","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8a2a0595-8799-4efc-adc1-c6182d154017","name":"Exemplo da procura de informação de todos os utilizadores de uma casa","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:29:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"email\": \"alberto.matias000@gmail.com\",\n        \"nome\": \"Alberto Matias\",\n        \"password\": \"$2a$10$eynhZY/i2UZXM74HDkZUZu01nUschMFysGTzDDe93O2Zhtp1puq16\",\n        \"profileImage\": null,\n        \"casa\": {\n            \"id\": 1,\n            \"morada\": \"Rua Aviacão Naval, Aveiro\",\n            \"divisoes\": [\n                {\n                    \"id\": 1,\n                    \"nome\": \"sala\",\n                    \"tipo\": \"SALA\"\n                },\n                {\n                    \"id\": 2,\n                    \"nome\": \"cozinha\",\n                    \"tipo\": \"COZINHA\"\n                },\n                {\n                    \"id\": 3,\n                    \"nome\": \"exterior\",\n                    \"tipo\": \"EXTERIOR\"\n                },\n                {\n                    \"id\": 4,\n                    \"nome\": \"quarto1\",\n                    \"tipo\": \"QUARTO\"\n                }\n            ]\n        },\n        \"authorities\": [\n            {\n                \"authority\": \"ROLE_USER\"\n            }\n        ],\n        \"admin\": true\n    },\n    {\n        \"id\": 2,\n        \"email\": \"susana.mendes000@gmail.com\",\n        \"nome\": \"Susana Mendes\",\n        \"password\": \"$2a$10$3EnOTynp7Bj0riBgYTrfG.GPj/2nDItkOe0oD9iAtbg3DKztfl/aS\",\n        \"profileImage\": null,\n        \"casa\": {\n            \"id\": 1,\n            \"morada\": \"Rua Aviacão Naval, Aveiro\",\n            \"divisoes\": [\n                {\n                    \"id\": 1,\n                    \"nome\": \"sala\",\n                    \"tipo\": \"SALA\"\n                },\n                {\n                    \"id\": 2,\n                    \"nome\": \"cozinha\",\n                    \"tipo\": \"COZINHA\"\n                },\n                {\n                    \"id\": 3,\n                    \"nome\": \"exterior\",\n                    \"tipo\": \"EXTERIOR\"\n                },\n                {\n                    \"id\": 4,\n                    \"nome\": \"quarto1\",\n                    \"tipo\": \"QUARTO\"\n                }\n            ]\n        },\n        \"authorities\": [\n            {\n                \"authority\": \"ROLE_USER\"\n            }\n        ],\n        \"admin\": false\n    }\n]"}],"_postman_id":"8fa69597-afbb-4db5-b389-fca7ada368b7"},{"name":"Adicionar novo elemento a uma casa","id":"cd0917ff-96cd-4392-98de-3cb1e9710ba4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/users?email=email.exemplo@gmail.com","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","users"],"host":["localhost"],"query":[{"key":"email","value":"email.exemplo@gmail.com"}],"variable":[]}},"response":[{"id":"9a2aa89b-5a91-42b2-a738-76108cb28dcb","name":"Mensagem aquando a adicação de um utilizador a uma casa","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/house/1/users?email=email.exemplo@gmail.com","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","house","1","users"],"query":[{"key":"email","value":"email.exemplo@gmail.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:40:35 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Utilizador adicionado com sucesso!\"\n}"}],"_postman_id":"cd0917ff-96cd-4392-98de-3cb1e9710ba4"},{"name":"Remover utilizador do registo de uma casa","id":"d2999716-61fc-42c0-932a-51d4af76e7bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/users?email=email.exemplo@gmail.com","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","users"],"host":["localhost"],"query":[{"key":"email","value":"email.exemplo@gmail.com"}],"variable":[]}},"response":[{"id":"fc53d7bb-da47-495f-8653-982e040f48fc","name":"Mensagem de sucesso na remoção de um utilizador de uma casa","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/smarthome/private/house/1/users?email=email.exemplo@gmail.com","protocol":"http","host":["localhost"],"port":"8080","path":["smarthome","private","house","1","users"],"query":[{"key":"email","value":"email.exemplo@gmail.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 03:43:23 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Utilizador removido com sucesso\"\n}"}],"_postman_id":"d2999716-61fc-42c0-932a-51d4af76e7bb"},{"name":"Buscar últimos alertas da casa","id":"30c67e09-50e3-40fe-9895-3dbc76054788","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/{idCasa}/latestAlerts","urlObject":{"protocol":"http","port":"8080","path":["smarthome","private","house","{idCasa}","latestAlerts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c0f4a9af-0de8-44ee-8e56-f4eeec3df1ed","name":"Exemplo dos alertas da casa, com valores anormais","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/smarthome/private/house/1/latestAlerts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 30 Dec 2022 21:41:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"div\": {\n            \"id\": 1,\n            \"nome\": \"sala\",\n            \"tipo\": \"SALA\"\n        },\n        \"sensor\": \"temperatura\",\n        \"valor\": 43,\n        \"stamp\": \"2022-12-29T12:23:33.123+00:00\"\n    },\n    {\n        \"id\": 2,\n        \"div\": {\n            \"id\": 2,\n            \"nome\": \"cozinha\",\n            \"tipo\": \"COZINHA\"\n        },\n        \"sensor\": \"temperatura\",\n        \"valor\": 100,\n        \"stamp\": \"2022-12-13T23:53:00.000+00:00\"\n    },\n    {\n        \"id\": 1,\n        \"div\": {\n            \"id\": 2,\n            \"nome\": \"cozinha\",\n            \"tipo\": \"COZINHA\"\n        },\n        \"sensor\": \"temperatura\",\n        \"valor\": 100,\n        \"stamp\": \"2022-12-13T23:53:00.000+00:00\"\n    }\n]"}],"_postman_id":"30c67e09-50e3-40fe-9895-3dbc76054788"}],"event":[{"listen":"prerequest","script":{"id":"7c062232-1a31-4979-8c01-ba22a70862e3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2f35a77e-0ddb-45f1-8edc-d353a7bcc74f","type":"text/javascript","exec":[""]}}],"variable":[{"key":"idDiv","value":"1","type":"string"},{"key":"idDivSala","value":"2","type":"string"},{"key":"idUtilizador","value":"1"},{"key":"idDisp","value":"1"},{"key":"idDivExterior","value":"3"},{"key":"idRegador","value":"16"},{"key":"idAC","value":"5"},{"key":"idLamp","value":"3","type":"string"},{"key":"idCasa","value":"1"}]}