Created
May 15, 2018 18:48
-
-
Save sal-pal/145c1f3965e998b69a3ac413ce8598c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML for dev server --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Swagger UI</title> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet"> | |
<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() { | |
window["SwaggerUIBundle"] = window["swagger-ui-bundle"] | |
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"] | |
// Build a system | |
const ui = SwaggerUIBundle({ | |
url: "swagger.json", | |
dom_id: '#swagger-ui', | |
deepLinking: true, | |
presets: [ | |
SwaggerUIBundle.presets.apis, | |
SwaggerUIStandalonePreset | |
], | |
plugins: [ | |
SwaggerUIBundle.plugins.DownloadUrl | |
], | |
layout: "StandaloneLayout" | |
}) | |
window.ui = ui | |
ui.initOAuth({ | |
clientId: "your-client-id", | |
clientSecret: "your-client-secret-if-required", | |
realm: "your-realms", | |
appName: "your-app-name", | |
scopeSeparator: " ", | |
additionalQueryStringParams: {} | |
}) | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment