Add Swagger UI to Python Flask API

2022. 3. 20. 01:56BackEnd

설치

pip install flask_swagger_ui

 

  

import 하기

 

SWAGGER_URL = '/swagger'
API_URL = '/static/swagger.json'
swaggerui_blueprint = get_swagger_blueprint(
	SWAGGER_URL,
    API_URL,
    config=(
    	'app_name : '~~~'
    )
)


app.register_blueprint(swaggerui_blueprint, url_prefix=SWAGGER_URL)

app.register_blueprint(request_api.get_blueprint())

'BackEnd' 카테고리의 다른 글

env  (0) 2022.03.23
AWS S3에 파일 업로드하기  (0) 2022.03.23
s3 설치  (0) 2022.03.23
Swagger - spring boot 기준  (0) 2022.03.20
Python과 Flask 실무 시작하기(설치,VScode,세팅,디버깅,테스트)  (0) 2022.03.01