gitea/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 17:13:50 +08: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 10:50:55 +08:00
// Begin Swagger UI call region
2018-04-20 17:13:50 +08: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 10:50:55 +08:00
// End Swagger UI call region
2018-04-20 17:13:50 +08:00
window.ui = ui
}
2018-04-20 17:13:50 +08:00
</script>
</body>
</html>