docs: function(){
      var authsModel;
      this.showMessage('Finished Loading Resource Information. Rendering Swagger UI...');
      this.mainView = new SwaggerUi.Views.MainView({
        model: this.api,
        el: $('#' + this.dom_id),
        swaggerOptions: this.options,
        router: this
      }).render();
      if (!_.isEmpty(this.api.securityDefinitions)){
        authsModel = _.map(this.api.securityDefinitions, function (auth, name) {
          var result = {};
          result[name] = auth;
          return result;
        });
        this.authView = new SwaggerUi.Views.AuthButtonView({
          data: SwaggerUi.utils.parseSecurityDefinitions(authsModel),
          router: this
        });
        $('#auth_container').append(this.authView.render().el);
      }
      this.showMessage();
      switch (this.options.docExpansion) {
        case 'full':
          this.expandAll(); break;
        case 'list':
          this.listAll(); break;
        default:
          break;
      }
      this.renderGFM();
  
      if (this.options.onComplete){
        this.options.onComplete(this.api, this);
      }
  
      setTimeout(Docs.shebang.bind(this), 100);
    }