This project is a simple to-do list API without authentication.
The table is generated automatically, but you must create the MySQL database with the name 'todo-list-api'
CREATE DATABASE todo_list_api;
GET /api/v1/tasks
GET /api/v1/tasks/{taskId}
Parameter | Type | Description |
---|---|---|
taskId |
int |
[Required] ID of task to fetch |
POST /api/v1/tasks
Parameter | Type | Description |
---|---|---|
description |
String |
[Required] Task description |
state |
ENUM(PENDING, COMPLETED) |
Task state, default = PENDING |
POST /api/v1/tasks/{taskId}/description
Parameter | Type | Description |
---|---|---|
taskId |
int |
[Required] ID of the task to update |
description |
String |
[Required] Task description |
PUT /api/v1/tasks/{taskId}/state
Parameter | Type | Description |
---|---|---|
taskId |
int |
[Required] ID of the task to update |
state |
ENUM(PENDING, COMPLETED) |
[Required] Task state |
DELETE /api/v1/tasks/{taskId}
Parameter | Type | Description |
---|---|---|
taskId |
int |
[Required] ID of the task to delete |