Browse Source

updated to 1.1.4

bubble
Tony Tam 12 years ago
parent
commit
2d62bddfb8
3 changed files with 5 additions and 2 deletions
  1. +3
    -0
      lib/swagger.js
  2. +1
    -1
      src/main/coffeescript/view/HeaderView.coffee
  3. +1
    -1
      src/main/html/index.html

+ 3
- 0
lib/swagger.js View File

@@ -53,6 +53,9 @@
this.progress('fetching resource list: ' + this.discoveryUrl); this.progress('fetching resource list: ' + this.discoveryUrl);
return jQuery.getJSON(this.discoveryUrl, function(response) { return jQuery.getJSON(this.discoveryUrl, function(response) {
var res, resource, _i, _j, _len, _len1, _ref, _ref1; var res, resource, _i, _j, _len, _len1, _ref, _ref1;
if (response.apiVersion != null) {
_this.apiVersion = response.apiVersion;
}
if ((response.basePath != null) && jQuery.trim(response.basePath).length > 0) { if ((response.basePath != null) && jQuery.trim(response.basePath).length > 0) {
_this.basePath = response.basePath; _this.basePath = response.basePath;
if (_this.basePath.match(/^HTTP/i) == null) { if (_this.basePath.match(/^HTTP/i) == null) {


+ 1
- 1
src/main/coffeescript/view/HeaderView.coffee View File

@@ -13,7 +13,7 @@ class HeaderView extends Backbone.View
showPetStore: (e) -> showPetStore: (e) ->
@trigger( @trigger(
'update-swagger-ui' 'update-swagger-ui'
{discoveryUrl:"http://petstore.swagger.wordnik.com/api/resources.json", apiKey:"special-key"}
{discoveryUrl:"http://petstore.swagger.wordnik.com/api/api-docs.json", apiKey:"special-key"}
) )


showWordnikDev: (e) -> showWordnikDev: (e) ->


+ 1
- 1
src/main/html/index.html View File

@@ -45,7 +45,7 @@
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
window.swaggerUi = new SwaggerUi({ window.swaggerUi = new SwaggerUi({
discoveryUrl:"http://petstore.swagger.wordnik.com/api/resources.json",
discoveryUrl:"http://petstore.swagger.wordnik.com/api/api-docs.json",
apiKey:"special-key", apiKey:"special-key",
dom_id:"swagger-ui-container", dom_id:"swagger-ui-container",
supportHeaderParams: false, supportHeaderParams: false,


Loading…
Cancel
Save