|
@@ -187,7 +187,8 @@
|
|
|
<!-- <li class="nav-btn" data-id="10"><a href="javascript:;">失败响应示例</a></li>-->
|
|
|
<!-- {{/if}}-->
|
|
|
<!-- </ul>-->
|
|
|
- {{/if}}
|
|
|
+ {{/if}}
|
|
|
+ <li class="nav-btn" data-id="9" style="display: block;"><a href="javascript:;">枚举信息</a></li>
|
|
|
</script>
|
|
|
</ul>
|
|
|
</ul>
|
|
@@ -215,9 +216,15 @@
|
|
|
{{if (target_type == 'example' && is_doc == '0') || target_type == 'api'}}
|
|
|
<h3 class="title"><a href="javascript:;" class="maodian"></a> 基本信息 <i class="fa fa-angle-down"></i></h3>
|
|
|
<ul class="editor-preview-info">
|
|
|
- <li><strong>接口状态:</strong> <code class="span {{mark}}">{{mark == 'developing' ? '开发中' : mark ==
|
|
|
+ <li>
|
|
|
+ <strong>接口状态:</strong> <code class="span {{mark}}">
|
|
|
+ {{
|
|
|
+mark == 'developing' ? '开发中' : mark ==
|
|
|
'complated' ?
|
|
|
- '已完成' : mark == 'modifying' ? '修改中' : '开发中'}}</code></li>
|
|
|
+ '已完成' : mark == 'modifying' ? '修改中' : '开发中'
|
|
|
+ }}
|
|
|
+ </code>
|
|
|
+ </li>
|
|
|
{{if request.url}}
|
|
|
<li><strong>接口URL:</strong> <code class="span">{{request.url}}</code></li>
|
|
|
{{/if}}
|
|
@@ -227,11 +234,13 @@
|
|
|
|
|
|
<h3 class="title"
|
|
|
style="{{request.header.parameter.length > 0 || request.query.parameter.length > 0 || request.resful.parameter.length > 0 || request.body.parameter.length>0 ||request.body.raw !='' ? 'display:block':'display:none'}}">
|
|
|
- <a href="javascript:;" class="maodian"></a> 请求参数 <i class="fa fa-angle-down"></i></h3>
|
|
|
+ <a href="javascript:;" class="maodian"></a> 请求参数 <i class="fa fa-angle-down"></i>
|
|
|
+ </h3>
|
|
|
{{if request.header.parameter.length > 0 || request.query.parameter.length > 0 || request.resful.parameter.length > 0 || request.body.parameter.length>0 ||request.body.raw !=''}}
|
|
|
<div class="markdown-request">
|
|
|
- <h4 class="title" style="{{request.header.parameter.length ? 'display:block':'display:none'}}"><a
|
|
|
- href="javascript:;" class="maodian"></a> Header参数及说明</h4>
|
|
|
+ <h4 class="title" style="{{request.header.parameter.length ? 'display:block':'display:none'}}">
|
|
|
+ <a href="javascript:;" class="maodian"></a> Header参数及说明
|
|
|
+ </h4>
|
|
|
{{if request.header.parameter.length > 0}}
|
|
|
<div>
|
|
|
<table>
|
|
@@ -247,8 +256,11 @@
|
|
|
<tr>
|
|
|
<td>{{item.key}}</td>
|
|
|
<td>{{item.value}}</td>
|
|
|
- <td>{{item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
- item.field_type}}
|
|
|
+ <td>
|
|
|
+ {{
|
|
|
+item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
+ item.field_type
|
|
|
+ }}
|
|
|
</td>
|
|
|
<td>{{item.not_null == "1" ? '是' : '否'}}</td>
|
|
|
<td>{{item.description == '' ? '暂无描述' : item.description }}</td>
|
|
@@ -259,8 +271,9 @@
|
|
|
</div>
|
|
|
{{/if}}
|
|
|
|
|
|
- <h4 class="title" style="{{request.query.parameter.length > 0 ? 'display:block':'display:none'}}"><a
|
|
|
- href="javascript:;" class="maodian"></a> Query参数及说明</h4>
|
|
|
+ <h4 class="title" style="{{request.query.parameter.length > 0 ? 'display:block':'display:none'}}">
|
|
|
+ <a href="javascript:;" class="maodian"></a> Query参数及说明
|
|
|
+ </h4>
|
|
|
{{if request.query.parameter.length > 0}}
|
|
|
<div>
|
|
|
<table>
|
|
@@ -277,8 +290,11 @@
|
|
|
<tr>
|
|
|
<td>{{item.key}}</td>
|
|
|
<td>{{item.value}}</td>
|
|
|
- <td>{{item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
- item.field_type}}
|
|
|
+ <td>
|
|
|
+ {{
|
|
|
+item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
+ item.field_type
|
|
|
+ }}
|
|
|
</td>
|
|
|
<td>{{item.not_null == "1" ? '是' : '否'}}</td>
|
|
|
<td>{{item.description == '' ? '暂无描述' : item.description }}</td>
|
|
@@ -290,8 +306,9 @@
|
|
|
</div>
|
|
|
{{/if}}
|
|
|
|
|
|
- <h4 class="title" style="{{request.resful.parameter.length ? 'display:block':'display:none'}}"><a
|
|
|
- href="javascript:;" class="maodian"></a> 路径参数及说明</h4>
|
|
|
+ <h4 class="title" style="{{request.resful.parameter.length ? 'display:block':'display:none'}}">
|
|
|
+ <a href="javascript:;" class="maodian"></a> 路径参数及说明
|
|
|
+ </h4>
|
|
|
{{if request.resful.parameter.length > 0}}
|
|
|
<div>
|
|
|
<table>
|
|
@@ -308,8 +325,11 @@
|
|
|
<tr>
|
|
|
<td>{{item.key}}</td>
|
|
|
<td>{{item.value}}</td>
|
|
|
- <td>{{item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
- item.field_type}}
|
|
|
+ <td>
|
|
|
+ {{
|
|
|
+item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
+ item.field_type
|
|
|
+ }}
|
|
|
</td>
|
|
|
<td>{{item.not_null == "1" ? '是' : '否'}}</td>
|
|
|
<td>{{item.description == '' ? '暂无描述' : item.description }}</td>
|
|
@@ -323,10 +343,13 @@
|
|
|
|
|
|
<h4 class="title"
|
|
|
style="{{request.body.parameter.length > 0 || request.body.raw !='' ? 'display:block' : 'display:none'}}">
|
|
|
- <a href="javascript:;" class="maodian"></a> body参数及说明</h4>
|
|
|
+ <a href="javascript:;" class="maodian"></a> body参数及说明
|
|
|
+ </h4>
|
|
|
{{if request.body.parameter.length>0 ||request.body.raw !='' }}
|
|
|
- {{if request.body.mode == 'form-data' || request.body.mode == 'multipart/form-data' ||
|
|
|
- request.body.mode =='application/x-www-form-urlencoded' || request.body.mode=="urlencoded"}}
|
|
|
+ {{
|
|
|
+if request.body.mode == 'form-data' || request.body.mode == 'multipart/form-data' ||
|
|
|
+ request.body.mode =='application/x-www-form-urlencoded' || request.body.mode=="urlencoded"
|
|
|
+ }}
|
|
|
<div>
|
|
|
<table>
|
|
|
<tr>
|
|
@@ -342,8 +365,11 @@
|
|
|
<tr>
|
|
|
<td>{{item.key}}</td>
|
|
|
<td>{{item.value}}</td>
|
|
|
- <td>{{item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
- item.field_type}}
|
|
|
+ <td>
|
|
|
+ {{
|
|
|
+item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
+ item.field_type
|
|
|
+ }}
|
|
|
</td>
|
|
|
<td>{{item.not_null == "1" ? '是' : '否'}}</td>
|
|
|
<td>{{item.description == '' ? '暂无描述' : item.description }}</td>
|
|
@@ -404,8 +430,9 @@
|
|
|
<!--respond-->
|
|
|
|
|
|
<h3 class="title"
|
|
|
- style="{{response.success.raw || response.success.parameter.length > 0 || response.error.raw || response.error.parameter.length > 0 ? 'display:block':'display:none'}}"">
|
|
|
- <a href="javascript:;" class="maodian"></a> 响应示例<i class="fa fa-angle-down"></i></h3>
|
|
|
+ style="{{response.success.raw || response.success.parameter.length > 0 || response.error.raw || response.error.parameter.length > 0 ? 'display:block':'display:none'}}" ">
|
|
|
+ <a href="javascript:;" class="maodian"></a> 响应示例<i class="fa fa-angle-down"></i>
|
|
|
+ </h3>
|
|
|
{{if response.success.raw || response.success.parameter.length > 0 || response.error.raw || response.error.parameter.length > 0}}
|
|
|
<div class="markdown-response">
|
|
|
{{if response.success.raw || response.success.parameter.length > 0}}
|
|
@@ -460,6 +487,9 @@
|
|
|
{{/if}}
|
|
|
</div>
|
|
|
{{/if}}
|
|
|
+ <h3 class="title" style="{{response.success.raw || response.success.parameter.length > 0 || response.error.raw || response.error.parameter.length > 0 ? 'display:block':'display:none'}}">
|
|
|
+ <a href="javascript:;" class="maodian"></a>枚举信息<i class="fa fa-angle-down"></i>
|
|
|
+ </h3>
|
|
|
{{else if target_type == 'folder'}}
|
|
|
<h3 class="title"><a href="javascript:;" class="maodian"></a> 公共参数<i class="fa fa-angle-down"></i></h3>
|
|
|
<div class="markdown-request">
|
|
@@ -478,8 +508,11 @@
|
|
|
<tr>
|
|
|
<td>{{item.key}}</td>
|
|
|
<td>{{item.value}}</td>
|
|
|
- <td>{{item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
- item.field_type}}
|
|
|
+ <td>
|
|
|
+ {{
|
|
|
+item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
+ item.field_type
|
|
|
+ }}
|
|
|
</td>
|
|
|
<td>{{item.description == '' ? '暂无描述' : item.description }}</td>
|
|
|
</tr>
|
|
@@ -502,8 +535,11 @@
|
|
|
<tr>
|
|
|
<td>{{item.key}}</td>
|
|
|
<td>{{item.value}}</td>
|
|
|
- <td>{{item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
- item.field_type}}
|
|
|
+ <td>
|
|
|
+ {{
|
|
|
+item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
+ item.field_type
|
|
|
+ }}
|
|
|
</td>
|
|
|
<td>{{item.description == '' ? '暂无描述' : item.description }}</td>
|
|
|
</tr>
|
|
@@ -525,8 +561,11 @@
|
|
|
<tr>
|
|
|
<td>{{item.key}}</td>
|
|
|
<td>{{item.value}}</td>
|
|
|
- <td>{{item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
- item.field_type}}
|
|
|
+ <td>
|
|
|
+ {{
|
|
|
+item.field_type == "" || item.field_type == "[]"? (typeof item.value) :
|
|
|
+ item.field_type
|
|
|
+ }}
|
|
|
</td>
|
|
|
<td>{{item.description == '' ? '暂无描述' : item.description }}</td>
|
|
|
</tr>
|