Repository navigation
Conversation
jyx-07
force-pushed
the
feat/gateway-swagger
branch
from
November 3, 2026 14:14
eab575a to
5f7c99b
Compare
jyx-07
force-pushed
the
feat/gateway-swagger
branch
from
November 3, 2026 14:19
5f7c99b to
2b4cfd7
Compare
cfcromn
reviewed
Nov 3, 2026
cfcromn
left a comment
There was a problem hiding this comment.
문서 조회 테스트는 통과했지만, Try it out에서 JWT를 사용하는 설정이 빠진 것 같습니다.
| const config = new DocumentBuilder() | ||
| .setTitle('rush-user') | ||
| .setVersion('1.0') | ||
| .addBearerAuth() |
There was a problem hiding this comment.
.addBearerAuth() 외에 인증 요구사항도 연결해 줘야 하지 않을까요? 실제 생성된 문서를 보면 securitySchemes.bearer는 있지만 전역이나 각 API의 security는 없습니다. 이 상태에서는 Authorize에 JWT를 넣어도 요청에 Authorization 헤더가 붙지 않아서 보호된 API가 401을 받습니다. user와 sp에는 전역 또는 API별 요구사항을 추가하고, Spring 서비스 문서에도 Bearer 인증 정의와 적용이 필요해 보입니다.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
개요
Spring 4개, Nest 2개 서비스의 API 문서를 게이트웨이
/swagger-ui.html한 곳에서 볼 수 있게 합니다.본문
springdoc.swagger-ui.urls로 등록/{prefix}/v3/api-docs로,forward-headers-strategy: framework로 서버 주소를 게이트웨이로 설정@nestjs/swagger추가, 같은 경로로 문서 제공#10 → #12 → #13 → #14 → #15 → #16 → 이 PR 순서로 머지해 주세요.