-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger-admin.html
More file actions
39 lines (38 loc) · 982 Bytes
/
swagger-admin.html
File metadata and controls
39 lines (38 loc) · 982 Bytes
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
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin API Swagger</title>
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" />
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
background: #fafafa;
}
#swagger-ui {
height: 100%;
}
</style>
</head>
<body>
<div id="swagger-ui"></div>
<script src="https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js"></script>
<script>
(function () {
const params = new URLSearchParams(window.location.search);
const defaultUrl = "http://localhost:8080/v3/api-docs.yaml";
const url = params.get("url") || defaultUrl;
window.ui = SwaggerUIBundle({
url: url,
dom_id: "#swagger-ui",
deepLinking: true,
presets: [SwaggerUIBundle.presets.apis],
layout: "BaseLayout"
});
})();
</script>
</body>
</html>