Build swagger spec with Flask.
Project description
Swagger spec extractor for flask.
It supports only python3.4 and higher.
How to use it
Flask-Swag is a Flask extesnsion.
You can configure by
from flask.ext.swag import Swag
swag = Swag(app)
then, Swagger-UI will be served at /swagger/ui/
You can add details to flask view functions.
from myapp.app import app
from myapp.exts import swag
@app.route('/some-list')
@swag.mark.query('page', int)
@swag.mark.response(200, "List of somethings.", some_list_schema)
def some_list():
pass
Documentation
You can find out more info at http://flask-swag.readthedocs.org/
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
Flask-Swag-0.1.2.tar.gz
(790.7 kB
view details)
File details
Details for the file Flask-Swag-0.1.2.tar.gz
.
File metadata
- Download URL: Flask-Swag-0.1.2.tar.gz
- Upload date:
- Size: 790.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22c7776f86ba6c375f902f35e197fbc427d3eb715ea18c52da935c9cc8e80659 |
|
MD5 | cb3f0644c0ec949ac2c2eea5f748816e |
|
BLAKE2b-256 | 648f70aa8d57f96dfca432335ab6cb720e97c75c1b6cb48859a0108da2212a75 |