{% 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']}}
{% if 'warning' in method_doc %}
注:{{method_doc['warning']}}
{% end %}
请求参数
{% for key, name in method_doc.get('request', {}).items() %} {% end %}
字段名字段说明
{{key}} {{name}}
响应内容
{% for key, name in cat_response_params(method_doc.get('response')).items()%} {% end %}
字段名字段说明
{{key}} {{name}}
{% end %} {% end %} {% end %} {% if db_tables %} {% include "template/db_table.html" %} {% end %}