-
Notifications
You must be signed in to change notification settings - Fork 16
/
documentation.jsp
101 lines (90 loc) · 4.56 KB
/
documentation.jsp
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
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
<title>swagger4spring-web-example API documentation</title>
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>
<link href='<c:url value='/resources/swagger-ui/css/reset.css' />' media='screen'
rel='stylesheet' type='text/css'/>
<link href='<c:url value='/resources/swagger-ui/css/screen.css' />' media='screen' rel='stylesheet'
type='text/css'/>
<link href='<c:url value='/resources/swagger-ui/css/reset.css' />' media='print'
rel='stylesheet' type='text/css'/>
<link href='<c:url value='/resources/swagger-ui/css/screen.css' />' media='print' rel='stylesheet'
type='text/css'/>
<script type="text/javascript" src="<c:url value='/resources/swagger-ui/lib/shred.bundle.js'/>"></script>
<script src='<c:url value='/resources/swagger-ui/lib/jquery-1.8.0.min.js' />' type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/jquery.slideto.min.js' />'
type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/jquery.wiggle.min.js' />'
type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/jquery.ba-bbq.min.js' />'
type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/handlebars-1.0.0.js' />'
type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/underscore-min.js' />' type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/backbone-min.js' />' type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/swagger.js' />' type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/swagger-ui.js' />' type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/highlight.7.3.pack.js' />'
type='text/javascript'></script>
<script src='<c:url value='/resources/swagger-ui/lib/swagger-oauth.js' />' type='text/javascript'></script>
<script type="text/javascript" th:inline="javascript">
$(document).ready(function () {
displaySwaggerDocuments();
function displaySwaggerDocuments() {
var resourceUrl = '<c:url value="/documentation/resourceList"/>';
window.swaggerUi = new SwaggerUi({
url: resourceUrl,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
onComplete: function (swaggerApi, swaggerUi) {
if (console) {
console.log("Loaded SwaggerUI")
console.log(swaggerApi);
console.log(swaggerUi);
}
$('pre code').each(function (i, e) {
hljs.highlightBlock(e)
});
if(typeof initOAuth == "function") {
/*
initOAuth({
clientId: "your-client-id",
realm: "your-realms",
appName: "your-app-name"
});
*/
}
},
onFailure: function (data) {
if (console) {
console.log("Unable to Load SwaggerUI");
console.log(data);
}
},
docExpansion: "none"
});
$('#input_apiKey').change(function() {
var key = $('#input_apiKey')[0].value;
log("key: " + key);
if(key && key.trim() != "") {
log("added key " + key);
window.authorizations.add("key", new ApiKeyAuthorization("api_key", key, "query"));
}
});
window.swaggerUi.load();
}
});
</script>
</head>
<body class="swagger-section">
<div id='header'>
<div class="swagger-ui-wrap">
</div>
</div>
<div id="message-bar" class="swagger-ui-wrap"> </div>
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
</body>
</html>