@@ -9,8 +9,8 @@ A RESTful API for managing tasks built with Spring Boot. Uses an H2 in-memory da
99| Layer | Technology |
1010| -------------| ------------------------|
1111| Language | Java 21 |
12- | Framework | Spring Boot 3. 4.1 |
13- | Persistence | Spring Data JPA |
12+ | Framework | Spring Boot 4.1.0-M2 |
13+ | Persistence | In-memory HashMap |
1414| Validation | Spring Boot Validation |
1515| Build Tool | Maven |
1616| CI/CD | GitHub Actions |
@@ -55,7 +55,8 @@ curl -s -X POST http://localhost:8080/tasks \
5555 "id" : " e3b0c442-..." ,
5656 "name" : " Buy groceries" ,
5757 "description" : " Milk, eggs, bread" ,
58- "createdAt" : " 2026-03-04T10:00:00"
58+ "createdAt" : " 2026-03-04T10:00:00" ,
59+ "status" : " CREATED"
5960}
6061```
6162
@@ -81,13 +82,23 @@ curl -s http://localhost:8080/tasks/{id}
8182
8283---
8384
85+ ### PATCH /tasks/{id}/complete — Mark a task as completed
86+
87+ ``` bash
88+ curl -s -X PATCH http://localhost:8080/tasks/{id}/complete
89+ ```
90+
91+ ** Expected:** ` 200 OK ` with the updated task body (status changed to "DONE"), or ` 404 ` if not found.
92+
93+ ---
94+
8495### DELETE /tasks/{id} — Delete a task
8596
8697``` bash
87- curl -s -o /dev/null -w " HTTP Status: %{http_code} " - X DELETE http://localhost:8080/tasks/{id}
98+ curl -s -X DELETE http://localhost:8080/tasks/{id}
8899```
89100
90- ** Expected:** ` 204 No Content `
101+ ** Expected:** ` 200 OK ` with the task body (status changed to "DELETED" for soft delete), or ` 404 ` if not found.
91102
92103---
93104
0 commit comments