{php}$key = 0;{/php} {foreach $apidocList as $k=>$v} {php}$key++;{/php}

- {$v.title}

{$v.des}
{/foreach} {foreach $docslist as $k=>$v} {php}$key++;{/php} {foreach $v as $ak=>$api} {php}$key++;{/php}

- 接口说明
- 在线测试

简要说明

- {$api.summary}

请求方式

- `{$api.method}`

请求地址

- `{if $apiDomain && substr($api['route'],0,5) === '/api.'}/{:substr($api['route'],5)}{else /}{$api.route}{/if}`

Headers参数

{if $api.headerslist}

名称 | 类型 | 必选 | 描述
--- | --- | --- | ---
{foreach $api.headerslist as $hk=>$hv}
{$hv.name} | {$hv.type} | {if $hv.required}是{else}否{/if} | {$hv.description}
{/foreach}

{else}

- 无

{/if}

Body参数

{if $api.paramslist}

名称 | 类型 | 必选 | 描述
--- | --- | --- | ---
{foreach $api.paramslist as $pk=>$pv}
{$pv.name} | {$pv.type} | {if $pv.required}是{else}否{/if} | {if $pv.sample}{$pv.description} - 例:{$pv.sample}{else}{$pv.description}{/if}
{/foreach}

{else}

- 无

{/if}

返回示例

{if $api.return}

    {$api.return}

{else}

- 无

{/if}

返回说明

{if $api.returnparamslist}

名称 | 类型 | 描述
--- | --- | ---
{foreach $api.returnparamslist as $pk=>$pv}
{$pv.name} | {$pv.type} | {$pv.description}
{/foreach}

{else}

- 无

{/if}
Body传参
{foreach $api.paramslist as $pk=>$pv}
{$pv.name}
{if($pv.type == 'array')}

追加参数

{else} {/if}
{/foreach}
响应输出

{/foreach} {/foreach}