Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 스웨거에서 커뮤니티 게시글 삭제 api의 response body 삭제 #365

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

yubinquitous
Copy link
Member

작업 내용

스웨거에서 커뮤니티 게시글 삭제 api의 response body를 삭제했습니다.

게시글 삭제 api를 통해 게시글이 삭제했을 경우, 응답코드는 204이므로 response body가 없습니다.
하지만 스웨거 문서에는 response body에 값이 있는 것으로 작성되어 있어 이를 삭제합니다.

구현 결과

image

Comment on lines -37 to -38
.status(statusCode.NO_CONTENT)
.send(util.success(statusCode.NO_CONTENT, responseMessage.DELETE_COMMUNITY_POST_SUCCESS));
Copy link
Member Author

Choose a reason for hiding this comment

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

응답코드가 204이기 때문에 위와 같이 body를 작성해도 응답에 반영되지 않았습니다.
따라서 body를 아예 삭제합니다.

Copy link

@roah-chae roah-chae left a comment

Choose a reason for hiding this comment

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

LGTM!

@jokj624
Copy link
Member

jokj624 commented Aug 8, 2024

zzzz 아니 회사거로 됐네 ㅠ

Copy link
Member

@HYOSITIVE HYOSITIVE left a comment

Choose a reason for hiding this comment

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

풀리퀘 있는지도 몰랐네요... 늦어서 죄송합니다 ㅠㅠ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FIX] 커뮤니티 게시글 삭제 api의 status code 204에 맞게 스웨거 수정
4 participants