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(#7): swagger api 문서를 설정한다 #11

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

tmddus2
Copy link
Collaborator

@tmddus2 tmddus2 commented Jul 28, 2024

작업 사항

  • swagger에 응답 잘 표현 안 되는 거 수정
image
  • swagger 조금 더 자세하게 description 추가

  • custom error enum으로 정의

    • custom error throw 하고 GlobalExceptionHandler에서 error 받아서 ErrorResponse 형식으로 전역 Exception 처리
        ...
    
        .onErrorResume(err -> {
              throw CustomException.of(Error.INVALID_TOKEN_ERROR);
        });
    
        ...

    이런 식으로 에러 발생했을 때 CustomException throw 한다. 에러 내용은 /global/exception/Error.java에 enum으로 정의

고민한 점들

@tmddus2 tmddus2 merged commit b716dac into main Jul 28, 2024
1 check passed
@tmddus2 tmddus2 changed the title 7 swagger api 문서를 설정한다 Fix(#7): swagger api 문서를 설정한다 Aug 1, 2024
@tmddus2 tmddus2 self-assigned this Aug 3, 2024
@tmddus2 tmddus2 linked an issue Aug 4, 2024 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swagger API 문서를 설정한다
1 participant