mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>ReDoc</title>
|
|
<!-- needed for adaptive design -->
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
|
|
|
<!--
|
|
ReDoc doesn't change outer page styles
|
|
-->
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- ### DEFAULT REDOC - NO 'TRY' FEATURE -->
|
|
<!-- <redoc spec-url='openapi.yaml'></redoc> -->
|
|
<!-- <script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script> -->
|
|
<!-- ### REDOC WITH SWAGGER UI'S 'TRY' FEATURE WITHIN REDOC -->
|
|
<!-- From https://github.com/wll8/redoc-try -->
|
|
<div id="redoc-container"></div>
|
|
<script src="//cdn.jsdelivr.net/npm/redoc@2.0.0-rc.28/bundles/redoc.standalone.min.js"> </script>
|
|
<script src="//cdn.jsdelivr.net/gh/wll8/redoc-try/dist/try.js"></script>
|
|
<script>
|
|
var unleashRedoc = {
|
|
openApi: `openapi.yaml`,
|
|
onlySwagger: false, // Set to true to switch to Swagger UI output
|
|
tryText: `Try it out`, // Try button text
|
|
trySwaggerInApi: false, // Do not display Swagger debugging window under API
|
|
redocOptions: {hideDownloadButton: true, noAutoAuth: true, sortPropsAlphabetically: true, theme: {spacing: {sectionVertical: '5px',}},},
|
|
swaggerOptions: {dom_id: `#swagger-ui`},
|
|
}
|
|
initTry(unleashRedoc);
|
|
</script>
|
|
|
|
</body>
|
|
</html> |