-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-docs.html
29 lines (27 loc) · 925 Bytes
/
api-docs.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Swagger UI</title>
<!-- Load Swagger UI styles -->
<link rel="stylesheet" type="text/css" href="/swagger-ui.css" />
</head>
<body>
<div id="swagger-ui"></div>
<!-- Load Swagger UI bundle and presets -->
<script src="/swagger-ui-bundle.js"></script>
<script src="/swagger-ui-standalone-preset.js"></script>
<script>
// Initialize Swagger UI
const ui = SwaggerUIBundle({
url: '/openapi.json', // Replace with your OpenAPI / Swagger JSON file URL
dom_id: '#swagger-ui',
deepLinking: true,
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
layout: 'StandaloneLayout',
});
</script>
</body>
</html>