Files
nuriq_back/src/utils/swagger_config.py
윤영훈 e20c7d58b1 [FEAT] (사용자 로직) : 인증 서비스 구현 완료
v0.1.2 (2025-11-16)
- 로그인, 로그아웃, 토큰 갱신, 회원가입 API 구현 완료
- 로그 포맷 통일화
2025-11-16 16:20:45 +09:00

40 lines
840 B
Python

"""
Swagger 설정
"""
# Third-Party Library Imports
from flask import Blueprint
from flask_restx import Api
import constants
# Swagger API Blueprint 및 설정
api_blueprint = Blueprint('api', __name__)
api = Api(
api_blueprint,
title='NuriQ API',
version=constants.API_VERSION,
description='NuriQ REST API 문서',
doc='/docs',
authorizations={
'Bearer': {
'type': 'apiKey',
'in': 'header',
'name': 'Authorization',
'description': 'JWT 토큰 입력 (예: Bearer <token>)'
}
},
security='Bearer',
validate=True
)
# 네임 스페이스 정의 및 API 추가
auth_ns = api.namespace('auth', description='인증 API', path='/auth')
# 네임 스페이스 정의 및 API에 추가
__all__ = [
'api_blueprint', 'api',
'auth_ns'
]