-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.html
70 lines (66 loc) · 3.21 KB
/
api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<title>api文档</title>
<meta charset="UTF-8" />
<link href='./static/swagger/css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='./static/swagger/css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='./static/swagger/css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='./static/swagger/css/reset.css' media='print' rel='stylesheet' type='text/css'/>
<link href='./static/swagger/css/screen.css' media='print' rel='stylesheet' type='text/css'/>
<script type="text/javascript" src="./static/swagger/lib/shred.bundle.js"></script>
<script src='./static/swagger/lib/jquery-1.8.0.min.js' type='text/javascript'></script>
<script src='./static/swagger/lib/jquery.slideto.min.js' type='text/javascript'></script>
<script src='./static/swagger/lib/jquery.wiggle.min.js' type='text/javascript'></script>
<script src='./static/swagger/lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
<script src='./static/swagger/lib/handlebars-2.0.0.js' type='text/javascript'></script>
<script src='./static/swagger/lib/underscore-min.js' type='text/javascript'></script>
<script src='./static/swagger/lib/backbone-min.js' type='text/javascript'></script>
<script src='./static/swagger/lib/swagger-client.js' type='text/javascript'></script>
<script src='./static/swagger/swagger-ui.js' type='text/javascript'></script>
<script src='./static/swagger/lib/highlight.7.3.pack.js' type='text/javascript'></script>
<script src='./static/swagger/lib/marked.js' type='text/javascript'></script>
<!-- enabling this will enable oauth2 implicit scope support -->
<script src='./static/swagger/lib/swagger-oauth.js' type='text/javascript'></script>
<script type="text/javascript">
$(function(){
var ctx = "/hd_ydym";
window.swaggerUi = new SwaggerUi({
url: ctx+"/api-docs",
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
onComplete: function(swaggerApi, swaggerUi){
$('pre code').each(function(i, e) {
hljs.highlightBlock(e);
});
},
onFailure: function(data) {
log("Unable to Load SwaggerUI");
},
docExpansion: "none",
sorter : "alpha"
});
function addApiKeyAuthorization() {
var key = $('#input_apiKey')[0].value;
log("key: " + key);
if(key && key.trim() != "") {
log("added key " + key);
window.authorizations.add("api_key", new ApiKeyAuthorization("api_key", key, "query"));
}
}
$('#input_apiKey').change(function() {
addApiKeyAuthorization();
});
window.swaggerUi.load();
var str = "";
str += "<a href='"+ctx+"/swaggerWebController/apiConstanceList' target='_blank'>状态码列表</a><br><br>";
str += "<a href='"+ctx+"/swaggerWebController/apiSignForm' target='_blank'>签名工具</a>";
$("#message-bar").before(str);
});
</script>
</head>
<body class="swagger-section">
<div id="message-bar" class="swagger-ui-wrap"> </div>
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
</body>
</html>