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:
4
dist/index.html
vendored
4
dist/index.html
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user