Last active
August 29, 2015 14:22
-
-
Save ponelat/0e332938e0c53e20e001 to your computer and use it in GitHub Desktop.
Inline your swagger spec into swagger-ui's index.html file
This file contains 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
// This goes in the dist/index.html file found in swagger-ui. | |
// Be careful that the file gets overwritten when you build swagger-ui | |
window.swaggerUi = new SwaggerUi({ | |
url: url, | |
spec: { | |
// ... | |
// your spec here | |
// .... | |
}, | |
dom_id: "swagger-ui-container", | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment