Skip to content

Commit c17628a

Browse files
authored
Added Swagger
1 parent bd78470 commit c17628a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

index.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>APTRS API Documentation</title>
7+
<link
8+
rel="stylesheet"
9+
type="text/css"
10+
href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@4.11.1/swagger-ui.css"
11+
/>
12+
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@4.11.1/swagger-ui-bundle.js"></script>
13+
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@4.11.1/swagger-ui-standalone-preset.js"></script>
14+
</head>
15+
<body>
16+
<div id="swagger-ui"></div>
17+
<script>
18+
const ui = SwaggerUIBundle({
19+
url: "./OpenAPI.yml",
20+
dom_id: "#swagger-ui",
21+
deepLinking: true,
22+
presets: [
23+
SwaggerUIBundle.presets.apis,
24+
SwaggerUIStandalonePreset
25+
],
26+
layout: "BaseLayout",
27+
});
28+
</script>
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)