Add: 나머지 swagger token scheme 추가

This commit is contained in:
UNGGU0704
2025-06-13 14:42:21 +09:00
parent da118db233
commit a863e9e734
3 changed files with 61 additions and 1 deletions
@@ -23,5 +23,23 @@ public class SwaggerConfig {
.description("하이오더 분석 서비스 API 문서")
.version("1.0.0"));
}
/**
* JWT Bearer 토큰을 위한 Security Scheme 생성
*/
private SecurityScheme createAPIKeyScheme() {
return new SecurityScheme()
.type(SecurityScheme.Type.HTTP)
.scheme("bearer")
.bearerFormat("JWT")
.in(SecurityScheme.In.HEADER)
.name("Authorization")
.description("""
JWT 토큰을 입력하세요
사용법:
1. 로그인 API로 토큰 발급
2. Bearer 접두사 없이 토큰만 입력
3. 예: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOi...
""");
}
}