diff --git a/dist/css/screen.css b/dist/css/screen.css index 1627ecd0..f9cf2313 100644 --- a/dist/css/screen.css +++ b/dist/css/screen.css @@ -919,6 +919,31 @@ table { .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a { color: #6fa5d2; } +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading { + background-color: #e7f0f7; + border: 1px solid #c3d9ec; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading h3 span.http_method a { + background-color: #0f6ab4; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li { + border-right: 1px solid #dddddd; + border-right-color: #c3d9ec; + color: #0f6ab4; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li a { + color: #0f6ab4; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content { + background-color: #DFDF29; + border: 1px solid #c3d9ec; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content h4 { + color: #0f6ab4; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content div.sandbox_header a { + color: #6fa5d2; +} .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content, .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content, .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content, diff --git a/dist/lib/swagger.js b/dist/lib/swagger.js index 3854252c..f5e1aef0 100644 --- a/dist/lib/swagger.js +++ b/dist/lib/swagger.js @@ -1,5 +1,5 @@ // swagger.js -// version 2.0.23 +// version 2.0.25 var __bind = function(fn, me){ return function(){ @@ -697,6 +697,7 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not if(type === 'array') { type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']'; } + param.type = type; if(type.toLowerCase() === 'boolean') { param.allowableValues = {}; diff --git a/lib/swagger.js b/lib/swagger.js index 3854252c..f5e1aef0 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -1,5 +1,5 @@ // swagger.js -// version 2.0.23 +// version 2.0.25 var __bind = function(fn, me){ return function(){ @@ -697,6 +697,7 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not if(type === 'array') { type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']'; } + param.type = type; if(type.toLowerCase() === 'boolean') { param.allowableValues = {}; diff --git a/src/main/coffeescript/view/OperationView.coffee b/src/main/coffeescript/view/OperationView.coffee index d4693c5a..38e52ccc 100644 --- a/src/main/coffeescript/view/OperationView.coffee +++ b/src/main/coffeescript/view/OperationView.coffee @@ -279,8 +279,8 @@ class OperationView extends Backbone.View # puts the response data in UI showStatus: (response) -> if response.content is undefined - content = response.data - url = response.url + content = response.data + url = response.url else content = response.content.data url = response.request.url diff --git a/src/main/html/css/screen.css b/src/main/html/css/screen.css index 1627ecd0..f9cf2313 100644 --- a/src/main/html/css/screen.css +++ b/src/main/html/css/screen.css @@ -919,6 +919,31 @@ table { .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a { color: #6fa5d2; } +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading { + background-color: #e7f0f7; + border: 1px solid #c3d9ec; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading h3 span.http_method a { + background-color: #0f6ab4; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li { + border-right: 1px solid #dddddd; + border-right-color: #c3d9ec; + color: #0f6ab4; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li a { + color: #0f6ab4; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content { + background-color: #DFDF29; + border: 1px solid #c3d9ec; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content h4 { + color: #0f6ab4; +} +.swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content div.sandbox_header a { + color: #6fa5d2; +} .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content, .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content, .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content, diff --git a/src/main/less/specs.less b/src/main/less/specs.less index 2d7ff96a..d54aef35 100644 --- a/src/main/less/specs.less +++ b/src/main/less/specs.less @@ -914,6 +914,41 @@ } } } + li.operation.options { + div.heading { + background-color: #e7f0f7; + border: 1px solid #c3d9ec; + h3 { + span.http_method { + a { + background-color: #0f6ab4; + } + } + } + ul.options { + li { + border-right: 1px solid #dddddd; + border-right-color: #c3d9ec; + color: #0f6ab4; + a { + color: #0f6ab4; + } + } + } + } + div.content { + background-color: #ebf3f9; + border: 1px solid #c3d9ec; + h4 { + color: #0f6ab4; + } + div.sandbox_header { + a { + color: #6fa5d2; + } + } + } + } li.operation { &.get, &.post, &.head, &.put, &.patch, &.delete { div.content {