{% if data %} {% for item in data %} {% if item.tag.name == request.GET.tag and request.get_full_path != '/docs' %} {% for path in item.paths %} {% if path.path == request.GET.path %}

{{ path.summary }}


URL {{ path.path }}
请求方式 {{ path.method }}
请求参数
{% for param in path.params %} {% if param.require == True %} {% else %} {% endif %} {% endfor %}
参数 说明 类型 必填 示例 备注
{{ param.name }} {{ param.description }} {{ param.type }}{{ param.require }}{{ param.require }}{{ param.example }} {{ param.remark }}
状态码
{% for datum in status_code %}
{{ datum.code }} {{ datum.message }}
{% endfor %}
{% endif %} {% endfor %} {% endif %} {% endfor %} {% if request.get_full_path == '/docs' %}

返回格式说明

{
    "status":"succ",//状态 成功:succ 异常:fail
    "code":20000,//状态码
    "message":"请求成功",//状态码对应提示语
    "data":{},//业务数据块
    "systemTime":1500000000000//服务器当前时间戳
}
{% endif %} {% endif %}