-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapi.html
More file actions
74 lines (74 loc) · 2.19 KB
/
api.html
File metadata and controls
74 lines (74 loc) · 2.19 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Conductor API</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css">
<style>
body {
margin: 0;
background: #fafafa;
}
.swagger-ui .topbar {
display: none;
}
.swagger-ui .info {
margin: 30px 0;
}
.swagger-ui .info .title {
font-size: 2.5em;
}
.header {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #fff;
padding: 20px 40px;
display: flex;
justify-content: space-between;
align-items: center;
}
.header h1 {
margin: 0;
font-family: system-ui, -apple-system, sans-serif;
font-size: 1.5em;
}
.header a {
color: #00d4ff;
text-decoration: none;
font-family: system-ui, -apple-system, sans-serif;
}
.header a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="header">
<h1>Conductor API</h1>
<a href="https://github.com/malwarebo/conductor" target="_blank">GitHub</a>
</div>
<div id="swagger-ui"></div>
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js"></script>
<script>
window.onload = function() {
SwaggerUIBundle({
url: "openapi.yaml",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIBundle.SwaggerUIStandalonePreset
],
layout: "BaseLayout",
defaultModelsExpandDepth: 1,
defaultModelExpandDepth: 1,
docExpansion: "list",
filter: true,
showExtensions: true,
showCommonExtensions: true,
tryItOutEnabled: true
});
};
</script>
</body>
</html>