Skip to main content

Swagger UI for Python web framework Sanic.

Project description

# Sanic OpenAPI Real project in [](

This project just extends functional and fix some bugs ![Example Swagger UI]( “Swagger UI”)

#[Git Documentation](

## Installation `shell pip install sanic-simple-swagger `

#### Add OpenAPI and Swagger UI: `python from sanic_simple_swagger import swagger_blueprint, openapi_blueprint app.blueprint(openapi_blueprint) app.blueprint(swagger_blueprint) `

You’ll now have a Swagger UI at the URL /swagger/index.html.

Your routes will be automatically categorized by their blueprints.

### Configure all the things

`python app.config['API_VERSION'] = '1.0.0' app.config['API_TITLE'] = 'Swagger Petstore' app.config['API_DESCRIPTION'] = 'This is a sample server Petstore server. You can find out more about Swagger at []( or on [, #swagger]( For this sample, you can use the api key `special-key` to test the authorization filters.' app.config['API_TERMS_OF_SERVICE'] = '' app.config['API_CONTACT_EMAIL'] = '' app.config['API_LICENSE_NAME'] = 'Apache 2.0' app.config['API_LICENSE_URL'] = '' app.config['schemes'] = ['http', 'https'] `

## Reference 1. [Sanic]( 2. [Sanic OpenAPI](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sanic-simple-swagger, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size sanic-simple-swagger-0.0.5.tar.gz (2.3 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page