Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/007gzs/tornadoapi-example
tornadoapi example
https://github.com/007gzs/tornadoapi-example
Last synced: 14 days ago
JSON representation
tornadoapi example
- Host: GitHub
- URL: https://github.com/007gzs/tornadoapi-example
- Owner: 007gzs
- License: mit
- Created: 2018-09-25T12:31:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-06T02:05:25.000Z (about 6 years ago)
- Last Synced: 2024-11-08T10:29:26.084Z (2 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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