[feat] #23 댓글 개수 조회 기능 추가 및 API 버그 수정 #24
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 PR 요약
프론트엔드 팀의 요청에 따라 API 응답 데이터를 최적화하고, 여러 버그들을 수정하여 서비스 안정성을 높였습니다.
✨ PR 상세 내용
1. 게시글 목록 조회 API (
GET /posts) 최적화PostSummaryResponseDTO를 새로 구현하여, 댓글 목록 대신 **댓글 개수(commentCount)**만 반환하도록 수정했습니다. 이를 통해 응답 속도 및 데이터 효율성을 개선했습니다.2. 게시글 상세 조회 API (
GET /posts/{postId}/token) 버그 수정isOwner가 항상false로 반환되던 문제를 해결하여, 게시글 소유자가 정상적으로 수정/삭제할 수 있도록 변경했습니다.introduction) 필드를 추가했습니다.nickName이null로 오거나,profileUrl및createdAt이 누락되던 문제를 모두 해결하여 정확한 정보를 제공하도록 수정했습니다.3. 사용자 정보 API 버그 수정
GET /users/meAPI 응답에 누락되었던name,birthDate,introduction필드를 추가하여 모든 사용자 정보를 반환하도록 수정했습니다.BadRequestException**을 발생시켜 비정상적인 접근을 차단하도록 로직을 추가했습니다.🚨 주의 사항