Skip to main content

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)

Uploaded Source

Built Distribution

xt_FlaskAPIDocs-0.1.0-py3-none-any.whl (712.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page