Skip to main content

This library provides python Flask utilities and static assets for rendering Swagger UI

Project description

This library provides python Flask utilities and static assets for rendering Swagger UI.

# Example

```python
from flask import Flask, jsonify

from flask_swaggerui import render_swaggerui, build_static_blueprint

app = Flask(__name__)


@app.route('/')
def root():
return render_swaggerui(swagger_spec_path="/spec")


@app.route('/spec')
def spec():
return jsonify({"some swagger": "spec stuff"})


# Adds static assets for swagger-ui to path
app.register_blueprint(build_static_blueprint("swaggerui", __name__))

if __name__ == "__main__":
app.run(port=8080, debug=True)
```

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
flask_swaggerui-0.0.1-py2.py3-none-any.whl (740.1 kB) Copy SHA256 hash SHA256 Wheel 3.5
flask-swaggerui-0.0.1.tar.gz (722.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page