Tony Tam 9 лет назад
Родитель
Сommit
9ba75c02be
3 измененных файлов: 10 добавлений и 16 удалений
  1. +4
    -7
      dist/swagger-ui.js
  2. +2
    -2
      dist/swagger-ui.min.js
  3. +4
    -7
      src/main/javascript/view/OperationView.js

+ 4
- 7
dist/swagger-ui.js Просмотреть файл

@@ -21409,7 +21409,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({

return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this);
} else {
this.map = map
this.map = map;
return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this);
}
}
@@ -21721,15 +21721,12 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
$('.response_throbber', $(this.el)).hide();


//adds curloutput
var curlCommand = swaggerUi.api[this.parentId][this.nickname].asCurl(this.map);
//adds curl output
var curlCommand = this.model.asCurl(this.map);
console.log(curlCommand);
curlCommand = curlCommand.replace("!", "!");
curlCommand = curlCommand.replace('!', '!');
$( '.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');

var response_body_el = $('.response_body', $(this.el))[0];


// only highlight the response if response is less than threshold, default state is highlight response
var opts = this.options.swaggerOptions;



+ 2
- 2
dist/swagger-ui.min.js
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 4
- 7
src/main/javascript/view/OperationView.js Просмотреть файл

@@ -335,7 +335,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({

return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this);
} else {
this.map = map
this.map = map;
return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this);
}
}
@@ -647,15 +647,12 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
$('.response_throbber', $(this.el)).hide();


//adds curloutput
var curlCommand = swaggerUi.api[this.parentId][this.nickname].asCurl(this.map);
//adds curl output
var curlCommand = this.model.asCurl(this.map);
console.log(curlCommand);
curlCommand = curlCommand.replace("!", "&#33;");
curlCommand = curlCommand.replace('!', '&#33;');
$( '.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');

var response_body_el = $('.response_body', $(this.el))[0];


// only highlight the response if response is less than threshold, default state is highlight response
var opts = this.options.swaggerOptions;



Загрузка…
Отмена
Сохранить