{"info":{"_postman_id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","name":"micro-service-springcloud","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>Fornece o valor total do salário através da quantidade de dias trabalhado.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>As API's foram desenvolvidas com spring boot e spring cloud, utilizando a arquitetura de micro serviços.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>As API's se comunicam através do protocolo basic oauth2 e bearer token.</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"},{"content":"Authentication","slug":"authentication"}],"owner":"9570826","collectionId":"63b96963-8e34-466a-aa4a-f35f56dd68d6","publishedId":"UVJhDa1D","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-12-04T21:29:27.000Z"},"item":[{"name":"hr-config-server","item":[{"name":"hr-worker-config-default-profile","id":"707e9a30-7c4a-42a2-afbb-7ddddc97c013","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-config-server}}/hr-worker/default","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","name":"micro-service-springcloud","type":"collection"}},"urlObject":{"path":["hr-worker","default"],"host":["{{host-config-server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"707e9a30-7c4a-42a2-afbb-7ddddc97c013"},{"name":"hr-worker-config-test-profile","id":"9ac9234c-64eb-4576-88ce-5c1015dfe02e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-config-server}}/hr-worker/test","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","name":"micro-service-springcloud","type":"collection"}},"urlObject":{"path":["hr-worker","test"],"host":["{{host-config-server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ac9234c-64eb-4576-88ce-5c1015dfe02e"}],"id":"e727fcd4-b4ec-4aaf-9341-fbe11dc13135","_postman_id":"e727fcd4-b4ec-4aaf-9341-fbe11dc13135","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","name":"micro-service-springcloud","type":"collection"}}},{"name":"hr-payroll","item":[{"name":"Payment","id":"3a3e928d-58e4-4338-acd8-d77911589ee3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host-api-gateway}}/hr-payroll/payments/2/days/5000","urlObject":{"path":["hr-payroll","payments","2","days","5000"],"host":["{{host-api-gateway}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a3e928d-58e4-4338-acd8-d77911589ee3"}],"id":"69f8f50f-3cfd-4586-bf30-d61767108c01","_postman_id":"69f8f50f-3cfd-4586-bf30-d61767108c01","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","name":"micro-service-springcloud","type":"collection"}}},{"name":"hr-user","item":[{"name":"UserById","id":"3c79c051-6239-4f1f-9383-7cb37e018763","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host-api-gateway}}/hr-user/users/2","urlObject":{"path":["hr-user","users","2"],"host":["{{host-api-gateway}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c79c051-6239-4f1f-9383-7cb37e018763"},{"name":"UserByEmail","id":"709303ba-db0b-4173-81c5-0153a912811e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host-api-gateway}}/hr-user/users/search?email=nina@gmail.com","urlObject":{"path":["hr-user","users","search"],"host":["{{host-api-gateway}}"],"query":[{"key":"email","value":"nina@gmail.com"}],"variable":[]}},"response":[],"_postman_id":"709303ba-db0b-4173-81c5-0153a912811e"}],"id":"587104a0-a6e7-42ce-b71a-9f785a5b2491","_postman_id":"587104a0-a6e7-42ce-b71a-9f785a5b2491","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","name":"micro-service-springcloud","type":"collection"}}},{"name":"hr-oauth","item":[{"name":"UserByEmail","id":"7437715d-5282-4ead-a42d-d0aec07d9cae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host-api-gateway}}/hr-oauth/users/search?email=nina@gmail.com","urlObject":{"path":["hr-oauth","users","search"],"host":["{{host-api-gateway}}"],"query":[{"key":"email","value":"nina@gmail.com"}],"variable":[]}},"response":[],"_postman_id":"7437715d-5282-4ead-a42d-d0aec07d9cae"},{"name":"Login","event":[{"listen":"test","script":{"id":"677632c3-fc26-4045-b9e6-702fe577414f","exec":["if (responseCode.code >= 200 && responseCode.code < 300) {\r","    var json = JSON.parse(responseBody);\r","    postman.setEnvironmentVariable('token', json.access_token);\r","}"],"type":"text/javascript"}}],"id":"d4b35e3a-0fa9-405a-b121-10a58aeb8dd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username-app}}"},{"key":"password","value":"{{password-app}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"{{username-user-admin}}","type":"text"},{"key":"password","value":"{{password-user}}","type":"text"},{"key":"grant_type","value":"{{grant_type}}","type":"text"}]},"url":"{{host-api-gateway}}/hr-oauth/oauth/token","urlObject":{"path":["hr-oauth","oauth","token"],"host":["{{host-api-gateway}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4b35e3a-0fa9-405a-b121-10a58aeb8dd8"}],"id":"1163d68c-8399-4acb-8147-372ab5f6424e","_postman_id":"1163d68c-8399-4acb-8147-372ab5f6424e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","name":"micro-service-springcloud","type":"collection"}}},{"name":"hr-worker","item":[{"name":"All workers","id":"c5a606e4-a696-4f26-b7c6-fbf9392ce6b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host-api-gateway}}/hr-worker/workers","urlObject":{"path":["hr-worker","workers"],"host":["{{host-api-gateway}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5a606e4-a696-4f26-b7c6-fbf9392ce6b1"},{"name":"Worker by id","id":"6a33693e-bdf4-4b19-bfd4-d330a63f280c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host-api-gateway}}/hr-worker/workers/2","urlObject":{"path":["hr-worker","workers","2"],"host":["{{host-api-gateway}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a33693e-bdf4-4b19-bfd4-d330a63f280c"},{"name":"Show worker on console","id":"1588b549-3f93-4202-8e12-ffa83cf7ce3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host-api-gateway}}/hr-worker/workers/configs","urlObject":{"path":["hr-worker","workers","configs"],"host":["{{host-api-gateway}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1588b549-3f93-4202-8e12-ffa83cf7ce3d"},{"name":"Actuator refresh","id":"ca8fd599-9949-46e1-94b2-277d7db102a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{host-api-gateway}}/hr-worker/actuator/refresh","urlObject":{"path":["hr-worker","actuator","refresh"],"host":["{{host-api-gateway}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca8fd599-9949-46e1-94b2-277d7db102a8"}],"id":"fa2a26bc-abec-4b72-89c0-e7b08952cbab","_postman_id":"fa2a26bc-abec-4b72-89c0-e7b08952cbab","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","id":"63b96963-8e34-466a-aa4a-f35f56dd68d6","name":"micro-service-springcloud","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"9c84da31-7dae-4617-b6ce-e3032c968efa","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"427347d5-7530-4ec8-be68-c3389bd22a17","type":"text/javascript","exec":[""]}}]}