Skip to content

Instantly share code, notes, and snippets.

@engineersamuel
Created January 18, 2019 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save engineersamuel/ad3474a293340abd146f6e0f2c760bde to your computer and use it in GitHub Desktop.
Save engineersamuel/ad3474a293340abd146f6e0f2c760bde to your computer and use it in GitHub Desktop.
<script>
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: 'http://localhost:7071/api/swagger/openapi.json', oauth2RedirectUrl: 'http://localhost:7071/api/swagger/oauth2-redirect.html',
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
// End Swagger UI call region
window.ui = ui
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment