todo-server/docker-compose.yml 파일 수정
21번째 줄
(기존) image: tkdals0978/todo-server
(수정) image: tkdals0978/todo-server-mac
$ 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: stringfile?: 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
없음