fix typescript basepath

This commit is contained in:
wing328 2015-09-05 16:48:00 +08:00
parent ee1febcd95
commit 90b89c6189
7 changed files with 19 additions and 8 deletions

View File

@ -12,7 +12,7 @@ module {{package}} {
*/
{{/description}}
export class {{classname}} {
private basePath = '{{contextPath}}';
private basePath = '{{basePath}}';
static $inject: string[] = ['$http'];

View File

@ -95,7 +95,7 @@ class VoidAuth implements Authentication {
*/
{{/description}}
export class {{classname}} {
private basePath = '{{contextPath}}';
private basePath = '{{basePath}}';
public authentications = {
'default': <Authentication>new VoidAuth(),
{{#authMethods}}

View File

@ -0,0 +1,11 @@
Pod::Spec.new do |s|
s.name = 'PetstoreClient'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.version = '0.0.1'
s.source = { :git => 'git@github.com:swagger-api/swagger-mustache.git', :tag => 'v1.0.0' }
s.license = 'Apache License, Version 2.0'
s.source_files = 'PetstoreClient/Classes/Swaggers/**/*.swift'
s.dependency 'PromiseKit', '~> 2.1'
s.dependency 'Alamofire', '~> 1.3'
end

View File

@ -6,7 +6,7 @@ module API.Client {
'use strict';
export class PetApi {
private basePath = '/v2';
private basePath = 'http://petstore.swagger.io/v2';
static $inject: string[] = ['$http'];

View File

@ -6,7 +6,7 @@ module API.Client {
'use strict';
export class StoreApi {
private basePath = '/v2';
private basePath = 'http://petstore.swagger.io/v2';
static $inject: string[] = ['$http'];

View File

@ -6,7 +6,7 @@ module API.Client {
'use strict';
export class UserApi {
private basePath = '/v2';
private basePath = 'http://petstore.swagger.io/v2';
static $inject: string[] = ['$http'];

View File

@ -118,7 +118,7 @@ class VoidAuth implements Authentication {
}
export class UserApi {
private basePath = '/v2';
private basePath = 'http://petstore.swagger.io/v2';
public authentications = {
'default': <Authentication>new VoidAuth(),
'api_key': new ApiKeyAuth('header', 'api_key'),
@ -528,7 +528,7 @@ export class UserApi {
}
}
export class PetApi {
private basePath = '/v2';
private basePath = 'http://petstore.swagger.io/v2';
public authentications = {
'default': <Authentication>new VoidAuth(),
'api_key': new ApiKeyAuth('header', 'api_key'),
@ -980,7 +980,7 @@ export class PetApi {
}
}
export class StoreApi {
private basePath = '/v2';
private basePath = 'http://petstore.swagger.io/v2';
public authentications = {
'default': <Authentication>new VoidAuth(),
'api_key': new ApiKeyAuth('header', 'api_key'),