Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Sean-Bradley/09a1e8312ed1b6a3c01f811437cb9387 to your computer and use it in GitHub Desktop.
Save Sean-Bradley/09a1e8312ed1b6a3c01f811437cb9387 to your computer and use it in GitHub Desktop.
example.py
APP = Flask(__name__)
### swagger specific ###
SWAGGER_URL = '/swagger'
API_URL = '/static/swagger.json'
SWAGGERUI_BLUEPRINT = get_swaggerui_blueprint(
SWAGGER_URL,
API_URL,
config={
'app_name': "Seans-Python-Flask-REST-Boilerplate"
}
)
APP.register_blueprint(SWAGGERUI_BLUEPRINT, url_prefix=SWAGGER_URL)
### end swagger specific ###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment