API 명세서
DTO 목록
ScheduleSaveRequestDto
{
"content": string,
“author”: string,
“password”:string,
}
ScheduleUpdateRequestDto
{
"content": string,
“author”: string,
“password”:string,
}
ScheduleResponseDto
{
"id": Long,
"content": string,
“author”: string,
}
성공
- Status Code 201 Created
실패
- 404 NotFound
ScheduleListResponseDto
[
{
"id": Long,
"content": string,
“author”: string
},
{
"id": Long,
"content": string,
“author”: string
}
// ...
]
성공
- Status Code 200 OK
실패 : 조회 값이 없는 경우
- 200 OK,비어있는 배열 응답 []
ERD
- 일정 ID는 자동적으로 서버에서 고유하게 관리해 줘야 할 기본키 역할을 하기 때문에 AutoIncrement를 적용했고, 또한 데이터가 많이 쌓이게 되면 int의 범위는 너무 적다고 판단했기 때문에 bigint로 타입을 지정함
테이블 생성
- 테이블 생성까지 완료! 이제 본격적으로 개발 시작!
'Spring' 카테고리의 다른 글
SOLID 원칙과 다형성의 한계(OCP, DIP) (1) | 2025.02.05 |
---|---|
연관관계 설정, 페이징, @ExceptionHandler를 적용한 일정 관리 서버 리팩토링 (1) | 2025.02.04 |
JDBC Templete을 이용한 일정 관리 서버 CRUD 구현 (3) | 2025.01.27 |
DTO를 사용하는 이유 (0) | 2025.01.24 |
Web Application / WAS / Servlet (1) | 2025.01.22 |