A clean Spring Boot REST API you can demo in minutes.
- CRUD endpoints for TODO items
- Input validation
- H2 in-memory DB (easy local run)
- OpenAPI/Swagger UI
- Unit/integration tests with MockMvc
- Java 17+
- Maven 3.8+
cd springboot-todo-api
mvn spring-boot:runAPI runs at:
Swagger UI:
GET /api/todosPOST /api/todosGET /api/todos/{id}PUT /api/todos/{id}DELETE /api/todos/{id}GET /api/health
mvn testcurl -X POST http://localhost:8080/api/todos \
-H "Content-Type: application/json" \
-d '{ "title": "Build portfolio", "done": false }'