Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 2.13 KB

File metadata and controls

18 lines (12 loc) · 2.13 KB
  • 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: 정상삭제

  • 작성 ERD

    캡처