1 Star 0 Fork 0

romber123 / swagger-UI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
swagger-ui.html 68.75 KB
一键复制 编辑 原始数据 按行查看 历史
luoye 提交于 2020-07-02 16:46 . sqagger
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<!--页面不缓存-->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>swagger-bootstrap-ui</title>
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<script src="webjars/bycdao-ui/ext/i18n.js"></script>
<script type="text/javascript" src="webjars/bycdao-ui/jquery/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="webjars/bycdao-ui/ace/bootstrap.min.js"></script>
<script type="text/javascript" src="webjars/bycdao-ui/ace/ace.min.js"></script>
<link rel="stylesheet" href="webjars/bycdao-ui/bootstrap/css/bootstrap.min.css" />
<script type="text/javascript" src="webjars/bycdao-ui/jquery/clipboard/clipboard.min.js"></script>
<script type="text/javascript" src="webjars/bycdao-ui/layer3.0.3/layer.js"></script>
<link rel="stylesheet" href="webjars/bycdao-ui/layer3.0.3/skin/default/layer.css" />
<link rel="stylesheet" href="webjars/bycdao-ui/highlight/styles/docco.css" />
<link rel="stylesheet" href="webjars/bycdao-ui/highlight/styles/style.css" />
<link rel="stylesheet" href="webjars/bycdao-ui/highlight/styles/default.css" />
<script src="webjars/bycdao-ui/highlight/highlight.pack.js"></script>
<script src="webjars/bycdao-ui/jquery/marked.js"></script>
<link rel="stylesheet" href="webjars/bycdao-ui/cdao/swaggerbootstrapui.css?v=1.9.6" />
<link rel="stylesheet" type="text/css" href="webjars/bycdao-ui/iconfont/iconfont.css" />
<link rel="stylesheet" href="webjars/bycdao-ui/layui/css/layui.css" media="all">
<link rel="stylesheet" href="webjars/bycdao-ui/ext/sbuadmin.css" media="all">
<script src="webjars/bycdao-ui/jquery/template-web.js"></script>
<script src="webjars/bycdao-ui/jquery/axios.min.js"></script>
<link rel="stylesheet" href="webjars/bycdao-ui/bootstrap-tabx/css/bootstrap-tabs-x.min.css" />
<script src="webjars/bycdao-ui/bootstrap-tabx/js/bootstrap-tabs-x.min.js"></script>
<script src="webjars/bycdao-ui/layui/layui.js" charset="utf-8"></script>
<script src="webjars/bycdao-ui/ace-editor/ace.js" type="text/javascript"></script>
<script src="webjars/bycdao-ui/jquery/showdown.min.js"></script>
<script src="webjars/bycdao-ui/jquery/async.min.js"></script>
<script src="webjars/bycdao-ui/jquery/md5.min.js"></script>
<script src="webjars/bycdao-ui/jquery/json5.js"></script>
<link rel="stylesheet" href="webjars/bycdao-ui/ext/editormd.min.css" />
<link rel="stylesheet" href="webjars/bycdao-ui/cdao/swaggerbootstrapui-md.css?v=1.9.6" />
<style type="text/css">
#container {
width: 100%;
/*height: 90%;*/
/* Disable selection so it doesn't get annoying */
/* -webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: moz-none;
-ms-user-select: none;
user-select: none;*/
}
#container .left {
position: absolute;
}
#container .right {
position: fixed;
width: 100%;
}
#container #handle {
position: absolute;
left: 310px;
/* bottom: 0; */
width: 8px;
height: 90%;
/*background-color: #1a1a1a;*/
cursor: w-resize;
}
.panel-body{
padding: 5px;
}
.swbu-main p{
line-height: 2em;
margin: 1em 0;
}
.swbu-main .layui-table td{
border-color: #e6e6e6;
}
/*.layui-table .layui-table-cell{
height:auto;
overflow:visible;
text-overflow:inherit;
white-space:normal;
}*/
/*.layui-table-tips-main{display:none}
.layui-table-tips-c{display:none}*/
</style>
<script>
/*var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?08a0203144c393bb4372386953b1c593";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();*/
</script>
</head>
<body style="overflow: hidden;">
<div class="sbu-header" id="sbu-header">
<div class="sbu-header-left sbu-header-left-wd" id="leftGroup">
<div class="form-group sbu-header-group">
<div class="col-sm-12">
<select class="form-control" id="sbu-group-sel" style="margin-top: 13px;">
</select>
</div>
</div>
</div>
<div class="sbu-header-left" style="width: 700px;">
<i class="iconfont icon-zuosuojin1" style="font-size: 1.5em;margin-left: 10px;" id="leftCheck" data-display="0"></i>
<span><a href="https://gitee.com/xiaoym/swagger-bootstrap-ui" target="_blank" id="swaggerBootstrapHrefTitle"></a></span>
</div>
<div class="sbu-header-right">
<div class="form-group sbu-header-group">
<div class="col-sm-12" style="text-align: right;">
<div class="search bar8">
<input type="text" id="searchTxt" placeholder="请输入搜索内容......">
<span title="搜索" id="spanSearch">
<i class="iconfont icon-sousuo" style="font-size: 32px;"></i>
</span>
</div>
</div>
</div>
</div>
</div>
<div id="container">
<div class="bycdao-left left" id="leftMenu" style="height: 90%;overflow-y: auto;overflow-x: hidden;margin-top:2px;">
<ul class="nav nav-list" id="menu">
</ul>
<ul class="nav nav-list" id="searchMenu" style="display: none;">
</ul>
</div>
<div id="handle"></div>
<div class="bycdao-main right" id="content" style="height: 90%;margin-top:2px;right: 0px;/*overflow-x: hidden;overflow-y: auto;*/">
<div class="layui-layout layui-layout-admin open-tab">
<div class="layui-body">
<div class="layui-tab" lay-allowclose="true" lay-filter="admin-pagetabs">
<ul class="layui-tab-title">
<li class="layui-this" lay-id="main" id="sbu-tab-home">主页</li>
</ul>
<div class="layui-tab-content" style="height: 150px;">
<div class="layui-tab-item layui-show" id="mainTabContent">
</div>
</div>
</div>
<div class="admin-tabs-control iconfont icon-tab-left" ew-event="leftPage"></div>
<div class="admin-tabs-control iconfont icon-tab-right" ew-event="rightPage"></div>
<div class="admin-tabs-control iconfont icon-xiangxiazhankai">
<ul class="layui-nav admin-tabs-select" lay-filter="admin-pagetabs-nav">
<li class="layui-nav-item" lay-unselect="">
<a href="javascript:;"><span class="layui-nav-more"></span></a>
<dl class="layui-nav-child layui-anim-fadein layui-anim layui-anim-upbit">
<dd id="closeThisTabs" lay-unselect=""><a href="javascript:;">关闭当前标签页</a></dd>
<dd id="closeOtherTabs" lay-unselect=""><a href="javascript:;">关闭其它标签页</a></dd>
<dd id="closeAllTabs" lay-unselect=""><a href="javascript:;">关闭全部标签页</a></dd>
</dl>
</li>
<span class="layui-nav-bar" style="left: 20px; top: 35px; width: 0px; opacity: 0;"></span></ul>
</div>
</div>
</div>
</div>
</div>
<!--其他markdown文档说明-->
<script type="text/html" id="otherMarkdownFileScript">
<div id="otherMarkdownFile{{id}}" class="othermarkdown view-box markdown-body editormd-preview-container">
</div>
</script>
<!--离线文档说明-->
<script type="text/html" id="offLinecontentScript">
<div style="width:99%;margin:0px auto;margin-top: 10px;">
<div class="alert alert-info" role="alert">{{i18n.message.offline.note}}</div>
<div class="input-inline" style="margin-bottom:10px;">
<button class="btn btn-primary" type="button" id="btnCopy" >{{i18n.message.offline.copy}}</button>
</div>
<div class='input-inline'>
<div style="width: 100%;height:100%;">
<div style="float: left;width: 1%;">
<textarea class='form-control' style='width: 100%;height: 100%;display: none;' id="txtOffLineDoc">
**{{title}}**
**{{i18n.offline.note}}**{{description}}
**HOST**:{{host}}
**{{i18n.offline.contact}}**:{{contact}}
**Version**:{{version}}
**{{i18n.offline.url}}**{{location}}
<% for( i = 0; i < tags.length; i++) { var tag=tags[i] ; %># <%= tag.name %><% for( j = 0; j < paths.length; j++) {var path=paths[j]; if(path.tags.indexOf(tag.name)>-1){ %>
## <%= path.summary %>
**{{i18n.doc.des}}**:<%= path.description %>
**{{i18n.doc.url}}**:`<%= path.showUrl %>`
**{{i18n.doc.method}}**`<%= path.methodType %>`
**consumes**:`<%= path.consumes %>`
**produces**:`<%= path.produces %>`
<%if(path.requestValue!=null && path.requestValue!=""){%>
**{{i18n.doc.requestExample}}**
```json
<%= path.requestValue %>
```
<%}%>
**{{i18n.doc.params}}**
<% if(path.parameters!=null && path.parameters.length>0){ %>
| {{i18n.doc.paramsHeader.name}} | {{i18n.doc.paramsHeader.des}} | in | {{i18n.doc.paramsHeader.require}} | {{i18n.doc.paramsHeader.type}} | schema |
| ------------ | -------------------------------- |-----------|--------|----|--- |
<% for( a = 0; a < path.parameters.length; a++) {var param=path.parameters[a]; %>|<%=param.name%>| <%=param.description%> | <%=param.in%> | <%=param.require%> |<%=param.type%> | <%=param.schemaValue%> |
<%}%>
<%}else{%>暂无<%}%><% if(path.refparameters!=null && path.refparameters.length>0){ %>
**{{i18n.offline.schemaDes}}**
<% for( a = 0; a < path.refparameters.length; a++) { var ref=path.refparameters[a];%>
**<%=ref.name%>**
| {{i18n.doc.paramsHeader.name}} | {{i18n.doc.paramsHeader.des}} | in | {{i18n.doc.paramsHeader.require}} | {{i18n.doc.paramsHeader.type}} | schema |
| ------------ | -------------------------------- |-----------|--------|----|--- |
<% for( b = 0; b < ref.params.length; b++) { var rp=ref.params[b];%>|<%=rp.name%>| <%=rp.description%> | <%=rp.in%> | <%=rp.require%> |<%=rp.type%> | <%=rp.schemaValue%> |
<%}}}%>
<% if(path.multipartResponseSchema){%>
<% for(c = 0;c < path.responseCodes.length; c++){ var rcode=path.responseCodes[c];%>
<% if(rcode.schema!=null){%>
**<%= rcode.code %>{{i18n.doc.responseExample}}**:
```json
<%= rcode.responseValue %>
```
**<%= rcode.code %>{{i18n.doc.responseParams}}**:
<% if(rcode.responseParameters!=null && rcode.responseParameters.length>0){ %>
| {{i18n.doc.responseParamsHeader.name}} | {{i18n.doc.responseParamsHeader.des}} | {{i18n.doc.responseParamsHeader.type}} | schema |
| ------------ | -------------------|-------|----------- |
<% for( a = 0; a < rcode.responseParameters.length; a++) { var param=rcode.responseParameters[a];%>|<%=param.name%>| <%=param.description%> |<%=param.type%> | <%=param.schemaValue%> |
<%}}else{%>
{{i18n.doc.nodata}}
<%}%>
<% if(rcode.responseRefParameters!=null && rcode.responseRefParameters.length>0){ %>
**{{i18n.offline.schemaDes}}**
<% for( a = 0; a < rcode.responseRefParameters.length; a++) { var ref=rcode.responseRefParameters[a];%>
**<%=ref.name%>**
| {{i18n.doc.responseParamsHeader.name}} | {{i18n.doc.responseParamsHeader.des}} | {{i18n.doc.responseParamsHeader.type}} | schema |
| ------------ | ------------------|--------|----------- |
<% for( b = 0; b < ref.params.length; b++) { var rp=ref.params[b];%>|<%=rp.name%> | <%=rp.description%> |<%=rp.type%> | <%=rp.schemaValue%> |
<%}%>
<%}}%>
<%}%>
<%}%>
<%}else{%>
**{{i18n.doc.responseExample}}**:
```json
<%= path.responseValue %>
```
**{{i18n.doc.responseParams}}**:
<% if(path.responseParameters!=null && path.responseParameters.length>0){ %>
| {{i18n.doc.responseParamsHeader.name}} | {{i18n.doc.responseParamsHeader.des}} | {{i18n.doc.responseParamsHeader.type}} | schema |
| ------------ | -------------------|-------|----------- |
<% for( a = 0; a < path.responseParameters.length; a++) { var param=path.responseParameters[a];%>|<%=param.name%>| <%=param.description%> |<%=param.type%> | <%=param.schemaValue%> |
<%}}else{%>
{{i18n.doc.nodata}}
<%}%>
<% if(path.responseRefParameters!=null && path.responseRefParameters.length>0){ %>
**{{i18n.offline.schemaDes}}**
<% for( a = 0; a < path.responseRefParameters.length; a++) { var ref=path.responseRefParameters[a];%>
**<%=ref.name%>**
| {{i18n.doc.responseParamsHeader.name}} | {{i18n.doc.responseParamsHeader.des}} | {{i18n.doc.responseParamsHeader.type}} | schema |
| ------------ | ------------------|--------|----------- |
<% for( b = 0; b < ref.params.length; b++) { var rp=ref.params[b];%>|<%=rp.name%> | <%=rp.description%> |<%=rp.type%> | <%=rp.schemaValue%> |
<%}%>
<%}}%>
<%}%>
**{{i18n.doc.response}}**:
<% if(path.responseCodes!=null && path.responseCodes.length>0){ %>
| {{i18n.doc.responseHeader.code}} | {{i18n.doc.responseHeader.des}} | schema |
| ------------ | -------------------------------- |---------------------- |
<% for( a = 0; a < path.responseCodes.length; a++) { var param=path.responseCodes[a];%>| <%=param.code%> | <%=param.description%> |<%=param.schema%>|
<%}%>
<%}else{%>
{{i18n.doc.nodata}}
<%}%>
<%}%>
<%}%>
<%}%>
</textarea>
</div>
<div style="float: left;width: 99%;">
<div id="offlineMarkdownShow" class="offlineMarkdownShow"></div>
</div>
</div>
</div>
</div>
</script>
<!--文档说明-->
<script type="text/html" id="contentScript">
<div style="padding: 10px 0;border-bottom: 1px dashed #ccc;height: 50px;vertical-align: middle;line-height: 30px;">
<div style=" float: left;width: 80%;font-size: 20px;">{{summary}}</div>
<div style="float: right;width: 10%;text-align: right;vertical-align: top;"><a id="copyDocHref" style="cursor: pointer;text-decoration: none;
" href="javascript:void(0);">复制文档</a></div>
</div>
<div class="swbu-main" itemprop="articleBody">
<div id="contentDoc"></div>
<!--<textarea rows="10" cols="10" id="docText">-->
<textarea rows="10" cols="10" id="docText" style="display: none;">
**接口地址** `{{showUrl}}`
**请求方式** `{{methodType}}`
**consumes** `{{consumes}}`
**produces** `{{produces}}`
**接口描述** `{{description}}`
**请求参数**
{{ if parameters && parameters.length>0 }}
| 参数名称 | 说明 | 参数类型 | 是否必须 | 类型 | schema |
| ------------ | -------------------------------- |-----------|--------|----|--- |
{{each parameters}}| {{$value.name}} | {{$value.description}} | {{$value.in}} | {{$value.require}} | {{$value.type}} | {{$value.schemaValue}} |
{{/each}}
{{else}}
暂无
{{/if}}
{{ if refparameters && refparameters.length>0 }}
**schema属性说明**
{{each refparameters}}
**{{$value.name}}**
| 参数名称 | 说明 | 参数类型 | 是否必须 | 类型 | schema |
| ------------ | -------------------------------- |-----------|--------|----|--- |{{each $value.params}}
| {{$value.name}} | {{$value.description}} | {{$value.in}} | {{$value.require}} |{{$value.type}} | {{$value.schemaValue}} |{{/each}}
{{/each}}
{{/if}}
**响应状态**
{{ if responseCodes}}
| 状态码 | 说明 | schema |
| ------------ | -------------------------------- |---------------------- |
{{each responseCodes}}| {{$value.code}} | {{$value.description}} |{{$value.schema}} |
{{/each}}
{{else}}
暂无
{{/if}}
**响应参数**
{{ if responseParameters && responseParameters.length>0 }}
| 参数名称 | 说明 | 类型 | schema |
| ------------ | -------------------|-------|----------- |
{{each responseParameters}}| {{$value.name}} |{{$value.description}} | {{$value.type}} | {{$value.schemaValue}} |
{{/each}}
{{else}}
暂无
{{/if}}
{{ if responseRefParameters && responseRefParameters.length>0 }}
**schema属性说明**
{{each responseRefParameters}}
**{{$value.name}}**
| 属性名称 | 说明 | 类型 | schema |
| ------------ | ------------------|--------|----------- |
{{each $value.params}}| {{$value.name}} | {{$value.description}} | {{$value.type}} | {{$value.schemaValue}} |
{{/each}}
{{/each}}
{{/if}}
**响应示例**
{{ if responseBasicType }}
```text
{{responseText}}
```
{{else}}
```json
{{responseValue}}
```
{{/if}}
</textarea>
</div>
</script>
<!--Debug调试tab-->
<script type="text/html" id="DebugScript">
<div style="width: 100%;margin: 0px auto;margin-top: 10px;" id="DebugScriptBasic{{id}}">
<div class="input-group m-bot15">
<span class="input-group-btn">
<button class="btn btn-default btn-info" type="button">{{methodType}}</button>
</span>
<input type="text" id="txtreqUrl{{id}}" data-originalurl="<%=originalUrl%>" class="form-control" value="<%=url%>">
<%if(configurationDebugSupport){%>
<span class="input-group-btn">
<button class="btn btn-default btn-primary btnRequest" id="btnRequest{{id}}" type="button">{{i18n.debug.send}}</button>
</span>
<%}%>
</div>
<%if(methodType!="GET"){%>
<div class="sbu-debug-content-type" id="contentTypeRequest{{id}}">
<input type="hidden" id="DebugContentType{{id}}" value="{{contentType}}"/>
<label class="radio-inline">
<input type="radio" name="optionsRadiosinline{{id}}" value="application/x-www-form-urlencoded;charset=UTF-8" <%if(contentValue=="x-www-form-urlencoded"){%> checked <%}%> > x-www-form-urlencoded
</label>
<label class="radio-inline">
<input type="radio" name="optionsRadiosinline{{id}}" value="multipart/form-data" <%if(contentValue=="form-data"){%> checked <%}%> > form-data
</label>
<label class="radio-inline">
<input type="radio" name="optionsRadiosinline{{id}}" value="raw" <%if(contentValue=="raw"){%> checked <%}%> > raw
</label>
<label class="radio-inline">
<div class="dropdown" id="raw{{id}}" <%if(contentValue!="raw"){%> style="display: none;" <%}%> >
<button type="button" class="sbu-debug-content-type-button" id="dropdownMenu{{id}}"
data-toggle="dropdown">
{{contentShowValue}} <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu{{id}}">
<li role="presentation">
<a role="menuitem" class="option" tabindex="-1" data-value="text/plain" href="javascript:void(0);">Text</a>
</li>
<li role="presentation">
<a role="menuitem" class="option" tabindex="-1" data-value="text/plain" href="javascript:void(0);">Text(text/plain)</a>
</li>
<li role="presentation">
<a role="menuitem" class="option" tabindex="-1" data-value="application/json" href="javascript:void(0);">JSON(application/json)</a>
</li>
<li role="presentation">
<a role="menuitem" class="option" tabindex="-1" data-value="application/javascript" href="javascript:void(0);">Javascript(application/javascript)</a>
</li>
<li role="presentation">
<a role="menuitem" class="option" tabindex="-1" data-value="application/xml" href="javascript:void(0);">XML(application/xml)</a>
</li>
<li role="presentation">
<a role="menuitem" class="option" tabindex="-1" data-value="text/xml" href="javascript:void(0);">XML(text/xml)</a>
</li>
<li role="presentation">
<a role="menuitem" class="option" tabindex="-1" data-value="text/html" href="javascript:void(0);">HTML(text/html)</a>
</li>
</ul>
</div>
</label>
</div>
<%}%>
<div style="margin-top: 15px;">
<div class="swbu-main">
<%if((parameters!=null && parameters.length>0)||(globalParameters!=null && globalParameters.length>0)){ var fileform=false;var tabIndex=0;%>
<% for( a = 0; a < parameters.length ; a++ ) {var param=parameters[a]; %>
<% if(param.schemaValue=="MultipartFile" || param.schemaValue=="file" || param.type=="file"){ fileform=true;}%>
<%}%>
<%if(fileform){%>
<% if(parameterSize>5){%>
<div class="panel-group" id="accordionParameters{{id}}">
<div class="panel panel-default panel-default">
<div class="panel-heading sbu-mul-request-param-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordionParameters{{id}}"
href="#SwaggerAccordingParameter{{id}}">
{{i18n.debug.params}}
</a>
</h4>
</div>
<div id="SwaggerAccordingParameter{{id}}" class="panel-collapse collapse in">
<div class="panel-body">
<% } %>
<form id="uploadForm{{id}}" target="uploadIframe{{id}}" action="<%=url%>" type="" enctype="multipart/form-data" method="{{methodType}}">
<table class="">
<thead>
<tr>
<th style="white-space: nowrap;"><div class="checkbox parameterCheckAll" id="parameterCheckAll{{id}}">
<label style="font-weight: bold;">
<input type="checkbox" checked> {{i18n.debug.tableHeader.selectAll}}
</label>
</div></th>
<th>{{i18n.debug.tableHeader.type}}</th>
<th>{{i18n.debug.tableHeader.name}}</th>
<th>{{i18n.debug.tableHeader.value}}</th>
</tr>
</thead>
<tbody id="paramBody{{id}}">
<!--遍历 是否有全局参数--->
<%if(globalParameters!=null && globalParameters.length>0){ %>
<% for( a = 0; a < globalParameters.length ; a++ ) { tabIndex=tabIndex+1;var param=globalParameters[a]; if(param.show){ %>
<tr data-name="<%=param.name%>" data-in="<%=param.in%>" data-required="<%=param.require%>">
<td width="5%">
<div class="checkbox"><label><input type="checkbox" value="" checked=""></label></div>
</td>
<td width="10%">
<span class="sbu-param-<%=param.in%>"><%=param.in%>(<%=param.type%>)</span>
</td>
<td width="25%">
<input class="form-control p-key" value="<%=param.name%>">
</td>
<td>
<%if(param.schemaValue=="MultipartFile" || param.schemaValue=="file" || param.type=="file" ){%>
<input name="<%=param.name%>" type="file" tabindex="<%=tabIndex%>" class="form-control p-value sbu-debug-input-<%=param.require%>" data-name="<%=param.name%>" placeholder="<%=param.description%>"/>
<%}else{%>
<%if(param.in=="body"){ %>
<textarea class="form-control p-value sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" style="font-size: 16px;" rows="10" data-in="<%=param.in%>" data-apiUrl="<%=url%>"
name="<%=param.name%>" data-name="<%=param.name%>"
placeholder="<%=param.description%>"><%=param.txtValue%></textarea>
<%}else{%>
<input class="form-control p-value sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" name="<%=param.name%>" data-in="<%=param.in%>" data-apiurl="<%=url%>"
data-name="<%=param.name%>" placeholder="<%=param.description%>" value="<%=param.txtValue%>"/>
<%}%>
<%}%>
</td>
</tr>
<%}}%>
<%}%>
<% for( a = 0; a < parameters.length ; a++ ) { tabIndex=tabIndex+1;var param=parameters[a]; var emflag=false;if(param.enum!=null){ emflag=true;} if(param.show){%>
<tr data-name="<%=param.name%>" data-in="<%=param.in%>" data-required="<%=param.require%>" data-type="<%=param.type%>" data-emflag="<%=emflag%>" data-schemavalue="<%=param.schemaValue%>">
<td width="5%">
<div class="checkbox"><label><input type="checkbox" value="" checked=""></label></div>
</td>
<td width="10%">
<span class="sbu-param-<%=param.in%>"><%=param.in%>(<%=param.type%>)</span>
</td>
<td width="25%">
<input class="form-control p-key" value="<%=param.name%>">
</td>
<td>
<%if(param.schemaValue=="MultipartFile" || param.schemaValue=="file" || param.type=="file"){%>
<div class="row">
<div class="col-lg-10">
<input name="<%=param.name%>" type="file" tabindex="<%=tabIndex%>" class="form-control p-value sbu-debug-input-<%=param.require%>" data-name="<%=param.name%>" placeholder="<%=param.description%>" <%if(param.type=="array"){%> multiple <%}%>/>
</div>
<div class="col-lg-2">
</div>
</div>
<%}else{%>
<%if(param.in=="body"){ %>
<textarea class="form-control p-value sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" style="font-size: 16px;" rows="10" data-in="<%=param.in%>" data-apiUrl="<%=url%>"
name="<%=param.name%>" data-name="<%=param.name%>"
placeholder="<%=param.description%>"><%=param.txtValue%></textarea>
<%}else{%>
<% if(param.enum!=null){%>
<select class="form-control p-value p-<%=param.in%> sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" name="<%=param.name%>" data-in="<%=param.in%>" data-apiurl="<%=url%>">
<% for(c=0; c< param.enum.length; c++ ){ var em=param.enum[c];%>
<option value="<%=em%>" <%if(param.txtValue==em){%> selected <%}%> ><%=em%></option>
<%}%>
</select>
<%}else{%>
<input class="form-control p-value p-<%=param.in%> sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" name="<%=param.name%>" data-in="<%=param.in%>" data-apiurl="<%=url%>"
data-name="<%=param.name%>" placeholder="<%=param.description%>" value="<%=param.txtValue%>"/>
<%}%>
<% if(param.type=="array"){%>
<div class="btn-add-div"></div>
<button class="btn btn-default btn-add-string btn-add-string{{id}}" id="btn-add-string{{id}}">增加</button>
<%}%>
<%}%>
<%}%>
</td>
</tr>
<%}}%>
</tbody>
</table>
</form>
<div id="resptab{{id}}" class="tabs-container" >
<iframe name="uploadIframe{{id}}" id="uploadIframe{{id}}" style="border: none;height: 1%;display: none;"></iframe>
</div>
<% if(parameterSize>5){%>
</div>
</div>
</div>
</div>
<%}%>
<%}else{%>
<% if(parameterSize>5){%>
<div class="panel-group" id="accordionParameters{{id}}">
<div class="panel panel-default panel-default">
<div class="panel-heading sbu-mul-request-param-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordionParameters{{id}}"
href="#SwaggerAccordingParameter{{id}}">
{{i18n.debug.params}}
</a>
</h4>
</div>
<div id="SwaggerAccordingParameter{{id}}" class="panel-collapse collapse in">
<div class="panel-body">
<% } %>
<table class="">
<thead>
<tr>
<th style="white-space: nowrap;"><div class="checkbox parameterCheckAll" id="parameterCheckAll{{id}}">
<label style="font-weight: bold;">
<input type="checkbox" checked> {{i18n.debug.tableHeader.selectAll}}
</label>
</div></th>
<th>{{i18n.debug.tableHeader.type}}</th>
<th>{{i18n.debug.tableHeader.name}}</th>
<th>{{i18n.debug.tableHeader.value}}</th>
</tr>
</thead>
<tbody id="paramBody{{id}}">
<!--遍历 是否有全局参数--->
<%if(globalParameters!=null && globalParameters.length>0){ %>
<% for( a = 0; a < globalParameters.length ; a++ ) {tabIndex=tabIndex+1;var param=globalParameters[a];if(param.show){ %>
<tr data-name="<%=param.name%>" data-in="<%=param.in%>" data-required="<%=param.require%>">
<td width="5%">
<div class="checkbox"><label><input type="checkbox" value="" checked=""></label></div>
</td>
<td width="10%">
<span class="sbu-param-<%=param.in%>"><%=param.in%>(<%=param.type%>)</span>
</td>
<td width="25%">
<input class="form-control p-key" value="<%=param.name%>">
</td>
<td>
<%if(param.schemaValue=="MultipartFile" || param.schemaValue=="file" || param.type=="file"){%>
<input name="<%=param.name%>" type="file" tabindex="<%=tabIndex%>" class="form-control p-value sbu-debug-input-<%=param.require%>" data-name="<%=param.name%>" placeholder="<%=param.description%>"/>
<%}else{%>
<%if(param.in=="body"){ %>
<textarea class="form-control p-value sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" style="font-size: 16px;" rows="10" data-in="<%=param.in%>" data-apiUrl="<%=url%>"
name="<%=param.name%>" data-name="<%=param.name%>"
placeholder="<%=param.description%>"><%=param.txtValue%></textarea>
<%}else{%>
<input class="form-control p-value sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" name="<%=param.name%>" data-in="<%=param.in%>" data-apiurl="<%=url%>"
data-name="<%=param.name%>" placeholder="<%=param.description%>" value="<%=param.txtValue%>"/>
<%}%>
<%}%>
</td>
</tr>
<%}%>
<%}%>
<%}%>
<% for( a = 0; a < parameters.length ; a++ ) {tabIndex=tabIndex+1;var param=parameters[a]; var emflag=false;if(param.enum!=null){ emflag=true;} if(param.show){ %>
<tr data-name="<%=param.name%>" data-in="<%=param.in%>" data-type="<%=param.type%>" data-required="<%=param.require%>" data-emflag="<%=emflag%>">
<td width="5%">
<div class="checkbox"><label><input type="checkbox" value="" checked=""></label></div>
</td>
<td width="10%">
<span class="sbu-param-<%=param.in%>"><%=param.in%>(<%=param.type%>)</span>
</td>
<td width="25%">
<input class="form-control p-key" value="<%=param.name%>">
</td>
<td>
<%if(param.in=="body"||param.in=="formdata"||param.in=="formData"){ %>
<%if(param.schemaValue=="MultipartFile" || param.schemaValue=="file" || param.type=="file"){%>
<input name="<%=param.name%>" type="file" tabindex="<%=tabIndex%>" class="form-control p-value sbu-debug-input-<%=param.require%>" data-name="<%=param.name%>" placeholder="<%=param.description%>"/>
<%}else {%>
<%if(param.in=="body"){ %>
<textarea class="form-control p-value sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" style="font-size: 16px;" rows="10" data-in="<%=param.in%>" data-apiUrl="<%=url%>"
name="<%=param.name%>" data-name="<%=param.name%>"
placeholder="<%=param.description%>"><%=param.txtValue%></textarea>
<%}else {%>
<input class="form-control p-value p-<%=param.in%> sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" name="<%=param.name%>" data-in="<%=param.in%>" data-apiurl="<%=url%>"
data-name="<%=param.name%>" placeholder="<%=param.description%>" value="<%=param.txtValue%>"/>
<% if(param.type=="array"){%>
<div class="btn-add-div"></div>
<button class="btn btn-default btn-add-string btn-add-string{{id}}" id="btn-add-string{{id}}">增加</button>
<%}%>
<%}%>
<%}%>
<%}else{%>
<% if(param.enum!=null){%>
<select class="form-control p-value p-<%=param.in%> sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" name="<%=param.name%>" data-in="<%=param.in%>" data-apiurl="<%=url%>">
<% for(c=0; c< param.enum.length; c++ ){ var em=param.enum[c];%>
<option value="<%=em%>" <%if(param.txtValue==em){%> selected <%}%> ><%=em%></option>
<%}%>
</select>
<%}else{%>
<input class="form-control p-value p-<%=param.in%> sbu-debug-input-<%=param.require%>" tabindex="<%=tabIndex%>" name="<%=param.name%>" data-in="<%=param.in%>" data-apiurl="<%=url%>"
data-name="<%=param.name%>" placeholder="<%=param.description%>" value="<%=param.txtValue%>"/>
<% if(param.type=="array"){%>
<div class="btn-add-div"></div>
<button class="btn btn-default btn-add-string btn-add-string{{id}}" id="btn-add-string{{id}}">增加</button>
<%}%>
<%}%>
<%}%>
</td>
</tr>
<%}}%>
</tbody>
</table>
<% if(parameterSize>5){%>
</div>
</div>
</div>
</div>
<%}%>
<%}%>
<%}%>
</div>
</div>
</div>
<div class="responsebody{{id}}" id="responsebody{{id}}" style="display: none;">
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
<ul class="layui-tab-title" style="padding: 0px;width: 98%;margin-left: 10px;">
<li class="layui-this">{{i18n.debug.response.content}}</li>
<li>Raw</li>
<li>Headers</li>
<li>Curl</li>
</ul>
<div class="layui-tab-content" id="layuiresponsecontentmain{{id}}" style="height: 100px;
margin-top: 0px;left: 0px;position: absolute;width: 98%;margin-left: 10px;">
<div class="layui-tab-item layui-show" id="respcontent{{id}}"></div>
<div class="layui-tab-item" id="respraw{{id}}"></div>
<div class="layui-tab-item" id="respheaders{{id}}"></div>
<div class="layui-tab-item" id="respcurl{{id}}"></div>
</div>
<div style="right: 30px;position: absolute;margin-top: 8px;z-index: 9999;" id="responsestatus{{id}}"><span class="debug-span-label">响应码:</span><span class="debug-span-value">200 OK</span> &nbsp;&nbsp;&nbsp;&nbsp;<span class="debug-span-label">耗时:</span><span class="debug-span-value">161 ms</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="debug-span-label">大小:</span><span class="debug-span-value">120 b</span></div>
</div>
</div>
</script>
<!--全局参数-->
<script type="text/html" id="GlobalParamScript">
<div style="width:99%;margin:0px auto;margin-top: 10px;">
<div class="alert alert-info" role="alert">{{# i18n.global.note }}</div>
<div class="input-inline" style="margin-bottom:10px;">
<button class="btn btn-primary" type="button" id="btnAddParam" >{{i18n.global.add}}</button>
</div>
<div style="margin-top: 15px;">
<div class="swbu-main">
<table class="" id="globalTable">
<thead>
<tr>
<th>{{i18n.global.tableHeader.name}}</th>
<th>{{i18n.global.tableHeader.value}}</th>
<th>{{i18n.global.tableHeader.type}}</th>
<th>{{i18n.global.tableHeader.operator}}</th>
</tr>
</thead>
<tbody id="globalTabBody">
<%if(globalParameters!=null && globalParameters.length>0){ %>
<% for( a = 0; a < globalParameters.length ; a++ ) {var param=globalParameters[a]; %>
<tr>
<td><input class="form-control p-key" value="<%=param.name%>" data-old='<%=param.name%>'></td>
<td><input class="form-control p-key" value="<%=param.value%>"></td>
<td><select class='form-control'><option value='header'<%if(param.in=="header"){%> selected <%}%> >header</option><option value='query' <%if(param.in=="query"){%> selected <%}%>>query</option></select></td>
<td><button class="btn btn-circle btn-info btn-small btn-save" type="button">{{i18n.global.save}}</button>&nbsp;&nbsp;<button class="btn btn-circle btn-danger btn-small btn-cancel" type="button">{{i18n.global.delete}}</button></td>
</tr>
<%}}%>
</tbody>
</table>
</div>
</div>
</div>
</script>
<!--动态tab-->
<script type="text/html" id="BootstrapDynaTab">
<div class='tabs-x tabs-left tabs-krajee' id="tabsContent{{id}}" >
<ul id="myTab-tabs-left" class="nav nav-tabs" role="tablist">
<li class="active"><a href="#HomeDoc{{id}}" role="tab" data-toggle="tab"><i class="iconfont icon-ic_description"></i>{{i18n.doc.title}}</a></li>
<li><a href="#DebugDoc{{id}}" role="tab-kv" data-toggle="tab"><i class="iconfont icon-debug"></i>{{i18n.debug.title}}</a></li>
</ul>
<div id="myTabContent-tabs-left" class="tab-content">
<div class="tab-pane fade in active" id="HomeDoc{{id}}" >
<div>
<input id="copyDocHashInput{{id}}" type="hidden" value="{{hashCollections[0]}}"/>
</div>
<div style="padding: 10px 0;border-bottom: 1px dashed #ccc;height: 50px;vertical-align: middle;line-height: 30px;">
<div style=" float: left;width: 80%;font-size: 20px;">{{summary}}</div>
<div style="float: right;width: 10%;text-align: right;vertical-align: top;"><a id="copyDocHash{{id}}" style="cursor: pointer;text-decoration: none;
" href="javascript:void(0);">{{i18n.doc.copyHash}}</a></div>
<div style="float: right;width: 10%;text-align: right;vertical-align: top;"><a id="copyDocHref{{id}}" style="cursor: pointer;text-decoration: none;
" href="javascript:void(0);">{{i18n.doc.copy}}</a></div>
</div>
<div class="swbu-main" itemprop="articleBody">
<div id="contentDoc{{id}}">
<p><span class="sbu-api-title">{{i18n.doc.url}}</span> <code style="background-color: transparent;">{{showUrl}}</code></p>
<p><span class="sbu-api-title">{{i18n.doc.method}}</span> <code style="background-color: transparent;">{{methodType}}</code></p>
<p><span class="sbu-api-title">consumes</span> <code style="background-color: transparent;">{{consumes}}</code></p>
<p><span class="sbu-api-title">produces</span> <code style="background-color: transparent;">{{produces}}</code></p>
{{ if author }}
<p><span class="sbu-api-title">{{i18n.doc.author}}</span> <code style="background-color: transparent;">{{author}}</code></p>
{{ /if }}
<p><span class="sbu-api-title">{{i18n.doc.des}}</span> <code style="background-color: transparent;">{{@ description}}</code></p>
{{ if requestValue }}
<p><strong>{{i18n.doc.requestExample}}</strong></p>
<div id="editorRequestSample{{id}}" style="width: auto;bottom: 10px;">{{ requestValue }}</div>
{{ /if }}
<p><strong>{{i18n.doc.params}}</strong></p>
<table id="requestParameter{{id}}" class="layui-table" lay-filter="requestParameter{{id}}">
</table>
<p><strong>{{i18n.doc.response}}</strong></p>
<table class="layui-table">
<thead>
<tr>
<th>{{i18n.doc.responseHeader.code}}</th>
<th>{{i18n.doc.responseHeader.des}}</th>
<th>schema</th>
</tr>
</thead>
<tbody>
{{ if responseCodes}}
{{each responseCodes}}
<tr>
<td>{{$value.code}}</td>
<td>{{@ $value.description}}</td>
<td>{{$value.schema}}</td>
</tr>
{{/each}}
{{else}}
<tr>
<td colspan="3" style="text-align: center;">{{i18n.doc.nodata}}</td>
</tr>
{{/if}}
</tbody>
</table>
{{if multipartResponseSchema }}
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
<ul class="layui-tab-title" style="padding: 0px;margin-left: 10px;">
{{each responseCodes}}
{{if $value.schema!=null}}
<li {{if $index==0}} class="layui-this" {{/if}} >{{$value.code}}</li>
{{/if}}
{{/each}}
</ul>
<div class="layui-tab-content" style="height: 100%;margin-top: 0px;left: 0px;position: absolute;width: 98%;margin-left: 10px;">
{{each responseCodes}}
{{if $value.schema!=null}}
{{if $index==0 }}
<div class="layui-tab-item layui-show">
{{else}}
<div class="layui-tab-item">
{{/if}}
<div>
{{if $value.responseHeaderParameters }}
<p><strong>{{$value.code}}-{{i18n.doc.responseHeaderParams}}</strong></p>
<table id="responseHeaderParameter{{id}}-{{$value.code}}" class="layui-table" lay-filter="responseHeaderParameter{{id}}-{{$value.code}}"></table>
{{/if}}
<p><strong>{{$value.code}}-{{i18n.doc.responseParams}}</strong></p>
<table id="responseParameter{{id}}-{{$value.code}}" class="layui-table" lay-filter="responseParameter{{id}}-{{$value.code}}">
</table>
<p><strong>{{$value.code}}-{{i18n.doc.responseExample}}</strong></p>
<div id="editorSample{{id}}-{{$value.code}}" style="width: auto;bottom: 10px;">{{ if $value.responseBasicType }}{{$value.responseText}}{{else}}{{$value.responseValue}}{{/if}}</div>
</div>
</div>
{{/if}}
{{/each}}
</div>
</div>
{{else}}
{{if responseHeaderParameters }}
<p><strong>{{i18n.doc.responseHeaderParams}}</strong></p>
<table id="responseHeaderParameter{{id}}" class="layui-table" lay-filter="responseHeaderParameter{{id}}"></table>
{{/if}}
<p><strong>{{i18n.doc.responseParams}}</strong></p>
<table id="responseParameter{{id}}" class="layui-table" lay-filter="responseParameter{{id}}">
</table>
<p><strong>{{i18n.doc.responseExample}}</strong></p>
<div id="editorSample{{id}}" style="width: auto;bottom: 10px;">{{ if responseBasicType }}{{responseText}}{{else}}{{responseValue}}{{/if}}</div>
{{/if}}
</div>
<textarea rows="10" cols="10" id="docText{{id}}" style="display: none;">
## {{ summary }}
**{{i18n.doc.url}}** `{{showUrl}}`
**{{i18n.doc.method}}** `{{methodType}}`
**consumes** `{{consumes}}`
**produces** `{{produces}}`
**{{i18n.doc.des}}** `{{description}}`
**{{i18n.doc.params}}**
{{ if parameters && parameters.length>0 }}
| {{i18n.doc.paramsHeader.name}} | {{i18n.doc.paramsHeader.des}} | {{i18n.doc.paramsHeader.requestType}} | {{i18n.doc.paramsHeader.require}} | {{i18n.doc.paramsHeader.type}} | schema |
| ------------ | -------------------------------- |-----------|--------|----|--- |
{{each parameters}}| {{$value.name}} | {{$value.description}} | {{$value.in}} | {{$value.require}} | {{$value.type}} | {{$value.schemaValue}} |
{{/each}}
{{else}}
{{i18n.doc.nodata}}
{{/if}}
{{ if refparameters && refparameters.length>0 }}
**{{i18n.offline.schemaDes}}**
{{each refparameters}}
**{{$value.name}}**
| {{i18n.doc.paramsHeader.name}} | {{i18n.doc.paramsHeader.des}} | {{i18n.doc.paramsHeader.requestType}} | {{i18n.doc.paramsHeader.require}} | {{i18n.doc.paramsHeader.type}} | schema |
| ------------ | -------------------------------- |-----------|--------|----|--- |{{each $value.params}}
| {{$value.name}} | {{$value.description}} | {{$value.in}} | {{$value.require}} |{{$value.type}} | {{$value.schemaValue}} |{{/each}}
{{/each}}
{{/if}}
**{{i18n.doc.response}}**
{{ if responseCodes}}
| {{i18n.doc.responseHeader.code}} | {{i18n.doc.responseHeader.des}} | schema |
| ------------ | -------------------------------- |---------------------- |
{{each responseCodes}}| {{$value.code}} | {{$value.description}} |{{$value.schema}} |
{{/each}}
{{else}}
{{i18n.doc.nodata}}
{{/if}}
**{{i18n.doc.responseParams}}**
{{ if responseParameters && responseParameters.length>0 }}
| {{i18n.doc.responseParamsHeader.name}} | {{i18n.doc.responseParamsHeader.des}} | {{i18n.doc.responseParamsHeader.type}} | schema |
| ------------ | -------------------|-------|----------- |
{{each responseParameters}}| {{$value.name}} |{{$value.description}} | {{$value.type}} | {{$value.schemaValue}} |
{{/each}}
{{else}}
{{i18n.doc.nodata}}
{{/if}}
{{ if responseRefParameters && responseRefParameters.length>0 }}
**{{i18n.offline.schemaDes}}**
{{each responseRefParameters}}
**{{$value.name}}**
| {{i18n.doc.responseParamsHeader.name}} | {{i18n.doc.responseParamsHeader.des}} | {{i18n.doc.responseParamsHeader.type}} | schema |
| ------------ | ------------------|--------|----------- |
{{each $value.params}}| {{$value.name}} | {{$value.description}} | {{$value.type}} | {{$value.schemaValue}} |
{{/each}}
{{/each}}
{{/if}}
**{{i18n.doc.responseExample}}**
{{ if responseBasicType }}
```text
{{responseText}}
```
{{else}}
```json
{{responseValue}}
```
{{/if}}
</textarea>
</div>
</div>
<div class="tab-pane fade" id="DebugDoc{{id}}"><p>在线调试</p>
</div>
</div>
</div>
</script>
<!--SwaggerBootstrapUi简介-->
<script type="text/html" id="SwaggerBootstrapUiIntroScript">
<div id="myTab" class="tabs-container" style="width:99%;margin:0px auto;">
<div style="margin-top: 15px;">
<div class="swbu-main" itemprop="sbuarticleBody">
<div id="sbuDescriptionDoc" style="width: 98%;margin: 0px auto;">
<table>
<tr>
<td colspan="2" style="text-align: center;">{{title}}</td>
</tr>
<tr>
<td>{{ i18n.home.des}}</td>
<td>{{@ description}}</td>
</tr>
<tr>
<td>{{ i18n.home.author}}</td>
<td>{{contact}}</td>
</tr>
<tr>
<td>{{ i18n.home.version}}</td>
<td>{{version}}</td>
</tr>
<tr>
<td>host</td>
<td>{{host}}</td>
</tr>
<tr>
<td>basePath</td>
<td>{{basePath}}</td>
</tr>
<tr>
<td>{{ i18n.home.serviceUrl}}</td>
<td>{{termsOfService}}</td>
</tr>
<tr>
<td>{{ i18n.home.groupName}}</td>
<td>{{name}}</td>
</tr>
<tr>
<td>{{ i18n.home.groupUrl}}</td>
<td>{{url}}</td>
</tr>
<tr>
<td>{{ i18n.home.groupLocation}}</td>
<td>{{location}}</td>
</tr>
<tr>
<td style="vertical-align: top;">{{ i18n.home.apiCount}}</td>
<td>
<table>
<%if(pathArrs!=null && pathArrs.length>0){ %>
<% for( a = 0; a < pathArrs.length ; a++ ) {var param=pathArrs[a]; %>
<tr>
<td style="width: 10%;"><%=param.method%></td>
<td><span class="label label-primary"><%=param.count%></span></td>
</tr>
<%}}%>
</table>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</script>
<!---Swagger Models 自定义说明-->
<script type="text/html" id="SwaggerBootstrapUiModelsDescriptionTpl">
{{d.description}}
{{# if(d.readOnly){ }}
<span style="color: rgb(107, 107, 107);"> readOnly:true</span>
{{# } }}
{{# if(d.example!=""&&d.example!=null){ }}
<span style="color: rgb(107, 107, 107);">example:{{d.example}}</span>
{{# } }}
</script>
<!---Swagger Models-->
<script type="text/html" id="SwaggerBootstrapUiModelsScript">
<div style="width:90%;margin:0px auto;margin-top: 30px;">
<div class="panel-group" id="accordion{{id}}">
<%if(models!=null && models.length>0){ %>
<% for( c = 0; c < models.length ; c++ ) { var model=models[c]; var mclass=model.modelClass(); %>
<div class="panel panel-default <%=mclass %>">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion{{id}}"
href="#SwaggerAccordingModel<%=model.id%>">
<%=model.name%>
</a>
</h4>
</div>
<div id="SwaggerAccordingModel<%=model.id%>" class="panel-collapse collapse in">
<div class="panel-body">
<table id="SwaggerModelTable<%=model.id%>" class="layui-table" lay-filter="SwaggerModelTable<%=model.id%>"></table>
</div>
</div>
</div>
<%}%>
<%}else{%>
<h3>{{i18n.swaggerModel.nodata}}</h3>
<%}%>
</div>
</div>
</script>
<!--Auth-->
<script type="text/html" id="SwaggerBootstrapUiSecurityScript">
<div style="width:99%;margin:0px auto;">
<div style="margin-top: 15px;">
<div class="swbu-main">
<button class="btn btn-circle btn-small btn-primary btn-reset-auth" type="button">{{i18n.auth.cancel}}</button>
<table class="" >
<thead>
<tr>
<th>{{i18n.auth.tableHeader.key}}</th>
<th>{{i18n.auth.tableHeader.name}}</th>
<th>{{i18n.auth.tableHeader.in}}</th>
<th>{{i18n.auth.tableHeader.value}}</th>
<th>{{i18n.auth.tableHeader.operator}}</th>
</tr>
</thead>
<tbody>
<%if(securityArrs!=null && securityArrs.length>0){ %>
<% for( a = 0; a < securityArrs.length ; a++ ) {var param=securityArrs[a]; %>
<tr data-key="<%=param.key%>" data-name="<%=param.name%>">
<td><%=param.key%>(<%=param.type%>)</td>
<td><%=param.name%></td>
<td><%=param.in%></td>
<td><input class="form-control p-key" value="<%=param.value%>"></td>
<td><button class="btn btn-circle btn-info btn-small btn-save" type="button">{{i18n.auth.save}}</button></td>
</tr>
<%}}%>
</tbody>
</table>
</div>
</div>
</div>
</script>
<!--settings个性化配置页-->
<script type="text/html" id="SwaggerBootstrapUiSettingsScript">
<div style="margin: 0px auto;width: 80%;margin-top: 30px;">
<div class="panel panel-default">
<div class="panel-heading"><h5>{{i18n.settings.title}}</h5></div>
<div class="panel-body" style="height: 310px;" id="SwaggerBootstrapUiSettings">
<div class="form-group">
<div class="col-lg-10">
<label class="radio-inline">
<input type="radio" name="language" value="zh" <%if(language=="zh"){ %> checked <%}%> > 中文
</label>
<label class="radio-inline">
<input type="radio" name="language" value="en" <%if(language=="en"){ %> checked <%}%> > English
</label>
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox" name="enableRequestCache" <%if(enableRequestCache){ %> checked="checked" <%}%> />
{{i18n.settings.openCache}}
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox" name="showApi" <%if(showApiUrl){ %> checked="checked" <%}%> />
{{i18n.settings.showApi}}
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox" name="showTagStatus" <%if(showTagStatus){ %> checked="checked" <%}%> />
{{i18n.settings.tagDes}}
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox" name="enableFilterMultipartApis" <%if(enableFilterMultipartApis){ %> checked="checked" <%}%> />
{{i18n.settings.apiFilter}}
<select class="form-control" name="enableFilterMultipartApiMethodType" style="display: inline;width: 25%;height: 30px;line-height: 30px;">
<option value="GET" <%if(enableFilterMultipartApiMethodType=="GET"){ %> selected <%}%>>GET</option>
<option value="POST" <%if(enableFilterMultipartApiMethodType=="POST"){ %> selected <%}%>>POST</option>
<option value="PUT" <%if(enableFilterMultipartApiMethodType=="PUT"){ %> selected <%}%>>PUT</option>
<option value="DELETE" <%if(enableFilterMultipartApiMethodType=="DELETE"){ %> selected <%}%>>DELETE</option>
<option value="PATCH" <%if(enableFilterMultipartApiMethodType=="PATCH"){ %> selected <%}%>>PATCH</option>
<option value="OPTIONS" <%if(enableFilterMultipartApiMethodType=="OPTIONS"){ %> selected <%}%>>OPTIONS</option>
<option value="HEAD" <%if(enableFilterMultipartApiMethodType=="HEAD"){ %> selected <%}%>>HEAD</option>
</select>
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox" name="enableCacheOpenApiTable" <%if(enableCacheOpenApiTable){ %> checked="checked" <%}%> />
{{i18n.settings.openCacheApi}}
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox" name="enableSwaggerBootstrapUi" <%if(enableSwaggerBootstrapUi){ %> checked="checked" <%}%> />
{{i18n.settings.plus}}
</label>
</div>
</div>
</div>
<div class="form-group" style="margin-top: 5px;">
<div class="col-lg-10">
<button class="btn btn-primary" type="button" id="btnSaveSettings">{{i18n.settings.save}}</button>
</div>
</div>
</div>
</div>
</div>
<div style="margin: 0px auto;width: 80%;margin-top: 5px;">
<div class="panel panel-default">
<div class="panel-heading">{{@ i18n.settings.fastTitle}}</div>
<div class="panel-body" style="height: 65px;" >
<div class="col-lg-12" style="margin-top:10px;">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for..." id="useSettingsCopyOnUrl" readonly="readonly">
<span class="input-group-btn">
<button class="btn btn-default" type="button" id="btnCopyUserSettingsUrl">{{i18n.settings.copy}}</button>
</span>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/javascript" src="webjars/bycdao-ui/cdao/swaggerbootstrapui.js?v=1.9.6"></script>
<script type="text/javascript">
$(function () {
/***
* 拖动事件
* @type {boolean}
*/
var isResizing = false,lastDownX = 0;
var container = $('#container'),left = $('.left'),right = $('.right'),handle = $('#handle'),tabc=$("#sbu-dynamic-tab");
//设置rightwidth
right.css("width",container.width()-left.width()-8);
tabc.css("width",container.width()-left.width()-8);
handle.on('mousedown',function(e) {
isResizing = true;
lastDownX = e.clientX;
});
$(document).on('mousemove',function(e) {
// we don't want to do anything if we aren't resizing.
if (!isResizing) return;
var offsetRight = container.width() - (e.clientX - container.offset().left-8);
left.css("width",e.clientX)
right.css('width', offsetRight-20);
right.css("right","1px")
handle.css("left",e.clientX)
}).on('mouseup', function (e) {
// stop resizing
isResizing = false;
});
//菜单点击事件
$("#leftCheck").on("click",function (e) {
e.preventDefault();
var that=$(this);
var display=that.data("display");
if(display=="0"){
that.removeClass("icon-zuosuojin1");
that.addClass("icon-yousuojin1");
//隐藏
that.data("display","1");
//分组
$("#leftGroup").hide("slow")
//菜单
$("#leftMenu").hide();
//handle
$("#handle").hide();
var allwidth=$('#container').width();
right.css("width",allwidth)
}else{
that.addClass("icon-zuosuojin1");
that.removeClass("icon-yousuojin1");
var width=container.width();
var leftWidth=left.width();
var handleWidth=handle.width();
var wid=width-leftWidth-handleWidth;
//显示
that.data("display","0");
//分组
$("#leftGroup").show("slow")
//菜单
$("#leftMenu").show("slow");
//handle
$("#handle").show("slow");
right.css("width",wid);
right.css("right","0");
}
})
layui.config({
base: 'webjars/bycdao-ui/ext/'
}).use([ 'sbuadmin', 'element'], function () {
var $ = layui.$;
var admin=layui.sbuadmin;
admin.run(ace);
});
})
</script>
</body>
</html>
JavaScript
1
https://gitee.com/romber123/swagger-UI.git
git@gitee.com:romber123/swagger-UI.git
romber123
swagger-UI
swagger-UI
master

搜索帮助