A simple REST API for managing to-do tasks, built with Java Spring Boot.
- Java 21
- Spring Boot 4
- Spring Data JPA
- H2 In-Memory Database
- Lombok
- Maven
| Field | Value |
|---|---|
| Group | com.example |
| Artifact | todo-api |
| Package | com.example.todo |
git clone https://github.com/your-username/todo-api.git
cd todo-api
./mvnw spring-boot:runAPI runs at: http://localhost:8080
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/todos |
Get all todos |
GET |
/api/todos/{id} |
Get todo by ID |
GET |
/api/todos/filter?completed=true |
Filter by status |
POST |
/api/todos |
Create a todo |
PUT |
/api/todos/{id} |
Update a todo |
DELETE |
/api/todos/{id} |
Delete a todo |
manual http requests with postman instructions todo-manual-test-instructions
Open source under the MIT License.