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.1.0.tar.gz
(711.9 kB
view hashes)
Built Distribution
Close
Hashes for xt_FlaskAPIDocs-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c9677250ef8d35dcedd0df6cbe4ccf7fa16991662a8b0f538a007afaf43797b |
|
MD5 | 9cecd3beeb6c70a1596a12078135548e |
|
BLAKE2b-256 | 5bde8c16ef089194458c028518054ac217d6810d779369e9d3886901cb7cca27 |