public/swaggerui/swagger-ui.js
function(){
    // Initialize the API object
    if (this.mainView) {
      this.mainView.clear();
    }
    var url = this.options.url;
    if (url && url.indexOf('http') !== 0) {
      url = this.buildUrl(window.location.href.toString(), url);
    }
    if(this.api) {
      this.options.authorizations = this.api.clientAuthorizations.authz;
    }
    this.options.url = url;
    this.headerView.update(url);

    this.api = new SwaggerClient(this.options);
  }
function(){
    // Initialize the API object
    if (this.mainView) {
      this.mainView.clear();
    }
    var url = this.options.url;
    if (url && url.indexOf('http') !== 0) {
      url = this.buildUrl(window.location.href.toString(), url);
    }
    if(this.api) {
      this.options.authorizations = this.api.clientAuthorizations.authz;
    }
    this.options.url = url;
    this.headerView.update(url);

    this.api = new SwaggerClient(this.options);
  }
function ( ) { // Initialize the API object if ( this . mainView ) { this . mainView . clear ( ) ; } var url = this . options . url ; if ( url && url . indexOf ( 'http' ) !== 0 ) { url = this . buildUrl ( window . location . href . toString ( ) , url ) ; } if ( this . api ) { this . options . authorizations = this . api . clientAuthorizations . authz ; } this . options . url = url ; this . headerView . update ( url ) ; this . api = new SwaggerClient ( this . options ) ; }
Create an api and render
Create an api and render