{% include "template/debug_wrap.html" %} {% if api_description %}
API说明
{{api_description}}
{% end %}
API目录
{% for api_module in api_module_tree%}
{{api_module}}
{% end %}
API文档
{% for module in api_docs %} {% set module_docs = api_docs[module] %}
{{module}}
{% for url, handler, api_doc in module_docs %}
{{handler.__name__}}
{% for method_doc in api_doc %}
{{method_doc['restapi']}}
url:
{{url}}
method:
{{method_doc['method']}}
在线DEBUG
{% if 'warning' in method_doc %}
注:{{method_doc['warning']}}
{% end %}
请求参数
字段名
字段说明
{% for key, name in method_doc.get('request', {}).items() %}
{{key}}
{{name}}
{% end %}
响应内容
字段名
字段说明
{% for key, name in cat_response_params(method_doc.get('response')).items()%}
{{key}}
{{name}}
{% end %}
{% end %} {% end %} {% end %} {% if db_tables %} {% include "template/db_table.html" %} {% end %}