-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
📄 설명
- GetMapping
- endpoint: (/month)
Request Form
- 날짜
- type: String
- variable name: date
Response Form
-
type: int
-
detail: diariesCount
-
type: String
-
detail: date
-
type: List
-
detail: diaries
public class DairyOfMonth {
private LocalDateTime createAt;
private String context;
private byte[] summaryImage;
}개발 설명
- 클라이언트 단으로부터 조회하고자 하는 일기의 년도와 월을 넘겨받는다.
- 유저 식별자 값과 입력받은 date 값을 기반으로 일기를 조회한다.
- 총 일기의 개수와 일기들의 데이터를 담아 클라이언트로 반환한다.
✅ 작업할 내용
- Response Form DTO 생성
- 유저 외래키와 Request Param으로 입력받은 월을 이용해 두 개의 값과 매핑되는 데이터들을 모두 조회할 수 있는 JpaRepository 함수 작성
- 유저 식별자 값을 이용해 일기 조회를 요청한 유저 찾기
- 조회한 정보를 Response Form DTO에 담아 반환
- 모든 과정이 오류 없이 완료될 경우, 200 ok
- 해당 과정에서 오류가 발생할 경우, 클라이언트 에러 응답
🙋🏻 참고 자료
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature기능 구현기능 구현