Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/007gzs/tornadoapi-example

tornadoapi example
https://github.com/007gzs/tornadoapi-example

Last synced: 14 days ago
JSON representation

tornadoapi example

Awesome Lists containing this project

README

        

tornadoapi demo
==================

启动方式::

git clone https://github.com/007gzs/tornadoapi-example.git
cd tornadoapi-example
pip install -r requirements.txt
python main.py

浏览器打开下面地址查看文档::

http://127.0.0.1:8888/api/doc

接口访问::

http://127.0.0.1:8888/api/test
http://127.0.0.1:8888/api/test/xxxx
http://127.0.0.1:8888/api/test/xxxx?test_choice=0
http://127.0.0.1:8888/api/test?test_choice=0&test_param=zzzz
http://127.0.0.1:8888/api/test?test_choice=0&test_param=zzzz&format=json
http://127.0.0.1:8888/api/test?test_choice=0&test_param=zzzz&format=jsonp