hub/docs/api/index.html

67 lines
1.8 KiB
HTML

<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Artifact Hub UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="./custom-styles.css" >
<link rel="shortcut icon" type="image/png" href="https://staging.artifacthub.io/static/media/logo.png">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="apple-touch-icon" href="https://staging.artifacthub.io/static/media/logo192.png">
<link rel="apple-touch-icon" sizes="512x512" href="https://staging.artifacthub.io/static/media/logo512.png">
<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 class="nav">
<img src="https://artifacthub.io/static/media/logo192.png" />
</div>
<div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {
const ui = SwaggerUIBundle({
urls: [
{url: "openapi.yaml", name: "Artifact Hub API"},
{url: "openapi-monocular.yaml", name: "Monocular compatible search API"},
],
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset,
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl,
],
layout: "StandaloneLayout"
})
window.ui = ui
}
</script>
</body>
</html>