| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!-- HTML for static distribution bundle build -->
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Swagger UI</title>
- <link rel="stylesheet" type="text/css" href="./swagger-ui.css"/>
- <link rel="stylesheet" type="text/css" href="index.css"/>
- <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32"/>
- <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16"/>
- </head>
- <body>
- <div id="swagger-ui"></div>
- <script src="./swagger-ui-bundle.js" charset="UTF-8"></script>
- <script src="./swagger-ui-standalone-preset.js" charset="UTF-8"></script>
- <script src="./swagger-initializer.js" charset="UTF-8"></script>
- <script>
- window.onload = function () {
- const servicesUrl = new URL("/q/services", window.location.href);
- fetch(servicesUrl.toString())
- .then(response => response.json())
- .then(data => {
- const urls = data.services.filter((x) => [
- "grpc.health.v1.Health",
- "kratos.api.Metadata",
- "grpc.reflection.v1alpha.ServerReflection",
- ].indexOf(x) === -1).map((x) => {
- const url = new URL("/q/service/" + x, window.location.href);
- return {url: url.toString(), name: x}
- });
- // Begin Swagger UI call region
- const ui = SwaggerUIBundle({
- urls: urls,
- dom_id: '#swagger-ui',
- deepLinking: true,
- presets: [
- SwaggerUIBundle.presets.apis,
- SwaggerUIStandalonePreset,
- ],
- plugins: [
- SwaggerUIBundle.plugins.Topbar,
- SwaggerUIBundle.plugins.DownloadUrl,
- ],
- layout: "StandaloneLayout"
- });
- // End Swagger UI call region
- window.ui = ui;
- });
- };
- </script>
- </body>
- </html>
|