Adding swagger ui on your AWS Lambda Function using a Flask blueprint
Project description
aws_flask_lambda_swagger_ui
New version includes the templates folder
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac56c7bf621f91d5dff8eebf2a8b11b1d113f4e07c42bcb3232d08f9172d728 |
|
MD5 | 13f50a1fbc866c5b44bba1a6e8959164 |
|
BLAKE2b-256 | caa1362e02853a9d124b7556218d2285f03b9936aea852bfcf6bc89e4a1bb975 |
Close
Hashes for aws_flask_lambda_swagger_ui-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28af6d8bb5c4f9d930bf92dad41605633c128dcdb17ef0b48595f66edaabd737 |
|
MD5 | 8b6c4fd1af7d4211e258af3c37764b9d |
|
BLAKE2b-256 | 97e2f6f22ad29eeb7f89e547981e8244bcb278c9cdd5d11c593ee43a9ff7755d |