WIP
This commit is contained in:
@@ -69,6 +69,16 @@
|
||||
<script src="./swagger-ui-bundle.js"> </script>
|
||||
<script src="./swagger-ui-standalone-preset.js"> </script>
|
||||
<script>
|
||||
|
||||
const MyComponentPlugin = function(system) {
|
||||
return {
|
||||
components: {
|
||||
// components can just be functions
|
||||
// HelloWorld: () => "Hello World"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
|
||||
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
|
||||
@@ -81,7 +91,8 @@
|
||||
SwaggerUIStandalonePreset
|
||||
],
|
||||
plugins: [
|
||||
SwaggerUIBundle.plugins.DownloadUrl
|
||||
SwaggerUIBundle.plugins.DownloadUrl,
|
||||
MyComponentPlugin
|
||||
],
|
||||
layout: "StandaloneLayout"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user