Added regex to replace / with _ in resource name
This commit is contained in:
@@ -65,7 +65,7 @@ function SwaggerService(baseUrl, _apiKey, statusCallback) {
|
|||||||
this.path_xml = this.path.replace("{format}", "xml");
|
this.path_xml = this.path.replace("{format}", "xml");
|
||||||
this.baseUrl = apiHost;
|
this.baseUrl = apiHost;
|
||||||
//execluded 9 letters to remove .{format} from name
|
//execluded 9 letters to remove .{format} from name
|
||||||
this.name = this.path.substr(1, this.path.length - formatString.length - 1);
|
this.name = this.path.substr(1, this.path.length - formatString.length - 1).replace(/\//g, "_");
|
||||||
this.apiList = Api.sub();
|
this.apiList = Api.sub();
|
||||||
this.modelList = ApiModel.sub();
|
this.modelList = ApiModel.sub();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user