{"id":21634933,"url":"https://github.com/dvchinx/company-api","last_synced_at":"2026-04-15T18:02:13.942Z","repository":{"id":263226387,"uuid":"889734506","full_name":"dvchinx/Company-API","owner":"dvchinx","description":"Api Rest hecha con Java y Spring para el manejo de empleados de una empresa en base de datos MySQL","archived":false,"fork":false,"pushed_at":"2024-11-17T11:48:47.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T22:42:14.005Z","etag":null,"topics":["java","jdbc","rest-api","spring","spring-boot"],"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/dvchinx.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":"2024-11-17T04:45:55.000Z","updated_at":"2024-12-04T23:53:03.000Z","dependencies_parsed_at":"2024-11-17T05:25:47.353Z","dependency_job_id":"ab114705-659b-4ba2-976e-30cbba555cbd","html_url":"https://github.com/dvchinx/Company-API","commit_stats":null,"previous_names":["dvchinx/company-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dvchinx/Company-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvchinx%2FCompany-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvchinx%2FCompany-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvchinx%2FCompany-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvchinx%2FCompany-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvchinx","download_url":"https://codeload.github.com/dvchinx/Company-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvchinx%2FCompany-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31853279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["java","jdbc","rest-api","spring","spring-boot"],"created_at":"2024-11-25T03:18:45.511Z","updated_at":"2026-04-15T18:02:13.919Z","avatar_url":"https://github.com/dvchinx.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏢 Company-API  \n\n**API REST para la gestión de empleados en la base de datos \"Company\"**  \n\nCompany-API es un servicio REST desarrollado en Java con **Spring Boot** que permite interactuar con la base de datos **MySQL** mediante operaciones CRUD en la tabla `Employees`. Este proyecto es ideal para aprender y practicar con tecnologías modernas de backend.\n\n---\n\n## 🚀 Características  \n- **Framework:** Spring Boot.  \n- **ORM:** Spring Data JPA para la gestión de entidades.  \n- **Dependencias:** Lombok para reducir el código boilerplate y JDBC para interacciones personalizadas con la base de datos.  \n- **Base de datos:** MySQL, tabla `Employees` con los campos:  \n  - `Cedula`  \n  - `Nombre`  \n  - `Apellido`  \n  - `Rol`  \n  - `Correo`  \n- **Entorno local:** Diseñado para funcionar en máquinas locales.  \n\n---\n\n## 🛠️ Tecnologías utilizadas  \n- **Java 21**  \n- **Spring Boot** (versión 3.1.0 o superior)  \n- **Spring Data JPA**  \n- **Lombok**  \n- **JDBC**  \n- **MySQL**  \n- **IntelliJ IDEA** como IDE, con ayuda de **TabNine**.  \n\n---\n\n## 🛡️ Endpoints disponibles  \n\n| **Método** | **Endpoint**         | **Descripción**                              |\n|------------|----------------------|----------------------------------------------|\n| `GET`      | `/getAll`            | Obtiene todos los empleados.                 |\n| `GET`      | `/getById/{cedula}`  | Obtiene un empleado por su cédula.           |\n| `POST`     | `/save`              | Guarda un nuevo empleado o actualiza uno existente. |\n| `DELETE`   | `/delete/{cedula}`       | Elimina un empleado por su ID.           |\n\n\n---\n\n## 📋 Requisitos previos  \n1. **JDK 21** instalado.  \n2. **MySQL** configurado y en ejecución.  \n3. Base de datos `Company` creada con la tabla `Employees`:  \n\n```sql\nCREATE DATABASE Company;\n\nUSE Company;\n\nCREATE TABLE Employees (\n    Cedula VARCHAR(50) PRIMARY KEY,\n    Nombre VARCHAR(100) NOT NULL,\n    Apellido VARCHAR(100) NOT NULL,\n    Rol VARCHAR(50) NOT NULL,\n    Correo VARCHAR(100) UNIQUE NOT NULL\n);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvchinx%2Fcompany-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvchinx%2Fcompany-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvchinx%2Fcompany-api/lists"}