POST /todo
{
"title": "제목1",
"content": "내용1"
}{
"code": 200,
"message": "Todo 생성 완료",
"data": {
"id": 0
}
}{
"status": 400,
"message": "필수 값이 없습니다."
}GET /todo
{
"code": 200,
"message": "Todo 전체 조회",
"data": [
{
"title": "title4",
"content": "todo4 입니다."
},
{
"title": "title5",
"content": "todo5 입니다."
}
]
}GET /todo/{id}
{
"code": 200,
"message": "Todo 조회",
"data": {
"title": "title5",
"content": "todo5 입니다."
}
}{
"status": 404,
"message": "Todo를 찾을 수 없습니다."
}PUT /todo/{id}
{
"title": "수정된 title"
}{
"code": 200,
"message": "업데이트에 성공하였습니다.",
"data": {
"title": "수정된 titleeee",
"content": "todo4 입니다."
}
}{
"status": 400,
"message": "중복된 값입니다."
}DELETE /todo/{id}
{
"code": 200,
"message": "삭제가 완료되었습니다.",
"data": {
"id": 0
}
}{
"status": 404,
"message": "Todo를 찾을 수 없습니다."
}