mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
35 lines
1.0 KiB
HTML
35 lines
1.0 KiB
HTML
|
<html>
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui.css" >
|
||
|
<style>
|
||
|
.topbar {
|
||
|
display: none;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div id="swagger-ui"></div>
|
||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui-bundle.js"> </script>
|
||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui-standalone-preset.js"> </script>
|
||
|
<script>
|
||
|
window.onload = function() {
|
||
|
const ui = SwaggerUIBundle({
|
||
|
url: "https://grafana.github.io/alerting-api/spec.json?cachebuster=" + Math.random(),
|
||
|
dom_id: '#swagger-ui',
|
||
|
deepLinking: true,
|
||
|
presets: [
|
||
|
SwaggerUIBundle.presets.apis,
|
||
|
SwaggerUIStandalonePreset
|
||
|
],
|
||
|
plugins: [
|
||
|
SwaggerUIBundle.plugins.DownloadUrl
|
||
|
],
|
||
|
layout: "StandaloneLayout"
|
||
|
})
|
||
|
window.ui = ui
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|