-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (57 loc) · 1.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<script src="//unpkg.com/swagger-ui-dist/swagger-ui-standalone-preset.js"></script>
<script src="//unpkg.com/swagger-ui-dist/swagger-ui-bundle.js"></script>
<link rel="stylesheet" href="//unpkg.com/swagger-ui-dist/swagger-ui.css"/>
<title>http4k OpenApi3</title>
<style type="text/css">
.swagger-ui .topbar .topbar-wrapper a.link {
content: url("https://www.http4k.org/img/logo.png");
flex: 0;
margin-right: 25px;
height: 40px;
}
.swagger-ui .topbar .download-url-wrapper input[type=text] {
border: 2px solid #62a03f;
border-radius: 4px 0 0 4px;
outline: none;
width: 100%;
margin-right: 25px;
}
.swagger-ui .topbar {
background: #5aaff5;
color: #5aaff5;
}
.swagger-ui .topbar .download-url-wrapper .download-url-button {
color: #ffffff;
background-color: #ff9800;
border-color: #ff9800;
}
</style>
</head>
<body>
<div id="openapi-ui"></div>
<script>
window.onload = function() {
SwaggerUIBundle({
url: "https://petstore3.swagger.io/api/v3/openapi.json",
dom_id: '#openapi-ui',
deepLinking: true,
displayOperationId: true,
displayRequestDuration: true,
requestSnippetsEnabled: true,
persistAuthorization: false,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
layout: "StandaloneLayout"
})
}
</script>
</body>
</html>