-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapidoc.html
31 lines (31 loc) · 1.15 KB
/
apidoc.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<meta
content="SwaggerIU"
name="description"
/>
<title>SwaggerUI</title>
<link href="https://unpkg.com/[email protected]/swagger-ui.css" rel="stylesheet"/>
</head>
<body>
<div id="swagger-ui"></div>
<script crossorigin src="https://unpkg.com/[email protected]/swagger-ui-bundle.js"></script>
<script crossorigin src="https://unpkg.com/[email protected]/swagger-ui-standalone-preset.js"></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: 'api-docs/api.json',
dom_id: '#swagger-ui',
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
layout: "StandaloneLayout",
});
};
</script>
</body>
</html>