Call to swaggerUi.load before possible use.

Using addApiKeyAuthorization function, needs to be done after swaggerUi is loaded, otherwise calling ``window.swaggerUi.api.clientAuthorizations.add`` will fail, and the authorization headers will not be aded.
This commit is contained in:
Sebastian Ortiz
2015-04-13 13:31:06 -05:00
parent 5d5606bb61
commit 44f200542c

4
dist/index.html vendored
View File

@@ -63,6 +63,8 @@
}
}
window.swaggerUi.load();
$('#input_apiKey').change(addApiKeyAuthorization);
// if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
@@ -72,8 +74,6 @@
addApiKeyAuthorization();
*/
window.swaggerUi.load();
function log() {
if ('console' in window) {
console.log.apply(console, arguments);