added api info

This commit is contained in:
Tony Tam
2013-07-11 00:26:05 -07:00
parent 187d245047
commit e980cca6b4
10 changed files with 189 additions and 10 deletions

5
dist/lib/swagger.js vendored
View File

@@ -15,6 +15,8 @@
SwaggerApi.prototype.authorizationScheme = null;
SwaggerApi.prototype.info = null;
function SwaggerApi(url, options) {
if (options == null) {
options = {};
@@ -71,6 +73,9 @@
}
_this.apis = {};
_this.apisArray = [];
if (response.info != null) {
_this.info = response.info;
}
isApi = false;
_ref = response.apis;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {