forked from swagger-api/swagger-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
138 lines (124 loc) · 6.19 KB
/
index.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<title>Swagger UI</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="https://cdn.wdesk.com/web-skin/1.13.0/ico/favicon.ico">
<!--
App Icons (Android / iOS)
-->
<!-- For iPad w/ high-resolution Retina display on iOS ≥ 7: -->
<link rel="apple-touch-icon" sizes="152x152" href="https://cdn.wdesk.com/web-skin/1.13.0/ico/apple-touch-icon-152.png">
<!-- For iPad w/ high-resolution Retina display on iOS ≤ 6: -->
<link rel="apple-touch-icon" sizes="144x144" href="https://cdn.wdesk.com/web-skin/1.13.0/ico/apple-touch-icon-144.png">
<!-- For iPhone w/ high-resolution Retina display on iOS ≥ 7: -->
<link rel="apple-touch-icon" sizes="120x120" href="https://cdn.wdesk.com/web-skin/1.13.0/ico/apple-touch-icon-120.png">
<!-- For iPhone w/ high-resolution Retina display on iOS ≤ 6: -->
<link rel="apple-touch-icon" sizes="114x114" href="https://cdn.wdesk.com/web-skin/1.13.0/ico/apple-touch-icon-114.png">
<!-- For the iPad mini & the first/second-generation iPad on iOS ≥ 7: -->
<link rel="apple-touch-icon" sizes="76x76" href="https://cdn.wdesk.com/web-skin/1.13.0/ico/apple-touch-icon-76.png">
<!-- For the iPad mini & the first/second-generation iPad on iOS ≤ 6: -->
<link rel="apple-touch-icon" sizes="72x72" href="https://cdn.wdesk.com/web-skin/1.13.0/ico/apple-touch-icon-72.png">
<!-- For non-Retina iPhone, iPod Touch, & Android 2.1+ devices: -->
<link rel="apple-touch-icon" href="https://cdn.wdesk.com/web-skin/1.13.0/ico/apple-touch-icon-57.png">
<link href="https://cdn.wdesk.com/web-skin/1.13.0/css/web-skin.min.css" rel="stylesheet" media="screen">
<link href="https://cdn.wdesk.com/web-skin/1.13.0/css/docs.min.css" rel="stylesheet" media="screen">
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
<link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
<script src="https://cdn.wdesk.com/web-skin/1.13.0/js/core/wf-js-vendor/dist/wf-vendor.min.js"></script>
<!--[if !IE]> -->
<script src="https://cdn.wdesk.com/web-skin/1.13.0/js/core/libs.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="https://cdn.wdesk.com/web-skin/1.13.0/js/core/libs_ie.min.js"></script>
<![endif]-->
<script src="https://cdn.wdesk.com/web-skin/1.13.0/js/web-skin.min.js"></script>
<script src='lib/object-assign-pollyfill.js' type='text/javascript'></script>
<script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
<script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
<script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
<script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
<script src='lib/handlebars-4.0.5.js' type='text/javascript'></script>
<script src='lib/lodash.min.js' type='text/javascript'></script>
<script src='lib/backbone-min.js' type='text/javascript'></script>
<script src='swagger-ui.js' type='text/javascript'></script>
<script src='lib/highlight.9.1.0.pack.js' type='text/javascript'></script>
<script src='lib/highlight.9.1.0.pack_extended.js' type='text/javascript'></script>
<script src='lib/jsoneditor.min.js' type='text/javascript'></script>
<script src='lib/marked.js' type='text/javascript'></script>
<script src='lib/swagger-oauth.js' type='text/javascript'></script>
<!-- Some basic translations -->
<!-- <script src='lang/translator.js' type='text/javascript'></script> -->
<!-- <script src='lang/ru.js' type='text/javascript'></script> -->
<!-- <script src='lang/en.js' type='text/javascript'></script> -->
<script type="text/javascript">
$(function () {
var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "http://developers.wk-dev.wdesk.org.s3-website-us-east-1.amazonaws.com/swagger-v1beta1.json";
}
hljs.configure({
highlightSizeThreshold: 5000
});
// Pre load translate...
if(window.SwaggerTranslator) {
window.SwaggerTranslator.translate();
}
window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function(swaggerApi, swaggerUi){
if(typeof initOAuth == "function") {
initOAuth({
clientId: "your-client-id",
clientSecret: "your-client-secret-if-required",
realm: "your-realms",
appName: "your-app-name",
scopeSeparator: " ",
additionalQueryStringParams: {}
});
}
if(window.SwaggerTranslator) {
window.SwaggerTranslator.translate();
}
},
onFailure: function(data) {
log("Unable to Load SwaggerUI");
},
docExpansion: "none",
jsonEditor: false,
defaultModelRendering: 'schema',
showRequestHeaders: false,
showOperationIds: false
});
window.swaggerUi.load();
function log() {
if ('console' in window) {
console.log.apply(console, arguments);
}
}
});
</script>
</head>
<body class="swagger-section">
<div id='header'>
<div class="swagger-ui-wrap">
<a id="logo" href="http://swagger.io"><img class="logo__img" alt="swagger" height="30" width="30" src="images/logo_small.png" /><span class="logo__title">swagger</span></a>
<form id='api_selector'>
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
</form>
</div>
</div>
<div id="message-bar" class="swagger-ui-wrap" data-sw-translate> </div>
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
</body>
</html>