Adding swagger ui on your AWS Lambda Function using a Flask blueprint
Project description
aws_flask_lambda_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 Distribution
Built Distribution
Close
Hashes for aws_flask_lambda_swagger_ui-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e7809c7c0a6696538dc7867a2dd9530b3cbff9061e38d98224b669620dd4e5d |
|
MD5 | 4f2af3a8dee453fcabaa508323a1bbf9 |
|
BLAKE2b-256 | 32313c3dfb1cd6a3782dc709035fa9feb4d8ddd8c25ce85a84824d2ae99d16e6 |
Close
Hashes for aws_flask_lambda_swagger_ui-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e166a26c9c2d3d97e5eed38d9d2ef3096e49dbb6b62c82f1ec7d9eba3ff1c499 |
|
MD5 | eeb21f8a2d1dddf7135176f629428911 |
|
BLAKE2b-256 | b0c4c129cd18cda93f80ad4f9125c383f756d25cd564191c7325dfd46085d880 |