a tools for sphinx gen doc from rest api
Project description
a tools for sphinx gen doc from json api
Overview
Add a longer description here.
INSTALL
Basic usage
.. rest: path_to_model.json
example in model file
{
"title": "测试资源",
"desc": "测试测试测试",
"method": {
"get": {
"list": false,
"path": "/api/xx/xx/xx",
"params": {
"id":"ddede"
},
"desc": "dwdwedewfeferferferferfewr",
"headers": {
"auth":"auth"
},
"codes": {
"400":"de",
"200":"2"
}
}
},
"model": {
"id":"",
"desc":"dede"
}
}
CONFIG
in config.py
extensions += ['sphinxcontrib.sphinxcontrib-sphinx-rest-api-doc',]
rest_api_source_root = os.path.join(PROJECT_DIR, "_static", "models")
rest_api_domain = "timger.com.cn"
rest_api_http_request_example_title = "Request Example"
rest_api_http_request_example_title = "Response Example"
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for sphinxcontrib-sphinx-rest-api-doc-0.0.9.dev10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de4c8f8410b33e79af4c9536e5a282834a8c178a2e596291a7df9196b1208d42 |
|
MD5 | dfcf79912f1f7416196f96bc19d516c6 |
|
BLAKE2b-256 | d06b2c7a560deabf6e87a31d9aa0fd1049ce25392e12f1339df05188d05dbfe4 |