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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b9d1b2c2bee245246de567ad157d8f91d563810d20e3ff6f3bb94daeed9b5e2 |
|
MD5 | f50fe2ef8ee1c5cc6ee6e6ebdbbebd1c |
|
BLAKE2b-256 | 1c2af30471d5692dd0979818e121d94ea89a1190d338fcb4d538c5a81253801f |
Close
Hashes for aws_flask_lambda_swagger_ui-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ced28bba22bee6f27349af94b96da8890b9cdc6f76682ae49a86a75d4fdca4 |
|
MD5 | e789286b4c8f69ca333be9fa48f040bc |
|
BLAKE2b-256 | d6a1f8243de2069f1db170f413af5b35d7a0747031028807789904c1dfdf198e |