- API 설계
| 기능 | Method | URL | RequestBody | response | 상태코드 |
|---|---|---|---|---|---|
| 일정 등록 | POST | /api/calendars | { "todo" : "테스트", "author" : "김이박", "password" : "0000", "date" : "2025-01-27" } |
{ "id" : 1, "todo" : "테스트", "author" : "김이박", "date" : "2025-01-27" } |
200: 정상등록 |
| 전체 일정조회 | GET | /api/calendars | 200: 정상조회 | ||
| 선택 일정조회 | GET | /api/calendars/{id} | 200: 정상조회 | ||
| 수정 | PUT | /api/calendars/{id} | { "todo" : "테스트", "author" : "김이박", "password" : "0000", "date" : "2025-01-27" } |
{ "message" : "수정 완료", "todo" : "테스트", "author" : "김이박", "date" : "2025-01-27" } |
200: 정상수정 |
| 삭제 | DELETE | /api/calendars/{id} | { "message" : "삭제 완료" } | 200: 정상삭제 |
