{{doc.title}}
- Version:
{{doc.version}}
- Host:
{{doc.host}}
{{markdown(doc.description)}}
%endif
%if language == 'zh': 目录 %else: Contents %endif
-
%for api in doc.apis:
- {{api.title}} %endfor
%for note in doc.notes:
{{note.title}}
{{markdown(note.content)}}
%for api in doc.apis:
{{api.title}}
{{api.uri}}
%if api.description:
{{markdown(api.description)}}
%endif
%if api.uri_params:
Uri 参数 | 类型 | 描述 | 必须 | 默认值 | 示例 | %else:Uri Parameters | Type | Description | Required | Default | Example | %endif
---|---|---|---|---|---|---|---|---|---|---|---|
{{param.name}} |
{{param.type}} | {{param.description}} | {{param.required_svg}} | {{param.default}} | {{param.example}} |
Query 参数 | 类型 | 描述 | 必须 | 默认值 | 示例 | %else:Query Parameters | Type | Description | Required | Default | Example | %endif
---|---|---|---|---|---|---|---|---|---|---|---|
{{param.name}} |
{{param.type}} | {{param.description}} | {{param.required_svg}} | {{param.default}} | {{param.example}} |
POST 参数 | 类型 | 描述 | 必须 | 默认值 | 示例 | %else:POST Parameters | Type | Description | Required | Default | Example | %endif
---|---|---|---|---|---|---|---|---|---|---|---|
{{param.name}} |
{{param.type}} | {{param.description}} | {{param.required_svg}} | {{param.default}} | {{param.example}} |
Content-Types:
%for t in api.content_types:
{{t}}
%endfor
%if language == 'zh': 示例请求数据: %else: Request Body Example: %endif
{{api.body_example.strip()}}
%endif
%if api.response_example:
%if language == 'zh': 示例返回结果: %else: Response Example: %endif
{{api.response_example.strip()}}
%endif
%if api.tips:
{{markdown(api.tips)}}
%endif
%endfor