@@ -951,7 +951,8 @@ export type AnotherFakeApiType = {
951
951
* AnotherFakeApi - factory function to inject configuration
952
952
* @export
953
953
*/
954
- export const AnotherFakeApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch , basePath : string = BASE_PATH ) : AnotherFakeApiType {
954
+ export const AnotherFakeApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch ) : AnotherFakeApiType {
955
+ const basePath : string = ( configuration && configuration . basePath ) || BASE_PATH ;
955
956
return {
956
957
/**
957
958
* To test special tags
@@ -1407,7 +1408,8 @@ export type FakeApiType = {
1407
1408
* FakeApi - factory function to inject configuration
1408
1409
* @export
1409
1410
*/
1410
- export const FakeApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch , basePath : string = BASE_PATH ) : FakeApiType {
1411
+ export const FakeApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch ) : FakeApiType {
1412
+ const basePath : string = ( configuration && configuration . basePath ) || BASE_PATH ;
1411
1413
return {
1412
1414
/**
1413
1415
* Test serialization of outer boolean types
@@ -1612,7 +1614,8 @@ export type FakeClassnameTags123ApiType = {
1612
1614
* FakeClassnameTags123Api - factory function to inject configuration
1613
1615
* @export
1614
1616
*/
1615
- export const FakeClassnameTags123Api = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch , basePath : string = BASE_PATH ) : FakeClassnameTags123ApiType {
1617
+ export const FakeClassnameTags123Api = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch ) : FakeClassnameTags123ApiType {
1618
+ const basePath : string = ( configuration && configuration . basePath ) || BASE_PATH ;
1616
1619
return {
1617
1620
/**
1618
1621
* To test class name in snake case
@@ -1990,7 +1993,8 @@ export type PetApiType = {
1990
1993
* PetApi - factory function to inject configuration
1991
1994
* @export
1992
1995
*/
1993
- export const PetApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch , basePath : string = BASE_PATH ) : PetApiType {
1996
+ export const PetApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch ) : PetApiType {
1997
+ const basePath : string = ( configuration && configuration . basePath ) || BASE_PATH ;
1994
1998
return {
1995
1999
/**
1996
2000
*
@@ -2252,7 +2256,8 @@ export type StoreApiType = {
2252
2256
* StoreApi - factory function to inject configuration
2253
2257
* @export
2254
2258
*/
2255
- export const StoreApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch , basePath : string = BASE_PATH ) : StoreApiType {
2259
+ export const StoreApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch ) : StoreApiType {
2260
+ const basePath : string = ( configuration && configuration . basePath ) || BASE_PATH ;
2256
2261
return {
2257
2262
/**
2258
2263
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
@@ -2587,7 +2592,8 @@ export type UserApiType = {
2587
2592
* UserApi - factory function to inject configuration
2588
2593
* @export
2589
2594
*/
2590
- export const UserApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch , basePath : string = BASE_PATH ) : UserApiType {
2595
+ export const UserApi = function ( configuration ?: Configuration , fetch : FetchAPI = portableFetch ) : UserApiType {
2596
+ const basePath : string = ( configuration && configuration . basePath ) || BASE_PATH ;
2591
2597
return {
2592
2598
/**
2593
2599
* This can only be done by the logged in user.
0 commit comments