$ git clone https://github.com/sangminlee98/sample-server.git$ cd sample-server$ docker-compose up -d- URL:
api/todos - Method:
GET
{
"todos": [
{
"id": 1,
"title": "할일 1",
"done": false
},
{
"id": 2,
"title": "할일 2",
"done": true
},
{
"id": 3,
"title": "할일 3",
"done": false
},
]
}- URL:
api/todos - Method:
POST - Body:
title: string
{
"id": 1,
"title": "할일 1",
"done": false
}- URL:
api/todos/:id - Method:
PUT
{
"id": 1,
"title": "할일 1",
"done": false
}- URL:
api/todos/:id - Method:
DELETE
없음