필요기능 | |
---|---|
1 | todo 리스트 목록에 아이템 추가 |
2 | todo 리스트 전체 목록 조회 |
3 | todo 리스트 목록 중 특정 아이템 조회 |
4 | todo 리스트 목록 중 특정 아이템 수정 |
5 | todo 리스트 목록 중 특정 아이템 삭제 |
6 | todo 리스트 전체 목록 삭제 |
7 | 로그인 |
8 | 회원가입 |
method | endpoint | 기능 | request | response |
---|---|---|---|---|
POST | / | todo 아이템 추가 | { "title": "캡스톤 회의", } | { "id": 5, "title": "캡스톤 회의", "url":"http://localhost:8080/todolist01/5 } |
GET | / | 전체 todo 리스트 조회 | { "id": 1, "title": "자료구조 공부", "url":"http://localhost:8080/todolist01/1 }, { "id": 2, "title": "교양 과제", "url":"http://localhost:8080/todolist01/2 }, ... | |
GET | /{:id} | todo 아이템 조회 | { "id": 5, "title": "캡스톤 회의", "url":"http://localhost:8080/todolist01/5 } | |
PATCH | /{:id} | todo 아이템 수정 | { "title": "캡스톤 회의", "startTime": 10 "deadLine": 12 } | { "id": 5, "title": "캡스톤 회의", "url":"http://localhost:8080/todolist01/5 } |
DELETE | /{:id} | todo 아이템 삭제 | 200 | |
DELETE | / | 전체 todo 리스트 삭제 | 200 | |
POST | /signin | 로그인 | { "id": "todolist01", "password": "todopass123" } | { "message": success } |
POST | /signup | 회원가입 | { "id": "todolist01", "password": "todopass123" } |