Skip to content

feat: 동화 조회 API 구현 (내 동화, 공유 동화, 상세 조회) - #12

Merged
zzuhannn merged 14 commits into
developfrom
feat/#11
Apr 30, 2026
Merged

feat: 동화 조회 API 구현 (내 동화, 공유 동화, 상세 조회)#12
zzuhannn merged 14 commits into
developfrom
feat/#11

Conversation

@zzuhannn

@zzuhannn zzuhannn commented Apr 5, 2026

Copy link
Copy Markdown
Member

🔎 관련 이슈



📋 작업 내용

  • Island enum 추가 (섬 분류: 전래동화/중세/판타지 + Background 매핑)
  • Fairytale, Paragraph Repository 추가
  • 동화 조회 DTO 추가 (FairytaleListRes, FairytaleDetailRes, ParagraphRes)
  • FairytaleService 인터페이스 및 구현체 추가
  • FairytaleController 추가 (내 동화, 공유 동화, 상세 조회 API)
    • GET /api/fairytales/my — 내 동화 목록 (섬별 필터링, 페이지네이션)
    • GET /api/fairytales/shared — 공유 동화 목록 (본인 제외, 섬별 필터링)
    • GET /api/fairytales/{fairytaleId} — 동화 상세 조회 (공개 API, permitAll)
  • 인증 관련 버그 수정 3건
    • CustomAuthenticationEntryPointHandler: 401 응답 시 메시지만 반환하던 버그 수정
    • GlobalExceptionHandler: 필수 쿼리 파라미터 누락 시 401 대신 400 응답하도록 수정
    • AuthenticatedUserArgumentResolver: 토큰 없이 인증 필수 API 호출 시 404 대신 401 응답하도록 수정



💡 알림

  • 동화 상세 조회(GET /api/fairytales/{fairytaleId})는 인증 없이 접근 가능 (SecurityConfig permitAll)



✅ 체크리스트

  • 빌드 성공 확인 (./gradlew build -x test)
  • 테스트 케이스 통과됨
  • 관련 문서와 코드 내용이 동일함
    • 엔드포인트 체크
    • Http Method 체크



📸 스크린샷

내 동화 목록 조회 (FANTASY)

노션 참고

@zzuhannn zzuhannn self-assigned this Apr 5, 2026
Joonseok-Lee

This comment was marked as resolved.

zzuhannn added 2 commits April 6, 2026 18:58
매 요청마다 new ObjectMapper() 생성하던 오버헤드를 제거하고
Spring Bean으로 주입받도록 수정

@Joonseok-Lee Joonseok-Lee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Joonseok-Lee
Joonseok-Lee requested review from Joonseok-Lee and LgE02 and removed request for Joonseok-Lee April 8, 2026 08:52
@zzuhannn
zzuhannn merged commit b8df3f9 into develop Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants