-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger.html
More file actions
66 lines (61 loc) · 1.92 KB
/
Copy pathswagger.html
File metadata and controls
66 lines (61 loc) · 1.92 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="SciEdu API" />
<title>SciEdu API</title>
<link
rel="stylesheet"
href="https://unpkg.com/swagger-ui-dist@latest/swagger-ui.css"
/>
<style>
@import url("https://font.emtech.cc/css/LINESeedTW/400");
@import url("https://font.emtech.cc/css/LINESeedTW/700");
@import url("https://font.emtech.cc/css/FiraCode/400");
@import url("https://font.emtech.cc/css/FiraCode/600");
* {
font-family: "LINESeedTW", system-ui !important;
}
span,
code,
pre,
tt {
font-family: "FiraCode", monospace !important;
}
.header-nav {
padding: 20px;
background-color: #f5f5f5;
border-bottom: 1px solid #ddd;
}
.nav-link {
text-decoration: none;
color: #0066cc;
font-weight: 700;
}
.nav-link:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="header-nav">
<a href="redocly/" class="nav-link">
View Redocly Documentation
</a>
</div>
<div id="swagger-ui"></div>
<script
src="https://unpkg.com/swagger-ui-dist@latest/swagger-ui-bundle.js"
crossorigin
></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: "tsp-output/schema/openapi.1.0.0.yaml",
dom_id: "#swagger-ui",
});
};
</script>
</body>
</html>