mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
fix typescript basepath
This commit is contained in:
parent
ee1febcd95
commit
90b89c6189
@ -12,7 +12,7 @@ module {{package}} {
|
||||
*/
|
||||
{{/description}}
|
||||
export class {{classname}} {
|
||||
private basePath = '{{contextPath}}';
|
||||
private basePath = '{{basePath}}';
|
||||
|
||||
static $inject: string[] = ['$http'];
|
||||
|
||||
|
@ -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}}
|
||||
|
11
samples/client/petstore/swift/PetstoreClient.podspec
Normal file
11
samples/client/petstore/swift/PetstoreClient.podspec
Normal 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
|
@ -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'];
|
||||
|
||||
|
@ -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'];
|
||||
|
||||
|
@ -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'];
|
||||
|
||||
|
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user