Interface automation document based on flash.
Project description
flask-api-docs
Interface automation document based on flash
Installation
It is possible to install the tool with pip:
pip install xt-FlaskAPIDocs
Usage
Sample usage:
from flask import Flask
from flask_api_demo.test.HelloWorld import HelloWorld
from flask_docs import BluePrint, Docs
app = Flask(__name__)
a = BluePrint('hello', __name__)
a.add_url_rule('/hello', 'hello', HelloWorld().hello_world, methods=['GET'], args={"test1": 'str', "test2": 'int'})
a.add_url_rule('/bye', 'bye', HelloWorld().bye_world, methods=['GET'], args={"test1": 'str', "test2": 'int'})
app.register_blueprint(a)
Docs(app, hide_docs=True)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xt-FlaskAPIDocs-0.0.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for xt_FlaskAPIDocs-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552ea6f321412fc6ee15c1daf579a622be588b6e2058ac2bfc5933f5da91987e |
|
MD5 | c705f4debd747689ae60436f47b32ba3 |
|
BLAKE2b-256 | 27180517f355d0d029fbc80acbb754136b478b134d307d6263e8aba0693f2313 |