$ git clone https://github.com/sangminlee98/api-practice.git
$ cd api-practice/todo-server
$ docker-compose up -d
- URL:
api/todos
- Method:
GET
{
"todos": [
{
"id": 1,
"title": "할일 1",
"done": false,
"thumbnail": "https:// ~"
},
{
"id": 2,
"title": "할일 2",
"done": true,
"thumbnail": "https:// ~"
},
{
"id": 3,
"title": "할일 3",
"done": false,
"thumbnail": "https:// ~"
}
]
}
- URL:
api/todos
- Method:
POST
- Content-Type:
multipart/form-data
- Body:
todoData: string
file?: File
{
"id": 1,
"title": "할일 1",
"done": false,
"thumbnail": "https:// ~"
}
- URL:
api/todos/:id
- Method:
PUT
{
"id": 1,
"title": "할일 1",
"done": false,
"thumbnail": "https:// ~"
}
- URL:
api/todos/:id
- Method:
DELETE
없음