mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 06:00:52 +00:00
Merge pull request #1196 from wing328/typescript_basepath
[TypeScript] Fix base path
This commit is contained in:
commit
26c0bfef7d
@ -12,7 +12,7 @@ module {{package}} {
|
|||||||
*/
|
*/
|
||||||
{{/description}}
|
{{/description}}
|
||||||
export class {{classname}} {
|
export class {{classname}} {
|
||||||
private basePath = '{{contextPath}}';
|
private basePath = '{{basePath}}';
|
||||||
|
|
||||||
static $inject: string[] = ['$http'];
|
static $inject: string[] = ['$http'];
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ class VoidAuth implements Authentication {
|
|||||||
*/
|
*/
|
||||||
{{/description}}
|
{{/description}}
|
||||||
export class {{classname}} {
|
export class {{classname}} {
|
||||||
private basePath = '{{contextPath}}';
|
private basePath = '{{basePath}}';
|
||||||
public authentications = {
|
public authentications = {
|
||||||
'default': <Authentication>new VoidAuth(),
|
'default': <Authentication>new VoidAuth(),
|
||||||
{{#authMethods}}
|
{{#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';
|
'use strict';
|
||||||
|
|
||||||
export class PetApi {
|
export class PetApi {
|
||||||
private basePath = '/v2';
|
private basePath = 'http://petstore.swagger.io/v2';
|
||||||
|
|
||||||
static $inject: string[] = ['$http'];
|
static $inject: string[] = ['$http'];
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ module API.Client {
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
export class StoreApi {
|
export class StoreApi {
|
||||||
private basePath = '/v2';
|
private basePath = 'http://petstore.swagger.io/v2';
|
||||||
|
|
||||||
static $inject: string[] = ['$http'];
|
static $inject: string[] = ['$http'];
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ module API.Client {
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
export class UserApi {
|
export class UserApi {
|
||||||
private basePath = '/v2';
|
private basePath = 'http://petstore.swagger.io/v2';
|
||||||
|
|
||||||
static $inject: string[] = ['$http'];
|
static $inject: string[] = ['$http'];
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ class VoidAuth implements Authentication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class UserApi {
|
export class UserApi {
|
||||||
private basePath = '/v2';
|
private basePath = 'http://petstore.swagger.io/v2';
|
||||||
public authentications = {
|
public authentications = {
|
||||||
'default': <Authentication>new VoidAuth(),
|
'default': <Authentication>new VoidAuth(),
|
||||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||||
@ -528,7 +528,7 @@ export class UserApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class PetApi {
|
export class PetApi {
|
||||||
private basePath = '/v2';
|
private basePath = 'http://petstore.swagger.io/v2';
|
||||||
public authentications = {
|
public authentications = {
|
||||||
'default': <Authentication>new VoidAuth(),
|
'default': <Authentication>new VoidAuth(),
|
||||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||||
@ -980,7 +980,7 @@ export class PetApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class StoreApi {
|
export class StoreApi {
|
||||||
private basePath = '/v2';
|
private basePath = 'http://petstore.swagger.io/v2';
|
||||||
public authentications = {
|
public authentications = {
|
||||||
'default': <Authentication>new VoidAuth(),
|
'default': <Authentication>new VoidAuth(),
|
||||||
'api_key': new ApiKeyAuth('header', 'api_key'),
|
'api_key': new ApiKeyAuth('header', 'api_key'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user