{"id":20338657,"url":"https://github.com/mauroslucios/userdept-treinamento-java","last_synced_at":"2026-05-06T02:35:43.488Z","repository":{"id":112491606,"uuid":"443541977","full_name":"mauroslucios/userdept-treinamento-java","owner":"mauroslucios","description":"treinamento java","archived":false,"fork":false,"pushed_at":"2025-01-13T20:53:27.000Z","size":41,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-04T14:34:55.250Z","etag":null,"topics":["devtools","h2-database","jpa","lombok","mysql","postman","postresql","spring-boot","swagger","web"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mauroslucios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-01T13:14:19.000Z","updated_at":"2025-01-13T20:53:30.000Z","dependencies_parsed_at":"2025-01-13T21:28:55.288Z","dependency_job_id":"9dea1fe8-8dbc-4d01-8fd8-903c9a15c404","html_url":"https://github.com/mauroslucios/userdept-treinamento-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mauroslucios/userdept-treinamento-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauroslucios%2Fuserdept-treinamento-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauroslucios%2Fuserdept-treinamento-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauroslucios%2Fuserdept-treinamento-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauroslucios%2Fuserdept-treinamento-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauroslucios","download_url":"https://codeload.github.com/mauroslucios/userdept-treinamento-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauroslucios%2Fuserdept-treinamento-java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263264645,"owners_count":23439255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devtools","h2-database","jpa","lombok","mysql","postman","postresql","spring-boot","swagger","web"],"created_at":"2024-11-14T21:13:45.481Z","updated_at":"2025-10-12T13:09:20.893Z","avatar_url":"https://github.com/mauroslucios.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# userdept-treinamento-java\nNesta API Rest vamos criar os seguintes casos de uso:\n- Buscar todos usuários;\n- Buscar uma entidade por id;\n- Inserir um novo usuário.\n\nTeremos os endpoints:\n- /api/users → get de todos usuários\n- /api/users/{id} → get de um único usuário\n- /api/users/ → insert de usuário\n    \n\nFerramentas:\n- spring tools suite ou IDE de sua preferência.\n- postman\n\nTecnoloagias:\n- spring;\n- jpa;\n- swagger;\n- mysql dockerizado;\n- postgresql;\n- devtools\n- web;\n- lombok\n\n## Url swagger\n-http://localhost:8080/swagger-ui.html\n\n\n## querys\n- insert into tb_user values(null,'funcionario1@email.com','funcionario 1',4);\n- select u.id as codigo, u.email as 'email funcionario', u.name as 'nome funcionario', d.name as 'departamento trabalha', d.id as 'codigo\n departamento' from tb_user as u  inner join tb_department as d on u.department_id = d.id;\n## Imagens\n\n![usuraios_departamentos](https://user-images.githubusercontent.com/671694/147854640-e8e25bdf-4a0e-4f47-9119-352266980fa7.jpg)\n\n![Captura de tela de 2023-02-12 13-54-12](https://user-images.githubusercontent.com/671694/218325069-2a62d1dd-2071-40b4-b629-5510e87af7ef.png)\n\n\n![java](https://user-images.githubusercontent.com/671694/147854651-cb185a41-2441-4cd9-af92-c3faf4b00299.jpg)\n\n![java](https://user-images.githubusercontent.com/671694/147860506-b6aa4341-3ffe-4c37-a2ad-07414293b1c2.png)\n\n![Captura de tela de 2023-02-12 15-23-25](https://user-images.githubusercontent.com/671694/218329603-44a3fc98-2409-41e6-8647-45976d0ad7f9.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauroslucios%2Fuserdept-treinamento-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauroslucios%2Fuserdept-treinamento-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauroslucios%2Fuserdept-treinamento-java/lists"}