""" 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 )' } }, security='Bearer', validate=True ) # 네임 스페이스 정의 및 API 추가 auth_ns = api.namespace('auth', description='인증 API', path='/auth') # 네임 스페이스 정의 및 API에 추가 __all__ = [ 'api_blueprint', 'api', 'auth_ns' ]