|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+<head>
|
|
|
4
|
+ <title>Swagger UI</title>
|
|
|
5
|
+ <link rel="icon" type="image/png" href="images/favicon-32x32.png" sizes="32x32" />
|
|
|
6
|
+ <link rel="icon" type="image/png" href="images/favicon-16x16.png" sizes="16x16" />
|
|
|
7
|
+ <link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
|
|
|
8
|
+ <link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
|
|
|
9
|
+ <link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
|
|
10
|
+ <link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
|
|
|
11
|
+ <link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
|
|
|
12
|
+ <script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
|
|
|
13
|
+ <script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
|
|
|
14
|
+ <script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
|
|
|
15
|
+ <script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
|
|
|
16
|
+ <script src='lib/handlebars-2.0.0.js' type='text/javascript'></script>
|
|
|
17
|
+ <script src='lib/underscore-min.js' type='text/javascript'></script>
|
|
|
18
|
+ <script src='lib/backbone-min.js' type='text/javascript'></script>
|
|
|
19
|
+ <script src='swagger-ui.js' type='text/javascript'></script>
|
|
|
20
|
+ <script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
|
|
|
21
|
+ <script src='lib/marked.js' type='text/javascript'></script>
|
|
|
22
|
+ <script src='lib/swagger-oauth.js' type='text/javascript'></script>
|
|
|
23
|
+
|
|
|
24
|
+ <script type="text/javascript">
|
|
|
25
|
+ $(function () {
|
|
|
26
|
+ var url = window.location.search.match(/url=([^&]+)/);
|
|
|
27
|
+ if (url && url.length > 1) {
|
|
|
28
|
+ url = decodeURIComponent(url[1]);
|
|
|
29
|
+ } else {
|
|
|
30
|
+ url = "https://139.129.166.85:8090/api-docs";
|
|
|
31
|
+ }
|
|
|
32
|
+ window.swaggerUi = new SwaggerUi({
|
|
|
33
|
+ url: url,
|
|
|
34
|
+ dom_id: "swagger-ui-container",
|
|
|
35
|
+ supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
|
|
|
36
|
+ onComplete: function(swaggerApi, swaggerUi){
|
|
|
37
|
+ if(typeof initOAuth == "function") {
|
|
|
38
|
+ initOAuth({
|
|
|
39
|
+ clientId: "your-client-id",
|
|
|
40
|
+ realm: "your-realms",
|
|
|
41
|
+ appName: "your-app-name"
|
|
|
42
|
+ });
|
|
|
43
|
+ }
|
|
|
44
|
+
|
|
|
45
|
+ $('pre code').each(function(i, e) {
|
|
|
46
|
+ hljs.highlightBlock(e)
|
|
|
47
|
+ });
|
|
|
48
|
+
|
|
|
49
|
+ addApiKeyAuthorization();
|
|
|
50
|
+ },
|
|
|
51
|
+ onFailure: function(data) {
|
|
|
52
|
+ log("Unable to Load SwaggerUI");
|
|
|
53
|
+ },
|
|
|
54
|
+ docExpansion: "none",
|
|
|
55
|
+ apisSorter: "alpha",
|
|
|
56
|
+ showRequestHeaders: false
|
|
|
57
|
+ });
|
|
|
58
|
+
|
|
|
59
|
+ function addApiKeyAuthorization(){
|
|
|
60
|
+ var key = encodeURIComponent($('#input_apiKey')[0].value);
|
|
|
61
|
+ if(key && key.trim() != "") {
|
|
|
62
|
+ var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("api_key", key, "query");
|
|
|
63
|
+ window.swaggerUi.api.clientAuthorizations.add("api_key", apiKeyAuth);
|
|
|
64
|
+ log("added key " + key);
|
|
|
65
|
+ }
|
|
|
66
|
+ }
|
|
|
67
|
+
|
|
|
68
|
+ $('#input_apiKey').change(addApiKeyAuthorization);
|
|
|
69
|
+
|
|
|
70
|
+ // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
|
|
|
71
|
+ /*
|
|
|
72
|
+ var apiKey = "myApiKeyXXXX123456789";
|
|
|
73
|
+ $('#input_apiKey').val(apiKey);
|
|
|
74
|
+ */
|
|
|
75
|
+
|
|
|
76
|
+ window.swaggerUi.load();
|
|
|
77
|
+
|
|
|
78
|
+ function log() {
|
|
|
79
|
+ if ('console' in window) {
|
|
|
80
|
+ console.log.apply(console, arguments);
|
|
|
81
|
+ }
|
|
|
82
|
+ }
|
|
|
83
|
+ });
|
|
|
84
|
+ </script>
|
|
|
85
|
+</head>
|
|
|
86
|
+
|
|
|
87
|
+<body class="swagger-section">
|
|
|
88
|
+<div id='header'>
|
|
|
89
|
+ <div class="swagger-ui-wrap">
|
|
|
90
|
+ <a id="logo" href="http://swagger.io">swagger</a>
|
|
|
91
|
+ <form id='api_selector'>
|
|
|
92
|
+ <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
|
|
|
93
|
+ <div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
|
|
|
94
|
+ <div class='input'><a id="explore" href="#">Explore</a></div>
|
|
|
95
|
+ </form>
|
|
|
96
|
+ </div>
|
|
|
97
|
+</div>
|
|
|
98
|
+
|
|
|
99
|
+<div id="message-bar" class="swagger-ui-wrap"> </div>
|
|
|
100
|
+<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
|
|
|
101
|
+</body>
|
|
|
102
|
+</html> |