-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (37 loc) · 1.29 KB
/
Copy pathindex.html
File metadata and controls
38 lines (37 loc) · 1.29 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>DisCloud API</title>
<!-- Load the Swagger UI code and style from npm using unpkg.com -->
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui.css" />
<link rel="stylesheet" href="SwaggerDark.css" />
<link rel="shortcut icon" type="image/x-icon" href="https://discloudbot.com/img/favicon.ico">
<script src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-bundle.js" crossorigin></script>
<script src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-standalone-preset.js" crossorigin></script>
</head>
<body>
<!-- Div to hold the UI component -->
<div id="swagger-ui"></div>
<script>
// Begin Swagger UI call region
window.onload = () => {
window.ui = SwaggerUIBundle({
urls: [
{url: "api-endpoints-pt-v2.openapi.yaml", name: "V2 PT"},
{url: "api-endpoints-en-v2.openapi.yaml", name: "V2 EN"},
],
dom_id: '#swagger-ui',
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
layout: "StandaloneLayout"
});
};
</script>
<style>
.swagger-ui img {
display: none;
}
</style>
</body>
</html>