mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Updated samples
This commit is contained in:
parent
02631143f2
commit
a0225deb9c
@ -1 +1 @@
|
||||
5.3.0-SNAPSHOT
|
||||
6.3.0-SNAPSHOT
|
@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { Response } from '/models/Response';
|
||||
import { Response } from '../models/Response';
|
||||
|
||||
/**
|
||||
* no description
|
||||
|
@ -1,6 +1,6 @@
|
||||
export * from '.models.Response';
|
||||
export * from '../models/Response';
|
||||
|
||||
import { Response } from '.models.Response';
|
||||
import { Response } from '../models/Response';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
|
@ -10,7 +10,6 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Set } from 'Set';
|
||||
import { HttpFile } from '../http/http';
|
||||
|
||||
export class Response {
|
||||
|
@ -1 +1 @@
|
||||
export * from '.models.Response'
|
||||
export * from '../models/Response'
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { Response } from '.models.Response';
|
||||
import { Response } from '../models/Response';
|
||||
|
||||
import { ObservableDefaultApi } from "./ObservableAPI";
|
||||
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
||||
|
@ -2,7 +2,7 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
import { Observable, of, from } from '../rxjsStub';
|
||||
import {mergeMap, map} from '../rxjsStub';
|
||||
import { Response } from '.models.Response';
|
||||
import { Response } from '../models/Response';
|
||||
|
||||
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
||||
export class ObservableDefaultApi {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { Response } from '.models.Response';
|
||||
import { Response } from '../models/Response';
|
||||
import { ObservableDefaultApi } from './ObservableAPI';
|
||||
|
||||
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
||||
|
@ -1 +1 @@
|
||||
5.3.0-SNAPSHOT
|
||||
6.3.0-SNAPSHOT
|
@ -18,6 +18,7 @@ Method | HTTP request | Description
|
||||
> Pet addPet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -89,6 +90,7 @@ Name | Type | Description | Notes
|
||||
> deletePet()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -315,6 +317,7 @@ Name | Type | Description | Notes
|
||||
> Pet updatePet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -388,6 +391,7 @@ Name | Type | Description | Notes
|
||||
> updatePetWithForm()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -447,6 +451,7 @@ void (empty response body)
|
||||
> ApiResponse uploadFile()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -173,6 +173,7 @@ No authorization required
|
||||
> Order placeOrder(order)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -81,6 +81,7 @@ void (empty response body)
|
||||
> createUsersWithArrayInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -145,6 +146,7 @@ void (empty response body)
|
||||
> createUsersWithListInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -264,6 +266,7 @@ void (empty response body)
|
||||
> User getUserByName()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -319,6 +322,7 @@ No authorization required
|
||||
> string loginUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -376,6 +380,7 @@ No authorization required
|
||||
> logoutUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -8,8 +8,8 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { ApiResponse } from '/models/ApiResponse';
|
||||
import { Pet } from '/models/Pet';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Pet } from '../models/Pet';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -17,6 +17,7 @@ import { Pet } from '/models/Pet';
|
||||
export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -66,6 +67,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -230,6 +232,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -279,6 +282,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -349,6 +353,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
|
@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { Order } from '/models/Order';
|
||||
import { Order } from '../models/Order';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -110,6 +110,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
|
@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { User } from '/models/User';
|
||||
import { User } from '../models/User';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -64,6 +64,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -111,6 +112,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -196,6 +198,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -227,6 +230,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -274,6 +278,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public async logoutUser(_options?: Configuration): Promise<RequestContext> {
|
||||
|
@ -1,16 +1,16 @@
|
||||
export * from '.models.ApiResponse';
|
||||
export * from '.models.Category';
|
||||
export * from '.models.Order';
|
||||
export * from '.models.Pet';
|
||||
export * from '.models.Tag';
|
||||
export * from '.models.User';
|
||||
export * from '../models/ApiResponse';
|
||||
export * from '../models/Category';
|
||||
export * from '../models/Order';
|
||||
export * from '../models/Pet';
|
||||
export * from '../models/Tag';
|
||||
export * from '../models/User';
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order , OrderStatusEnum } from '.models.Order';
|
||||
import { Pet , PetStatusEnum } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order , OrderStatusEnum } from '../models/Order';
|
||||
import { Pet , PetStatusEnum } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
|
@ -10,8 +10,8 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Category } from 'Category';
|
||||
import { Tag } from 'Tag';
|
||||
import { Category } from '../models/Category';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { HttpFile } from '../http/http';
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
export * from '.models.ApiResponse'
|
||||
export * from '.models.Category'
|
||||
export * from '.models.Order'
|
||||
export * from '.models.Pet'
|
||||
export * from '.models.Tag'
|
||||
export * from '.models.User'
|
||||
export * from '../models/ApiResponse'
|
||||
export * from '../models/Category'
|
||||
export * from '../models/Order'
|
||||
export * from '../models/Pet'
|
||||
export * from '../models/Tag'
|
||||
export * from '../models/User'
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
import { ObservablePetApi } from "./ObservableAPI";
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
@ -121,6 +121,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -129,6 +130,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -164,6 +166,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -172,6 +175,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -180,6 +184,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -257,6 +262,7 @@ export class ObjectStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -364,6 +370,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -372,6 +379,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -389,6 +397,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -397,6 +406,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -405,6 +415,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
* @param param the request object
|
||||
*/
|
||||
|
@ -2,12 +2,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
import { Observable, of, from } from '../rxjsStub';
|
||||
import {mergeMap, map} from '../rxjsStub';
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
export class ObservablePetApi {
|
||||
@ -26,6 +26,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -49,6 +50,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -145,6 +147,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -168,6 +171,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -193,6 +197,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
@ -307,6 +312,7 @@ export class ObservableStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
@ -372,6 +378,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -395,6 +402,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -442,6 +450,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -465,6 +474,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -489,6 +499,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public logoutUser(_options?: Configuration): Observable<void> {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
import { ObservablePetApi } from './ObservableAPI';
|
||||
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
@ -22,6 +22,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -31,6 +32,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -71,6 +73,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -80,6 +83,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -91,6 +95,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
@ -150,6 +155,7 @@ export class PromiseStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
@ -188,6 +194,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -197,6 +204,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -216,6 +224,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -225,6 +234,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -235,6 +245,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public logoutUser(_options?: Configuration): Promise<void> {
|
||||
|
@ -15,10 +15,12 @@ models/Cat.ts
|
||||
models/CatAllOf.ts
|
||||
models/Dog.ts
|
||||
models/DogAllOf.ts
|
||||
models/InlineObject.ts
|
||||
models/FilePostRequest.ts
|
||||
models/ObjectSerializer.ts
|
||||
models/PetByAge.ts
|
||||
models/PetByType.ts
|
||||
models/PetsFilteredPatchRequest.ts
|
||||
models/PetsPatchRequest.ts
|
||||
models/all.ts
|
||||
package.json
|
||||
rxjsStub.ts
|
||||
|
@ -1 +1 @@
|
||||
5.3.0-SNAPSHOT
|
||||
6.3.0-SNAPSHOT
|
@ -24,9 +24,9 @@ const configuration = .createConfiguration();
|
||||
const apiInstance = new .DefaultApi(configuration);
|
||||
|
||||
let body:.DefaultApiFilePostRequest = {
|
||||
// InlineObject (optional)
|
||||
inlineObject: {
|
||||
file: ,
|
||||
// FilePostRequest (optional)
|
||||
filePostRequest: {
|
||||
file: null,
|
||||
},
|
||||
};
|
||||
|
||||
@ -40,7 +40,7 @@ apiInstance.filePost(body).then((data:any) => {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**inlineObject** | **InlineObject**| |
|
||||
**filePostRequest** | **FilePostRequest**| |
|
||||
|
||||
|
||||
### Return type
|
||||
@ -79,8 +79,8 @@ const configuration = .createConfiguration();
|
||||
const apiInstance = new .DefaultApi(configuration);
|
||||
|
||||
let body:.DefaultApiPetsFilteredPatchRequest = {
|
||||
// PetByAge | PetByType (optional)
|
||||
petByAgePetByType: ,
|
||||
// PetsFilteredPatchRequest (optional)
|
||||
petsFilteredPatchRequest: null,
|
||||
};
|
||||
|
||||
apiInstance.petsFilteredPatch(body).then((data:any) => {
|
||||
@ -93,7 +93,7 @@ apiInstance.petsFilteredPatch(body).then((data:any) => {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petByAgePetByType** | **PetByAge | PetByType**| |
|
||||
**petsFilteredPatchRequest** | **PetsFilteredPatchRequest**| |
|
||||
|
||||
|
||||
### Return type
|
||||
@ -132,8 +132,8 @@ const configuration = .createConfiguration();
|
||||
const apiInstance = new .DefaultApi(configuration);
|
||||
|
||||
let body:.DefaultApiPetsPatchRequest = {
|
||||
// Cat | Dog (optional)
|
||||
catDog: ,
|
||||
// PetsPatchRequest (optional)
|
||||
petsPatchRequest: null,
|
||||
};
|
||||
|
||||
apiInstance.petsPatch(body).then((data:any) => {
|
||||
@ -146,7 +146,7 @@ apiInstance.petsPatch(body).then((data:any) => {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**catDog** | **Cat | Dog**| |
|
||||
**petsPatchRequest** | **PetsPatchRequest**| |
|
||||
|
||||
|
||||
### Return type
|
||||
|
@ -8,11 +8,9 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { Cat } from '/models/Cat';
|
||||
import { Dog } from '/models/Dog';
|
||||
import { InlineObject } from '/models/InlineObject';
|
||||
import { PetByAge } from '/models/PetByAge';
|
||||
import { PetByType } from '/models/PetByType';
|
||||
import { FilePostRequest } from '../models/FilePostRequest';
|
||||
import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest';
|
||||
import { PetsPatchRequest } from '../models/PetsPatchRequest';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -20,9 +18,9 @@ import { PetByType } from '/models/PetByType';
|
||||
export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
|
||||
|
||||
/**
|
||||
* @param inlineObject
|
||||
* @param filePostRequest
|
||||
*/
|
||||
public async filePost(inlineObject?: InlineObject, _options?: Configuration): Promise<RequestContext> {
|
||||
public async filePost(filePostRequest?: FilePostRequest, _options?: Configuration): Promise<RequestContext> {
|
||||
let _config = _options || this.configuration;
|
||||
|
||||
|
||||
@ -40,7 +38,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
|
||||
]);
|
||||
requestContext.setHeaderParam("Content-Type", contentType);
|
||||
const serializedBody = ObjectSerializer.stringify(
|
||||
ObjectSerializer.serialize(inlineObject, "InlineObject", ""),
|
||||
ObjectSerializer.serialize(filePostRequest, "FilePostRequest", ""),
|
||||
contentType
|
||||
);
|
||||
requestContext.setBody(serializedBody);
|
||||
@ -55,9 +53,9 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param petByAgePetByType
|
||||
* @param petsFilteredPatchRequest
|
||||
*/
|
||||
public async petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, _options?: Configuration): Promise<RequestContext> {
|
||||
public async petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest, _options?: Configuration): Promise<RequestContext> {
|
||||
let _config = _options || this.configuration;
|
||||
|
||||
|
||||
@ -75,7 +73,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
|
||||
]);
|
||||
requestContext.setHeaderParam("Content-Type", contentType);
|
||||
const serializedBody = ObjectSerializer.stringify(
|
||||
ObjectSerializer.serialize(petByAgePetByType, "PetByAge | PetByType", ""),
|
||||
ObjectSerializer.serialize(petsFilteredPatchRequest, "PetsFilteredPatchRequest", ""),
|
||||
contentType
|
||||
);
|
||||
requestContext.setBody(serializedBody);
|
||||
@ -90,9 +88,9 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param catDog
|
||||
* @param petsPatchRequest
|
||||
*/
|
||||
public async petsPatch(catDog?: Cat | Dog, _options?: Configuration): Promise<RequestContext> {
|
||||
public async petsPatch(petsPatchRequest?: PetsPatchRequest, _options?: Configuration): Promise<RequestContext> {
|
||||
let _config = _options || this.configuration;
|
||||
|
||||
|
||||
@ -110,7 +108,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
|
||||
]);
|
||||
requestContext.setHeaderParam("Content-Type", contentType);
|
||||
const serializedBody = ObjectSerializer.stringify(
|
||||
ObjectSerializer.serialize(catDog, "Cat | Dog", ""),
|
||||
ObjectSerializer.serialize(petsPatchRequest, "PetsPatchRequest", ""),
|
||||
contentType
|
||||
);
|
||||
requestContext.setBody(serializedBody);
|
||||
|
@ -10,7 +10,6 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { CatAllOf } from 'CatAllOf';
|
||||
import { HttpFile } from '../http/http';
|
||||
|
||||
export class Cat {
|
||||
|
@ -10,7 +10,6 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { DogAllOf } from 'DogAllOf';
|
||||
import { HttpFile } from '../http/http';
|
||||
|
||||
export class Dog {
|
||||
|
@ -1,18 +1,22 @@
|
||||
export * from '.models.Cat';
|
||||
export * from '.models.CatAllOf';
|
||||
export * from '.models.Dog';
|
||||
export * from '.models.DogAllOf';
|
||||
export * from '.models.InlineObject';
|
||||
export * from '.models.PetByAge';
|
||||
export * from '.models.PetByType';
|
||||
export * from '../models/Cat';
|
||||
export * from '../models/CatAllOf';
|
||||
export * from '../models/Dog';
|
||||
export * from '../models/DogAllOf';
|
||||
export * from '../models/FilePostRequest';
|
||||
export * from '../models/PetByAge';
|
||||
export * from '../models/PetByType';
|
||||
export * from '../models/PetsFilteredPatchRequest';
|
||||
export * from '../models/PetsPatchRequest';
|
||||
|
||||
import { Cat } from '.models.Cat';
|
||||
import { CatAllOf } from '.models.CatAllOf';
|
||||
import { Dog , DogBreedEnum } from '.models.Dog';
|
||||
import { DogAllOf , DogAllOfBreedEnum } from '.models.DogAllOf';
|
||||
import { InlineObject } from '.models.InlineObject';
|
||||
import { PetByAge } from '.models.PetByAge';
|
||||
import { PetByType, PetByTypePetTypeEnum } from '.models.PetByType';
|
||||
import { Cat } from '../models/Cat';
|
||||
import { CatAllOf } from '../models/CatAllOf';
|
||||
import { Dog , DogBreedEnum } from '../models/Dog';
|
||||
import { DogAllOf , DogAllOfBreedEnum } from '../models/DogAllOf';
|
||||
import { FilePostRequest } from '../models/FilePostRequest';
|
||||
import { PetByAge } from '../models/PetByAge';
|
||||
import { PetByType, PetByTypePetTypeEnum } from '../models/PetByType';
|
||||
import { PetsFilteredPatchRequest , PetsFilteredPatchRequestPetTypeEnum } from '../models/PetsFilteredPatchRequest';
|
||||
import { PetsPatchRequest , PetsPatchRequestBreedEnum } from '../models/PetsPatchRequest';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
@ -37,6 +41,8 @@ let enumsMap: Set<string> = new Set<string>([
|
||||
"DogBreedEnum",
|
||||
"DogAllOfBreedEnum",
|
||||
"PetByTypePetTypeEnum",
|
||||
"PetsFilteredPatchRequestPetTypeEnum",
|
||||
"PetsPatchRequestBreedEnum",
|
||||
]);
|
||||
|
||||
let typeMap: {[index: string]: any} = {
|
||||
@ -44,9 +50,11 @@ let typeMap: {[index: string]: any} = {
|
||||
"CatAllOf": CatAllOf,
|
||||
"Dog": Dog,
|
||||
"DogAllOf": DogAllOf,
|
||||
"InlineObject": InlineObject,
|
||||
"FilePostRequest": FilePostRequest,
|
||||
"PetByAge": PetByAge,
|
||||
"PetByType": PetByType,
|
||||
"PetsFilteredPatchRequest": PetsFilteredPatchRequest,
|
||||
"PetsPatchRequest": PetsPatchRequest,
|
||||
}
|
||||
|
||||
export class ObjectSerializer {
|
||||
|
@ -1,7 +1,9 @@
|
||||
export * from '.models.Cat'
|
||||
export * from '.models.CatAllOf'
|
||||
export * from '.models.Dog'
|
||||
export * from '.models.DogAllOf'
|
||||
export * from '.models.InlineObject'
|
||||
export * from '.models.PetByAge'
|
||||
export * from '.models.PetByType'
|
||||
export * from '../models/Cat'
|
||||
export * from '../models/CatAllOf'
|
||||
export * from '../models/Dog'
|
||||
export * from '../models/DogAllOf'
|
||||
export * from '../models/FilePostRequest'
|
||||
export * from '../models/PetByAge'
|
||||
export * from '../models/PetByType'
|
||||
export * from '../models/PetsFilteredPatchRequest'
|
||||
export * from '../models/PetsPatchRequest'
|
||||
|
@ -1,13 +1,15 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { Cat } from '.models.Cat';
|
||||
import { CatAllOf } from '.models.CatAllOf';
|
||||
import { Dog } from '.models.Dog';
|
||||
import { DogAllOf } from '.models.DogAllOf';
|
||||
import { InlineObject } from '.models.InlineObject';
|
||||
import { PetByAge } from '.models.PetByAge';
|
||||
import { PetByType } from '.models.PetByType';
|
||||
import { Cat } from '../models/Cat';
|
||||
import { CatAllOf } from '../models/CatAllOf';
|
||||
import { Dog } from '../models/Dog';
|
||||
import { DogAllOf } from '../models/DogAllOf';
|
||||
import { FilePostRequest } from '../models/FilePostRequest';
|
||||
import { PetByAge } from '../models/PetByAge';
|
||||
import { PetByType } from '../models/PetByType';
|
||||
import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest';
|
||||
import { PetsPatchRequest } from '../models/PetsPatchRequest';
|
||||
|
||||
import { ObservableDefaultApi } from "./ObservableAPI";
|
||||
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
||||
@ -15,28 +17,28 @@ import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/De
|
||||
export interface DefaultApiFilePostRequest {
|
||||
/**
|
||||
*
|
||||
* @type InlineObject
|
||||
* @type FilePostRequest
|
||||
* @memberof DefaultApifilePost
|
||||
*/
|
||||
inlineObject?: InlineObject
|
||||
filePostRequest?: FilePostRequest
|
||||
}
|
||||
|
||||
export interface DefaultApiPetsFilteredPatchRequest {
|
||||
/**
|
||||
*
|
||||
* @type PetByAge | PetByType
|
||||
* @type PetsFilteredPatchRequest
|
||||
* @memberof DefaultApipetsFilteredPatch
|
||||
*/
|
||||
petByAgePetByType?: PetByAge | PetByType
|
||||
petsFilteredPatchRequest?: PetsFilteredPatchRequest
|
||||
}
|
||||
|
||||
export interface DefaultApiPetsPatchRequest {
|
||||
/**
|
||||
*
|
||||
* @type Cat | Dog
|
||||
* @type PetsPatchRequest
|
||||
* @memberof DefaultApipetsPatch
|
||||
*/
|
||||
catDog?: Cat | Dog
|
||||
petsPatchRequest?: PetsPatchRequest
|
||||
}
|
||||
|
||||
export class ObjectDefaultApi {
|
||||
@ -50,21 +52,21 @@ export class ObjectDefaultApi {
|
||||
* @param param the request object
|
||||
*/
|
||||
public filePost(param: DefaultApiFilePostRequest = {}, options?: Configuration): Promise<void> {
|
||||
return this.api.filePost(param.inlineObject, options).toPromise();
|
||||
return this.api.filePost(param.filePostRequest, options).toPromise();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param param the request object
|
||||
*/
|
||||
public petsFilteredPatch(param: DefaultApiPetsFilteredPatchRequest = {}, options?: Configuration): Promise<void> {
|
||||
return this.api.petsFilteredPatch(param.petByAgePetByType, options).toPromise();
|
||||
return this.api.petsFilteredPatch(param.petsFilteredPatchRequest, options).toPromise();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param param the request object
|
||||
*/
|
||||
public petsPatch(param: DefaultApiPetsPatchRequest = {}, options?: Configuration): Promise<void> {
|
||||
return this.api.petsPatch(param.catDog, options).toPromise();
|
||||
return this.api.petsPatch(param.petsPatchRequest, options).toPromise();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,13 +2,15 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
import { Observable, of, from } from '../rxjsStub';
|
||||
import {mergeMap, map} from '../rxjsStub';
|
||||
import { Cat } from '.models.Cat';
|
||||
import { CatAllOf } from '.models.CatAllOf';
|
||||
import { Dog } from '.models.Dog';
|
||||
import { DogAllOf } from '.models.DogAllOf';
|
||||
import { InlineObject } from '.models.InlineObject';
|
||||
import { PetByAge } from '.models.PetByAge';
|
||||
import { PetByType } from '.models.PetByType';
|
||||
import { Cat } from '../models/Cat';
|
||||
import { CatAllOf } from '../models/CatAllOf';
|
||||
import { Dog } from '../models/Dog';
|
||||
import { DogAllOf } from '../models/DogAllOf';
|
||||
import { FilePostRequest } from '../models/FilePostRequest';
|
||||
import { PetByAge } from '../models/PetByAge';
|
||||
import { PetByType } from '../models/PetByType';
|
||||
import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest';
|
||||
import { PetsPatchRequest } from '../models/PetsPatchRequest';
|
||||
|
||||
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
||||
export class ObservableDefaultApi {
|
||||
@ -27,10 +29,10 @@ export class ObservableDefaultApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param inlineObject
|
||||
* @param filePostRequest
|
||||
*/
|
||||
public filePost(inlineObject?: InlineObject, _options?: Configuration): Observable<void> {
|
||||
const requestContextPromise = this.requestFactory.filePost(inlineObject, _options);
|
||||
public filePost(filePostRequest?: FilePostRequest, _options?: Configuration): Observable<void> {
|
||||
const requestContextPromise = this.requestFactory.filePost(filePostRequest, _options);
|
||||
|
||||
// build promise chain
|
||||
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
||||
@ -49,10 +51,10 @@ export class ObservableDefaultApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param petByAgePetByType
|
||||
* @param petsFilteredPatchRequest
|
||||
*/
|
||||
public petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, _options?: Configuration): Observable<void> {
|
||||
const requestContextPromise = this.requestFactory.petsFilteredPatch(petByAgePetByType, _options);
|
||||
public petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest, _options?: Configuration): Observable<void> {
|
||||
const requestContextPromise = this.requestFactory.petsFilteredPatch(petsFilteredPatchRequest, _options);
|
||||
|
||||
// build promise chain
|
||||
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
||||
@ -71,10 +73,10 @@ export class ObservableDefaultApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param catDog
|
||||
* @param petsPatchRequest
|
||||
*/
|
||||
public petsPatch(catDog?: Cat | Dog, _options?: Configuration): Observable<void> {
|
||||
const requestContextPromise = this.requestFactory.petsPatch(catDog, _options);
|
||||
public petsPatch(petsPatchRequest?: PetsPatchRequest, _options?: Configuration): Observable<void> {
|
||||
const requestContextPromise = this.requestFactory.petsPatch(petsPatchRequest, _options);
|
||||
|
||||
// build promise chain
|
||||
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
||||
|
@ -1,13 +1,15 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { Cat } from '.models.Cat';
|
||||
import { CatAllOf } from '.models.CatAllOf';
|
||||
import { Dog } from '.models.Dog';
|
||||
import { DogAllOf } from '.models.DogAllOf';
|
||||
import { InlineObject } from '.models.InlineObject';
|
||||
import { PetByAge } from '.models.PetByAge';
|
||||
import { PetByType } from '.models.PetByType';
|
||||
import { Cat } from '../models/Cat';
|
||||
import { CatAllOf } from '../models/CatAllOf';
|
||||
import { Dog } from '../models/Dog';
|
||||
import { DogAllOf } from '../models/DogAllOf';
|
||||
import { FilePostRequest } from '../models/FilePostRequest';
|
||||
import { PetByAge } from '../models/PetByAge';
|
||||
import { PetByType } from '../models/PetByType';
|
||||
import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest';
|
||||
import { PetsPatchRequest } from '../models/PetsPatchRequest';
|
||||
import { ObservableDefaultApi } from './ObservableAPI';
|
||||
|
||||
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
||||
@ -23,26 +25,26 @@ export class PromiseDefaultApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param inlineObject
|
||||
* @param filePostRequest
|
||||
*/
|
||||
public filePost(inlineObject?: InlineObject, _options?: Configuration): Promise<void> {
|
||||
const result = this.api.filePost(inlineObject, _options);
|
||||
public filePost(filePostRequest?: FilePostRequest, _options?: Configuration): Promise<void> {
|
||||
const result = this.api.filePost(filePostRequest, _options);
|
||||
return result.toPromise();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param petByAgePetByType
|
||||
* @param petsFilteredPatchRequest
|
||||
*/
|
||||
public petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, _options?: Configuration): Promise<void> {
|
||||
const result = this.api.petsFilteredPatch(petByAgePetByType, _options);
|
||||
public petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest, _options?: Configuration): Promise<void> {
|
||||
const result = this.api.petsFilteredPatch(petsFilteredPatchRequest, _options);
|
||||
return result.toPromise();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param catDog
|
||||
* @param petsPatchRequest
|
||||
*/
|
||||
public petsPatch(catDog?: Cat | Dog, _options?: Configuration): Promise<void> {
|
||||
const result = this.api.petsPatch(catDog, _options);
|
||||
public petsPatch(petsPatchRequest?: PetsPatchRequest, _options?: Configuration): Promise<void> {
|
||||
const result = this.api.petsPatch(petsPatchRequest, _options);
|
||||
return result.toPromise();
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
5.3.0-SNAPSHOT
|
||||
6.3.0-SNAPSHOT
|
@ -18,6 +18,7 @@ Method | HTTP request | Description
|
||||
> Pet addPet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -89,6 +90,7 @@ Name | Type | Description | Notes
|
||||
> deletePet()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -315,6 +317,7 @@ Name | Type | Description | Notes
|
||||
> Pet updatePet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -388,6 +391,7 @@ Name | Type | Description | Notes
|
||||
> updatePetWithForm()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -447,6 +451,7 @@ void (empty response body)
|
||||
> ApiResponse uploadFile()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -173,6 +173,7 @@ No authorization required
|
||||
> Order placeOrder(order)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -81,6 +81,7 @@ void (empty response body)
|
||||
> createUsersWithArrayInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -145,6 +146,7 @@ void (empty response body)
|
||||
> createUsersWithListInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -264,6 +266,7 @@ void (empty response body)
|
||||
> User getUserByName()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -319,6 +322,7 @@ No authorization required
|
||||
> string loginUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -376,6 +380,7 @@ No authorization required
|
||||
> logoutUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -10,8 +10,8 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { ApiResponse } from '/models/ApiResponse';
|
||||
import { Pet } from '/models/Pet';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Pet } from '../models/Pet';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -19,6 +19,7 @@ import { Pet } from '/models/Pet';
|
||||
export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -68,6 +69,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -232,6 +234,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -281,6 +284,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -351,6 +355,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
|
@ -10,7 +10,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { Order } from '/models/Order';
|
||||
import { Order } from '../models/Order';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -112,6 +112,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
|
@ -10,7 +10,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { User } from '/models/User';
|
||||
import { User } from '../models/User';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -66,6 +66,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -113,6 +114,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -198,6 +200,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -229,6 +232,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -276,6 +280,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public async logoutUser(_options?: Configuration): Promise<RequestContext> {
|
||||
|
@ -1,16 +1,16 @@
|
||||
export * from '.models.ApiResponse';
|
||||
export * from '.models.Category';
|
||||
export * from '.models.Order';
|
||||
export * from '.models.Pet';
|
||||
export * from '.models.Tag';
|
||||
export * from '.models.User';
|
||||
export * from '../models/ApiResponse';
|
||||
export * from '../models/Category';
|
||||
export * from '../models/Order';
|
||||
export * from '../models/Pet';
|
||||
export * from '../models/Tag';
|
||||
export * from '../models/User';
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order , OrderStatusEnum } from '.models.Order';
|
||||
import { Pet , PetStatusEnum } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order , OrderStatusEnum } from '../models/Order';
|
||||
import { Pet , PetStatusEnum } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
|
@ -10,8 +10,8 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Category } from 'Category';
|
||||
import { Tag } from 'Tag';
|
||||
import { Category } from '../models/Category';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { HttpFile } from '../http/http';
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
export * from '.models.ApiResponse'
|
||||
export * from '.models.Category'
|
||||
export * from '.models.Order'
|
||||
export * from '.models.Pet'
|
||||
export * from '.models.Tag'
|
||||
export * from '.models.User'
|
||||
export * from '../models/ApiResponse'
|
||||
export * from '../models/Category'
|
||||
export * from '../models/Order'
|
||||
export * from '../models/Pet'
|
||||
export * from '../models/Tag'
|
||||
export * from '../models/User'
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
import { ObservablePetApi } from "./ObservableAPI";
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
@ -121,6 +121,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -129,6 +130,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -164,6 +166,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -172,6 +175,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -180,6 +184,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -257,6 +262,7 @@ export class ObjectStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -364,6 +370,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -372,6 +379,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -389,6 +397,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -397,6 +406,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -405,6 +415,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
* @param param the request object
|
||||
*/
|
||||
|
@ -2,12 +2,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
import { Observable, of, from } from '../rxjsStub';
|
||||
import {mergeMap, map} from '../rxjsStub';
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
export class ObservablePetApi {
|
||||
@ -26,6 +26,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -49,6 +50,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -145,6 +147,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -168,6 +171,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -193,6 +197,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
@ -307,6 +312,7 @@ export class ObservableStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
@ -372,6 +378,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -395,6 +402,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -442,6 +450,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -465,6 +474,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -489,6 +499,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public logoutUser(_options?: Configuration): Observable<void> {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
import { ObservablePetApi } from './ObservableAPI';
|
||||
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
@ -22,6 +22,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -31,6 +32,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -71,6 +73,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -80,6 +83,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -91,6 +95,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
@ -150,6 +155,7 @@ export class PromiseStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
@ -188,6 +194,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -197,6 +204,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -216,6 +224,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -225,6 +234,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -235,6 +245,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public logoutUser(_options?: Configuration): Promise<void> {
|
||||
|
@ -1 +1 @@
|
||||
5.3.0-SNAPSHOT
|
||||
6.3.0-SNAPSHOT
|
@ -18,6 +18,7 @@ Method | HTTP request | Description
|
||||
> Pet addPet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -89,6 +90,7 @@ Name | Type | Description | Notes
|
||||
> deletePet()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -315,6 +317,7 @@ Name | Type | Description | Notes
|
||||
> Pet updatePet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -388,6 +391,7 @@ Name | Type | Description | Notes
|
||||
> updatePetWithForm()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -447,6 +451,7 @@ void (empty response body)
|
||||
> ApiResponse uploadFile()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -173,6 +173,7 @@ No authorization required
|
||||
> Order placeOrder(order)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -81,6 +81,7 @@ void (empty response body)
|
||||
> createUsersWithArrayInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -145,6 +146,7 @@ void (empty response body)
|
||||
> createUsersWithListInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -264,6 +266,7 @@ void (empty response body)
|
||||
> User getUserByName()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -319,6 +322,7 @@ No authorization required
|
||||
> string loginUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -376,6 +380,7 @@ No authorization required
|
||||
> logoutUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
// TODO: better import syntax?
|
||||
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
|
||||
import {Configuration} from '../configuration';
|
||||
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
|
||||
import {ObjectSerializer} from '../models/ObjectSerializer';
|
||||
import {ApiException} from './exception';
|
||||
import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts';
|
||||
import {Configuration} from '../configuration.ts';
|
||||
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts';
|
||||
import {ObjectSerializer} from '../models/ObjectSerializer.ts';
|
||||
import {ApiException} from './exception.ts';
|
||||
import {canConsumeForm, isCodeInRange} from '../util.ts';
|
||||
import {SecurityAuthentication} from '../auth/auth.ts';
|
||||
|
||||
|
||||
import { ApiResponse } from '/models/ApiResponse';
|
||||
import { Pet } from '/models/Pet';
|
||||
import { ApiResponse } from '../models/ApiResponse.ts';
|
||||
import { Pet } from '../models/Pet.ts';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -17,6 +17,7 @@ import { Pet } from '/models/Pet';
|
||||
export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -66,6 +67,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -230,6 +232,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -279,6 +282,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -349,6 +353,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
|
@ -1,14 +1,14 @@
|
||||
// TODO: better import syntax?
|
||||
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
|
||||
import {Configuration} from '../configuration';
|
||||
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
|
||||
import {ObjectSerializer} from '../models/ObjectSerializer';
|
||||
import {ApiException} from './exception';
|
||||
import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts';
|
||||
import {Configuration} from '../configuration.ts';
|
||||
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts';
|
||||
import {ObjectSerializer} from '../models/ObjectSerializer.ts';
|
||||
import {ApiException} from './exception.ts';
|
||||
import {canConsumeForm, isCodeInRange} from '../util.ts';
|
||||
import {SecurityAuthentication} from '../auth/auth.ts';
|
||||
|
||||
|
||||
import { Order } from '/models/Order';
|
||||
import { Order } from '../models/Order.ts';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -110,6 +110,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
|
@ -1,14 +1,14 @@
|
||||
// TODO: better import syntax?
|
||||
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
|
||||
import {Configuration} from '../configuration';
|
||||
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
|
||||
import {ObjectSerializer} from '../models/ObjectSerializer';
|
||||
import {ApiException} from './exception';
|
||||
import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts';
|
||||
import {Configuration} from '../configuration.ts';
|
||||
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts';
|
||||
import {ObjectSerializer} from '../models/ObjectSerializer.ts';
|
||||
import {ApiException} from './exception.ts';
|
||||
import {canConsumeForm, isCodeInRange} from '../util.ts';
|
||||
import {SecurityAuthentication} from '../auth/auth.ts';
|
||||
|
||||
|
||||
import { User } from '/models/User';
|
||||
import { User } from '../models/User.ts';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -64,6 +64,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -111,6 +112,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -196,6 +198,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -227,6 +230,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -274,6 +278,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public async logoutUser(_options?: Configuration): Promise<RequestContext> {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Configuration } from '../configuration'
|
||||
import { Configuration } from '../configuration.ts'
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { RequestContext } from "../http/http";
|
||||
import { RequestContext } from "../http/http.ts";
|
||||
|
||||
/**
|
||||
* Interface authentication schemes.
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { HttpLibrary } from "./http/http";
|
||||
import { Middleware, PromiseMiddleware, PromiseMiddlewareWrapper } from "./middleware";
|
||||
import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch";
|
||||
import { BaseServerConfiguration, server1 } from "./servers";
|
||||
import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth";
|
||||
import { HttpLibrary } from "./http/http.ts";
|
||||
import { Middleware, PromiseMiddleware, PromiseMiddlewareWrapper } from "./middleware.ts";
|
||||
import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch.ts";
|
||||
import { BaseServerConfiguration, server1 } from "./servers.ts";
|
||||
import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth.ts";
|
||||
|
||||
export interface Configuration {
|
||||
readonly baseServer: BaseServerConfiguration;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Observable, from } from '../rxjsStub';
|
||||
import { Observable, from } from '../rxjsStub.ts';
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {HttpLibrary, RequestContext, ResponseContext} from './http';
|
||||
import { from, Observable } from '../rxjsStub';
|
||||
import {HttpLibrary, RequestContext, ResponseContext} from './http.ts';
|
||||
import { from, Observable } from '../rxjsStub.ts';
|
||||
|
||||
export class IsomorphicFetchHttpLibrary implements HttpLibrary {
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
export * from "./http/http";
|
||||
export * from "./auth/auth";
|
||||
export * from "./models/all";
|
||||
export { createConfiguration } from "./configuration"
|
||||
export type { Configuration } from "./configuration"
|
||||
export * from "./apis/exception";
|
||||
export * from "./servers";
|
||||
export { RequiredError } from "./apis/baseapi";
|
||||
export * from "./http/http.ts";
|
||||
export * from "./auth/auth.ts";
|
||||
export * from "./models/all.ts";
|
||||
export { createConfiguration } from "./configuration.ts"
|
||||
export type { Configuration } from "./configuration.ts"
|
||||
export * from "./apis/exception.ts";
|
||||
export * from "./servers.ts";
|
||||
export { RequiredError } from "./apis/baseapi.ts";
|
||||
|
||||
export type { PromiseMiddleware as Middleware } from './middleware';
|
||||
export { PromisePetApi as PetApi, PromiseStoreApi as StoreApi, PromiseUserApi as UserApi } from './types/PromiseAPI';
|
||||
export type { PromiseMiddleware as Middleware } from './middleware.ts';
|
||||
export { PromisePetApi as PetApi, PromiseStoreApi as StoreApi, PromiseUserApi as UserApi } from './types/PromiseAPI.ts';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {RequestContext, ResponseContext} from './http/http';
|
||||
import { Observable, from } from './rxjsStub';
|
||||
import {RequestContext, ResponseContext} from './http/http.ts';
|
||||
import { Observable, from } from './rxjsStub.ts';
|
||||
|
||||
/**
|
||||
* Defines the contract for a middleware intercepting requests before
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { HttpFile } from '../http/http';
|
||||
import { HttpFile } from '../http/http.ts';
|
||||
|
||||
/**
|
||||
* Describes the result of uploading an image resource
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { HttpFile } from '../http/http';
|
||||
import { HttpFile } from '../http/http.ts';
|
||||
|
||||
/**
|
||||
* A category for a pet
|
||||
|
@ -1,16 +1,16 @@
|
||||
export * from '.models.ApiResponse';
|
||||
export * from '.models.Category';
|
||||
export * from '.models.Order';
|
||||
export * from '.models.Pet';
|
||||
export * from '.models.Tag';
|
||||
export * from '.models.User';
|
||||
export * from '../models/ApiResponse.ts';
|
||||
export * from '../models/Category.ts';
|
||||
export * from '../models/Order.ts';
|
||||
export * from '../models/Pet.ts';
|
||||
export * from '../models/Tag.ts';
|
||||
export * from '../models/User.ts';
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order , OrderStatusEnum } from '.models.Order';
|
||||
import { Pet , PetStatusEnum } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse.ts';
|
||||
import { Category } from '../models/Category.ts';
|
||||
import { Order , OrderStatusEnum } from '../models/Order.ts';
|
||||
import { Pet , PetStatusEnum } from '../models/Pet.ts';
|
||||
import { Tag } from '../models/Tag.ts';
|
||||
import { User } from '../models/User.ts';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { HttpFile } from '../http/http';
|
||||
import { HttpFile } from '../http/http.ts';
|
||||
|
||||
/**
|
||||
* An order for a pets from the pet store
|
||||
|
@ -10,9 +10,9 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Category } from 'Category';
|
||||
import { Tag } from 'Tag';
|
||||
import { HttpFile } from '../http/http';
|
||||
import { Category } from '../models/Category.ts';
|
||||
import { Tag } from '../models/Tag.ts';
|
||||
import { HttpFile } from '../http/http.ts';
|
||||
|
||||
/**
|
||||
* A pet for sale in the pet store
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { HttpFile } from '../http/http';
|
||||
import { HttpFile } from '../http/http.ts';
|
||||
|
||||
/**
|
||||
* A tag for a pet
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { HttpFile } from '../http/http';
|
||||
import { HttpFile } from '../http/http.ts';
|
||||
|
||||
/**
|
||||
* A User who is purchasing from the pet store
|
||||
|
@ -1,6 +1,6 @@
|
||||
export * from '.models.ApiResponse'
|
||||
export * from '.models.Category'
|
||||
export * from '.models.Order'
|
||||
export * from '.models.Pet'
|
||||
export * from '.models.Tag'
|
||||
export * from '.models.User'
|
||||
export * from '../models/ApiResponse.ts'
|
||||
export * from '../models/Category.ts'
|
||||
export * from '../models/Order.ts'
|
||||
export * from '../models/Pet.ts'
|
||||
export * from '../models/Tag.ts'
|
||||
export * from '../models/User.ts'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { RequestContext, HttpMethod } from "./http/http";
|
||||
import { RequestContext, HttpMethod } from "./http/http.ts";
|
||||
|
||||
export interface BaseServerConfiguration {
|
||||
makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext;
|
||||
|
@ -1,15 +1,15 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts';
|
||||
import { Configuration} from '../configuration.ts'
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse.ts';
|
||||
import { Category } from '../models/Category.ts';
|
||||
import { Order } from '../models/Order.ts';
|
||||
import { Pet } from '../models/Pet.ts';
|
||||
import { Tag } from '../models/Tag.ts';
|
||||
import { User } from '../models/User.ts';
|
||||
|
||||
import { ObservablePetApi } from "./ObservableAPI";
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
import { ObservablePetApi } from "./ObservableAPI.ts";
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts";
|
||||
|
||||
export interface PetApiAddPetRequest {
|
||||
/**
|
||||
@ -121,6 +121,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -129,6 +130,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -164,6 +166,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -172,6 +175,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -180,6 +184,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -189,8 +194,8 @@ export class ObjectPetApi {
|
||||
|
||||
}
|
||||
|
||||
import { ObservableStoreApi } from "./ObservableAPI";
|
||||
import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi";
|
||||
import { ObservableStoreApi } from "./ObservableAPI.ts";
|
||||
import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi.ts";
|
||||
|
||||
export interface StoreApiDeleteOrderRequest {
|
||||
/**
|
||||
@ -257,6 +262,7 @@ export class ObjectStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -266,8 +272,8 @@ export class ObjectStoreApi {
|
||||
|
||||
}
|
||||
|
||||
import { ObservableUserApi } from "./ObservableAPI";
|
||||
import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi";
|
||||
import { ObservableUserApi } from "./ObservableAPI.ts";
|
||||
import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi.ts";
|
||||
|
||||
export interface UserApiCreateUserRequest {
|
||||
/**
|
||||
@ -364,6 +370,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -372,6 +379,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -389,6 +397,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -397,6 +406,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -405,6 +415,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
* @param param the request object
|
||||
*/
|
||||
|
@ -1,15 +1,15 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
import { Observable, of, from } from '../rxjsStub';
|
||||
import {mergeMap, map} from '../rxjsStub';
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts';
|
||||
import { Configuration} from '../configuration.ts'
|
||||
import { Observable, of, from } from '../rxjsStub.ts';
|
||||
import {mergeMap, map} from '../rxjsStub.ts';
|
||||
import { ApiResponse } from '../models/ApiResponse.ts';
|
||||
import { Category } from '../models/Category.ts';
|
||||
import { Order } from '../models/Order.ts';
|
||||
import { Pet } from '../models/Pet.ts';
|
||||
import { Tag } from '../models/Tag.ts';
|
||||
import { User } from '../models/User.ts';
|
||||
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts";
|
||||
export class ObservablePetApi {
|
||||
private requestFactory: PetApiRequestFactory;
|
||||
private responseProcessor: PetApiResponseProcessor;
|
||||
@ -26,6 +26,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -49,6 +50,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -145,6 +147,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -168,6 +171,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -193,6 +197,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
@ -219,7 +224,7 @@ export class ObservablePetApi {
|
||||
|
||||
}
|
||||
|
||||
import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi";
|
||||
import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi.ts";
|
||||
export class ObservableStoreApi {
|
||||
private requestFactory: StoreApiRequestFactory;
|
||||
private responseProcessor: StoreApiResponseProcessor;
|
||||
@ -307,6 +312,7 @@ export class ObservableStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
@ -331,7 +337,7 @@ export class ObservableStoreApi {
|
||||
|
||||
}
|
||||
|
||||
import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi";
|
||||
import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi.ts";
|
||||
export class ObservableUserApi {
|
||||
private requestFactory: UserApiRequestFactory;
|
||||
private responseProcessor: UserApiResponseProcessor;
|
||||
@ -372,6 +378,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -395,6 +402,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -442,6 +450,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -465,6 +474,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -489,6 +499,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public logoutUser(_options?: Configuration): Observable<void> {
|
||||
|
@ -1,15 +1,15 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts';
|
||||
import { Configuration} from '../configuration.ts'
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ObservablePetApi } from './ObservableAPI';
|
||||
import { ApiResponse } from '../models/ApiResponse.ts';
|
||||
import { Category } from '../models/Category.ts';
|
||||
import { Order } from '../models/Order.ts';
|
||||
import { Pet } from '../models/Pet.ts';
|
||||
import { Tag } from '../models/Tag.ts';
|
||||
import { User } from '../models/User.ts';
|
||||
import { ObservablePetApi } from './ObservableAPI.ts';
|
||||
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts";
|
||||
export class PromisePetApi {
|
||||
private api: ObservablePetApi
|
||||
|
||||
@ -22,6 +22,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -31,6 +32,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -71,6 +73,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -80,6 +83,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -91,6 +95,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
@ -106,9 +111,9 @@ export class PromisePetApi {
|
||||
|
||||
|
||||
|
||||
import { ObservableStoreApi } from './ObservableAPI';
|
||||
import { ObservableStoreApi } from './ObservableAPI.ts';
|
||||
|
||||
import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi";
|
||||
import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi.ts";
|
||||
export class PromiseStoreApi {
|
||||
private api: ObservableStoreApi
|
||||
|
||||
@ -150,6 +155,7 @@ export class PromiseStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
@ -163,9 +169,9 @@ export class PromiseStoreApi {
|
||||
|
||||
|
||||
|
||||
import { ObservableUserApi } from './ObservableAPI';
|
||||
import { ObservableUserApi } from './ObservableAPI.ts';
|
||||
|
||||
import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi";
|
||||
import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi.ts";
|
||||
export class PromiseUserApi {
|
||||
private api: ObservableUserApi
|
||||
|
||||
@ -188,6 +194,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -197,6 +204,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -216,6 +224,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -225,6 +234,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -235,6 +245,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public logoutUser(_options?: Configuration): Promise<void> {
|
||||
|
@ -1 +1 @@
|
||||
5.3.0-SNAPSHOT
|
||||
6.3.0-SNAPSHOT
|
@ -18,6 +18,7 @@ Method | HTTP request | Description
|
||||
> Pet addPet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -89,6 +90,7 @@ Name | Type | Description | Notes
|
||||
> deletePet()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -315,6 +317,7 @@ Name | Type | Description | Notes
|
||||
> Pet updatePet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -388,6 +391,7 @@ Name | Type | Description | Notes
|
||||
> updatePetWithForm()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -447,6 +451,7 @@ void (empty response body)
|
||||
> ApiResponse uploadFile()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -173,6 +173,7 @@ No authorization required
|
||||
> Order placeOrder(order)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -81,6 +81,7 @@ void (empty response body)
|
||||
> createUsersWithArrayInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -145,6 +146,7 @@ void (empty response body)
|
||||
> createUsersWithListInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -264,6 +266,7 @@ void (empty response body)
|
||||
> User getUserByName()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -319,6 +322,7 @@ No authorization required
|
||||
> string loginUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -376,6 +380,7 @@ No authorization required
|
||||
> logoutUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { HttpFile, RequestContext, ResponseContext } from "../http/http";
|
||||
|
||||
import { ApiResponse } from "/models/ApiResponse";
|
||||
import { Pet } from "/models/Pet";
|
||||
import { ApiResponse } from "../models/ApiResponse";
|
||||
import { Pet } from "../models/Pet";
|
||||
|
||||
export abstract class AbstractPetApiRequestFactory {
|
||||
public abstract addPet(pet: Pet, options?: Configuration): Promise<RequestContext>;
|
||||
|
@ -11,8 +11,8 @@ import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
import { injectable } from "inversify";
|
||||
|
||||
import { ApiResponse } from '/models/ApiResponse';
|
||||
import { Pet } from '/models/Pet';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Pet } from '../models/Pet';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -21,6 +21,7 @@ import { Pet } from '/models/Pet';
|
||||
export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -66,6 +67,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -214,6 +216,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -259,6 +262,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -325,6 +329,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { HttpFile, RequestContext, ResponseContext } from "../http/http";
|
||||
|
||||
import { Order } from "/models/Order";
|
||||
import { Order } from "../models/Order";
|
||||
|
||||
export abstract class AbstractStoreApiRequestFactory {
|
||||
public abstract deleteOrder(orderId: string, options?: Configuration): Promise<RequestContext>;
|
||||
|
@ -11,7 +11,7 @@ import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
import { injectable } from "inversify";
|
||||
|
||||
import { Order } from '/models/Order';
|
||||
import { Order } from '../models/Order';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -102,6 +102,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { HttpFile, RequestContext, ResponseContext } from "../http/http";
|
||||
|
||||
import { User } from "/models/User";
|
||||
import { User } from "../models/User";
|
||||
|
||||
export abstract class AbstractUserApiRequestFactory {
|
||||
public abstract createUser(user: User, options?: Configuration): Promise<RequestContext>;
|
||||
|
@ -11,7 +11,7 @@ import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
import { injectable } from "inversify";
|
||||
|
||||
import { User } from '/models/User';
|
||||
import { User } from '../models/User';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -64,6 +64,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -107,6 +108,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -184,6 +186,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -211,6 +214,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -254,6 +258,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public async logoutUser(_options?: Configuration): Promise<RequestContext> {
|
||||
|
@ -1,16 +1,16 @@
|
||||
export * from '.models.ApiResponse';
|
||||
export * from '.models.Category';
|
||||
export * from '.models.Order';
|
||||
export * from '.models.Pet';
|
||||
export * from '.models.Tag';
|
||||
export * from '.models.User';
|
||||
export * from '../models/ApiResponse';
|
||||
export * from '../models/Category';
|
||||
export * from '../models/Order';
|
||||
export * from '../models/Pet';
|
||||
export * from '../models/Tag';
|
||||
export * from '../models/User';
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order , OrderStatusEnum } from '.models.Order';
|
||||
import { Pet , PetStatusEnum } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order , OrderStatusEnum } from '../models/Order';
|
||||
import { Pet , PetStatusEnum } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
|
@ -10,8 +10,8 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Category } from 'Category';
|
||||
import { Tag } from 'Tag';
|
||||
import { Category } from '../models/Category';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { HttpFile } from '../http/http';
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
export * from '.models.ApiResponse'
|
||||
export * from '.models.Category'
|
||||
export * from '.models.Order'
|
||||
export * from '.models.Pet'
|
||||
export * from '.models.Tag'
|
||||
export * from '.models.User'
|
||||
export * from '../models/ApiResponse'
|
||||
export * from '../models/Category'
|
||||
export * from '../models/Order'
|
||||
export * from '../models/Pet'
|
||||
export * from '../models/Tag'
|
||||
export * from '../models/User'
|
||||
|
@ -2,22 +2,24 @@ import type { HttpFile } from '../http/http';
|
||||
import type { Configuration } from '../configuration'
|
||||
import type * as req from "../types/ObjectParamAPI";
|
||||
|
||||
import type { ApiResponse } from '.models.ApiResponse';
|
||||
import type { Category } from '.models.Category';
|
||||
import type { Order } from '.models.Order';
|
||||
import type { Pet } from '.models.Pet';
|
||||
import type { Tag } from '.models.Tag';
|
||||
import type { User } from '.models.User';
|
||||
import type { ApiResponse } from '../models/ApiResponse';
|
||||
import type { Category } from '../models/Category';
|
||||
import type { Order } from '../models/Order';
|
||||
import type { Pet } from '../models/Pet';
|
||||
import type { Tag } from '../models/Tag';
|
||||
import type { User } from '../models/User';
|
||||
|
||||
|
||||
export abstract class AbstractObjectPetApi {
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param param the request object
|
||||
*/
|
||||
public abstract addPet(param: req.PetApiAddPetRequest, options?: Configuration): Promise<Pet>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -45,18 +47,21 @@ export abstract class AbstractObjectPetApi {
|
||||
public abstract getPetById(param: req.PetApiGetPetByIdRequest, options?: Configuration): Promise<Pet>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param param the request object
|
||||
*/
|
||||
public abstract updatePet(param: req.PetApiUpdatePetRequest, options?: Configuration): Promise<Pet>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param param the request object
|
||||
*/
|
||||
public abstract updatePetWithForm(param: req.PetApiUpdatePetWithFormRequest, options?: Configuration): Promise<void>;
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -88,6 +93,7 @@ export abstract class AbstractObjectStoreApi {
|
||||
public abstract getOrderById(param: req.StoreApiGetOrderByIdRequest, options?: Configuration): Promise<Order>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -105,12 +111,14 @@ export abstract class AbstractObjectUserApi {
|
||||
public abstract createUser(param: req.UserApiCreateUserRequest, options?: Configuration): Promise<void>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
public abstract createUsersWithArrayInput(param: req.UserApiCreateUsersWithArrayInputRequest, options?: Configuration): Promise<void>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -124,18 +132,21 @@ export abstract class AbstractObjectUserApi {
|
||||
public abstract deleteUser(param: req.UserApiDeleteUserRequest, options?: Configuration): Promise<void>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param param the request object
|
||||
*/
|
||||
public abstract getUserByName(param: req.UserApiGetUserByNameRequest, options?: Configuration): Promise<User>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param param the request object
|
||||
*/
|
||||
public abstract loginUser(param: req.UserApiLoginUserRequest, options?: Configuration): Promise<string>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
* @param param the request object
|
||||
*/
|
||||
|
@ -2,12 +2,12 @@ import type { HttpFile } from "../http/http";
|
||||
import type { Observable } from "../rxjsStub";
|
||||
import type { Configuration } from "../configuration";
|
||||
|
||||
import { ApiResponse } from ".models.ApiResponse";
|
||||
import { Category } from ".models.Category";
|
||||
import { Order } from ".models.Order";
|
||||
import { Pet } from ".models.Pet";
|
||||
import { Tag } from ".models.Tag";
|
||||
import { User } from ".models.User";
|
||||
import { ApiResponse } from "../models/ApiResponse";
|
||||
import { Category } from "../models/Category";
|
||||
import { Order } from "../models/Order";
|
||||
import { Pet } from "../models/Pet";
|
||||
import { Tag } from "../models/Tag";
|
||||
import { User } from "../models/User";
|
||||
|
||||
|
||||
export abstract class AbstractObservablePetApi {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import type { HttpFile } from "../http/http";
|
||||
import type { Configuration } from "../configuration";
|
||||
|
||||
import { ApiResponse } from ".models.ApiResponse";
|
||||
import { Category } from ".models.Category";
|
||||
import { Order } from ".models.Order";
|
||||
import { Pet } from ".models.Pet";
|
||||
import { Tag } from ".models.Tag";
|
||||
import { User } from ".models.User";
|
||||
import { ApiResponse } from "../models/ApiResponse";
|
||||
import { Category } from "../models/Category";
|
||||
import { Order } from "../models/Order";
|
||||
import { Pet } from "../models/Pet";
|
||||
import { Tag } from "../models/Tag";
|
||||
import { User } from "../models/User";
|
||||
|
||||
|
||||
export abstract class AbstractPromisePetApi {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
||||
import { Configuration} from '../configuration'
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
import { ObservablePetApi } from "./ObservableAPI";
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
@ -121,6 +121,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -129,6 +130,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -164,6 +166,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -172,6 +175,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -180,6 +184,7 @@ export class ObjectPetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -257,6 +262,7 @@ export class ObjectStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -364,6 +370,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -372,6 +379,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -389,6 +397,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -397,6 +406,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param param the request object
|
||||
*/
|
||||
@ -405,6 +415,7 @@ export class ObjectUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
* @param param the request object
|
||||
*/
|
||||
|
@ -4,12 +4,12 @@ import { Observable, of, from } from '../rxjsStub';
|
||||
import {mergeMap, map} from '../rxjsStub';
|
||||
import { injectable, inject, optional } from "inversify";
|
||||
import { AbstractConfiguration } from "../services/configuration";
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
import { AbstractPetApiRequestFactory, AbstractPetApiResponseProcessor } from "../apis/PetApi.service";
|
||||
@ -31,6 +31,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -54,6 +55,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -150,6 +152,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -173,6 +176,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -198,6 +202,7 @@ export class ObservablePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
@ -315,6 +320,7 @@ export class ObservableStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
@ -383,6 +389,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -406,6 +413,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -453,6 +461,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -476,6 +485,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -500,6 +510,7 @@ export class ObservableUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public logoutUser(_options?: Configuration): Observable<void> {
|
||||
|
@ -3,12 +3,12 @@ import { Configuration} from '../configuration'
|
||||
import { injectable, inject, optional } from "inversify";
|
||||
import { AbstractConfiguration } from "../services/configuration";
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order } from '.models.Order';
|
||||
import { Pet } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order } from '../models/Order';
|
||||
import { Pet } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
import { ObservablePetApi } from './ObservableAPI';
|
||||
|
||||
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
|
||||
@ -27,6 +27,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -36,6 +37,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -76,6 +78,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -85,6 +88,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -96,6 +100,7 @@ export class PromisePetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
@ -158,6 +163,7 @@ export class PromiseStoreApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
@ -199,6 +205,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -208,6 +215,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -227,6 +235,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -236,6 +245,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -246,6 +256,7 @@ export class PromiseUserApi {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public logoutUser(_options?: Configuration): Promise<void> {
|
||||
|
@ -1 +1 @@
|
||||
5.3.0-SNAPSHOT
|
||||
6.3.0-SNAPSHOT
|
@ -18,6 +18,7 @@ Method | HTTP request | Description
|
||||
> Pet addPet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -89,6 +90,7 @@ Name | Type | Description | Notes
|
||||
> deletePet()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -315,6 +317,7 @@ Name | Type | Description | Notes
|
||||
> Pet updatePet(pet)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -388,6 +391,7 @@ Name | Type | Description | Notes
|
||||
> updatePetWithForm()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -447,6 +451,7 @@ void (empty response body)
|
||||
> ApiResponse uploadFile()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -173,6 +173,7 @@ No authorization required
|
||||
> Order placeOrder(order)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -81,6 +81,7 @@ void (empty response body)
|
||||
> createUsersWithArrayInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -145,6 +146,7 @@ void (empty response body)
|
||||
> createUsersWithListInput(user)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -264,6 +266,7 @@ void (empty response body)
|
||||
> User getUserByName()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -319,6 +322,7 @@ No authorization required
|
||||
> string loginUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -376,6 +380,7 @@ No authorization required
|
||||
> logoutUser()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
|
@ -8,8 +8,8 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { ApiResponse } from '/models/ApiResponse';
|
||||
import { Pet } from '/models/Pet';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Pet } from '../models/Pet';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -17,6 +17,7 @@ import { Pet } from '/models/Pet';
|
||||
export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new pet to the store
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -66,6 +67,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes a pet
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey
|
||||
@ -230,6 +232,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Update an existing pet
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
*/
|
||||
@ -279,6 +282,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Updates a pet in the store with form data
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet
|
||||
@ -349,6 +353,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* uploads an image
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
|
@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { Order } from '/models/Order';
|
||||
import { Order } from '../models/Order';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -110,6 +110,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Place an order for a pet
|
||||
* @param order order placed for purchasing the pet
|
||||
*/
|
||||
|
@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
|
||||
import {SecurityAuthentication} from '../auth/auth';
|
||||
|
||||
|
||||
import { User } from '/models/User';
|
||||
import { User } from '../models/User';
|
||||
|
||||
/**
|
||||
* no description
|
||||
@ -64,6 +64,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -111,6 +112,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates list of users with given input array
|
||||
* @param user List of user object
|
||||
*/
|
||||
@ -196,6 +198,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get user by user name
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
*/
|
||||
@ -227,6 +230,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs user into the system
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
@ -274,6 +278,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Logs out current logged in user session
|
||||
*/
|
||||
public async logoutUser(_options?: Configuration): Promise<RequestContext> {
|
||||
|
@ -1,16 +1,16 @@
|
||||
export * from '.models.ApiResponse';
|
||||
export * from '.models.Category';
|
||||
export * from '.models.Order';
|
||||
export * from '.models.Pet';
|
||||
export * from '.models.Tag';
|
||||
export * from '.models.User';
|
||||
export * from '../models/ApiResponse';
|
||||
export * from '../models/Category';
|
||||
export * from '../models/Order';
|
||||
export * from '../models/Pet';
|
||||
export * from '../models/Tag';
|
||||
export * from '../models/User';
|
||||
|
||||
import { ApiResponse } from '.models.ApiResponse';
|
||||
import { Category } from '.models.Category';
|
||||
import { Order , OrderStatusEnum } from '.models.Order';
|
||||
import { Pet , PetStatusEnum } from '.models.Pet';
|
||||
import { Tag } from '.models.Tag';
|
||||
import { User } from '.models.User';
|
||||
import { ApiResponse } from '../models/ApiResponse';
|
||||
import { Category } from '../models/Category';
|
||||
import { Order , OrderStatusEnum } from '../models/Order';
|
||||
import { Pet , PetStatusEnum } from '../models/Pet';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { User } from '../models/User';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
|
@ -10,8 +10,8 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Category } from 'Category';
|
||||
import { Tag } from 'Tag';
|
||||
import { Category } from '../models/Category';
|
||||
import { Tag } from '../models/Tag';
|
||||
import { HttpFile } from '../http/http';
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
export * from '.models.ApiResponse'
|
||||
export * from '.models.Category'
|
||||
export * from '.models.Order'
|
||||
export * from '.models.Pet'
|
||||
export * from '.models.Tag'
|
||||
export * from '.models.User'
|
||||
export * from '../models/ApiResponse'
|
||||
export * from '../models/Category'
|
||||
export * from '../models/Order'
|
||||
export * from '../models/Pet'
|
||||
export * from '../models/Tag'
|
||||
export * from '../models/User'
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user