Adding swagger ui on your AWS Lambda Function using a Flask blueprint
Project description
aws_flask_swagger_ui
Installation
Install the package using pip:
pip install aws-flask-lambda-swagger-ui
Usage
from flask import Flask
from aws_flask_lambda_swagger_ui import get_swaggerui_blueprint
app = Flask(__name__)
SWAGGER_URL = '/aws/test/docs'
API_URL = 'https://petstore.swagger.io/v2/swagger.json'
swaggerui_blueprint = get_swaggerui_blueprint(
SWAGGER_URL,
API_URL,
config={
'app_name': "AWS Lambda application"
}
)
app.register_blueprint(swaggerui_blueprint, url_prefix=SWAGGER_URL)
if __name__ == '__main__':
app.run(debug=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for aws_flask_lambda_swagger_ui-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bce8f7290bb4bb208e5d220bde799217c3cff2b10383473e39db965313e8b1fe |
|
MD5 | 83157db3befe940d9d9c330bfd4b936e |
|
BLAKE2b-256 | 6623f47295914cfca0bffaa4c578708083ff73605d8ab58a7804b41576aff671 |