🌟 Contribuye y Mejora este Proyecto ¡Este proyecto está en constante evolución y cualquier mejora es bienvenida! 🎉 Si encuentras algo que se pueda optimizar, tienes una idea o quieres corregir errores, no dudes en participar.
Consulta el paso a paso Cómo contribuir con un proyecto en github para español or How to Contribute with github project for English.
This project is open source under the Licencia MIT.
This project is a REST API example built with Spring Boot that demonstrates CRUD operations for managing person data. The application uses Dozer Mapper to efficiently map between domain objects and DTOs, maintaining a clean architecture.
- Complete CRUD operations for person data
- REST API with best practices implementation
- Object mapping with Dozer Mapper
- Clean, scalable architecture for Spring Boot learners
- Java 8+
- Maven
- Clone the repository:
git clone https://github.com/sotobotero/spring_boot.git
- Navigate to the project directory:
cd spring_boot
- Build and run the application:
mvn clean install
mvn spring-boot:run
-
GET /person
- Retrieve all personscurl -X GET http://localhost:8080/person
-
GET /person/{id}
- Retrieve a specific personcurl -X GET http://localhost:8080/person/{id}
-
POST /person
- Create a new personcurl -X POST http://localhost:8080/person -H "Content-Type: application/json" -d '{ "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com" }'
-
PUT /person/{id}
- Update an existing personcurl -X PUT http://localhost:8080/person/{id} -H "Content-Type: application/json" -d '{ "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com" }'
-
DELETE /person/{id}
- Delete a personcurl -X DELETE http://localhost:8080/person/{id}
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com"
}