Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-12-12 14:31:58 +01:00
forgejo/public/vendor/assets/swagger-ui/index.html

61 lines
1.4 KiB
HTML
Raw Normal View History

<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
2018-04-20 11:13:50 +02:00
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.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" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
*,
*:before,
*:after
{
box-sizing: inherit;
}
body
{
margin:0;
background: #fafafa;
}
</style>
</head>
<body>
<div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {
2019-04-17 04:50:55 +02:00
// Begin Swagger UI call region
2018-04-20 11:13:50 +02:00
const ui = SwaggerUIBundle({
url: "../../../swagger.v1.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
2019-04-17 04:50:55 +02:00
// End Swagger UI call region
2018-04-20 11:13:50 +02:00
window.ui = ui
}
2018-04-20 11:13:50 +02:00
</script>
</body>
</html>