docs: 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);
    }