Updated samples

This commit is contained in:
Tino Fuhrmann 2023-01-11 14:09:55 +01:00
parent 02631143f2
commit a0225deb9c
116 changed files with 814 additions and 460 deletions

View File

@ -1 +1 @@
5.3.0-SNAPSHOT 6.3.0-SNAPSHOT

View File

@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { Response } from '/models/Response'; import { Response } from '../models/Response';
/** /**
* no description * no description

View File

@ -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 */ /* tslint:disable:no-unused-variable */
let primitives = [ let primitives = [

View File

@ -10,7 +10,6 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { Set } from 'Set';
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http';
export class Response { export class Response {

View File

@ -1 +1 @@
export * from '.models.Response' export * from '../models/Response'

View File

@ -1,7 +1,7 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { Response } from '.models.Response'; import { Response } from '../models/Response';
import { ObservableDefaultApi } from "./ObservableAPI"; import { ObservableDefaultApi } from "./ObservableAPI";
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";

View File

@ -2,7 +2,7 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { Observable, of, from } from '../rxjsStub'; import { Observable, of, from } from '../rxjsStub';
import {mergeMap, map} from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub';
import { Response } from '.models.Response'; import { Response } from '../models/Response';
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
export class ObservableDefaultApi { export class ObservableDefaultApi {

View File

@ -1,7 +1,7 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { Response } from '.models.Response'; import { Response } from '../models/Response';
import { ObservableDefaultApi } from './ObservableAPI'; import { ObservableDefaultApi } from './ObservableAPI';
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";

View File

@ -18,6 +18,7 @@ Method | HTTP request | Description
> Pet addPet(pet) > Pet addPet(pet)
### Example ### Example
@ -89,6 +90,7 @@ Name | Type | Description | Notes
> deletePet() > deletePet()
### Example ### Example
@ -315,6 +317,7 @@ Name | Type | Description | Notes
> Pet updatePet(pet) > Pet updatePet(pet)
### Example ### Example
@ -388,6 +391,7 @@ Name | Type | Description | Notes
> updatePetWithForm() > updatePetWithForm()
### Example ### Example
@ -447,6 +451,7 @@ void (empty response body)
> ApiResponse uploadFile() > ApiResponse uploadFile()
### Example ### Example

View File

@ -173,6 +173,7 @@ No authorization required
> Order placeOrder(order) > Order placeOrder(order)
### Example ### Example

View File

@ -81,6 +81,7 @@ void (empty response body)
> createUsersWithArrayInput(user) > createUsersWithArrayInput(user)
### Example ### Example
@ -145,6 +146,7 @@ void (empty response body)
> createUsersWithListInput(user) > createUsersWithListInput(user)
### Example ### Example
@ -264,6 +266,7 @@ void (empty response body)
> User getUserByName() > User getUserByName()
### Example ### Example
@ -319,6 +322,7 @@ No authorization required
> string loginUser() > string loginUser()
### Example ### Example
@ -376,6 +380,7 @@ No authorization required
> logoutUser() > logoutUser()
### Example ### Example

View File

@ -8,8 +8,8 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { ApiResponse } from '/models/ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Pet } from '/models/Pet'; import { Pet } from '../models/Pet';
/** /**
* no description * no description
@ -17,6 +17,7 @@ import { Pet } from '/models/Pet';
export class PetApiRequestFactory extends BaseAPIRequestFactory { export class PetApiRequestFactory extends BaseAPIRequestFactory {
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -230,6 +232,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -349,6 +353,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server

View File

@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { Order } from '/models/Order'; import { Order } from '../models/Order';
/** /**
* no description * no description
@ -110,6 +110,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */

View File

@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { User } from '/models/User'; import { User } from '../models/User';
/** /**
* no description * no description
@ -64,6 +64,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -111,6 +112,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -196,6 +198,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @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 * Logs out current logged in user session
*/ */
public async logoutUser(_options?: Configuration): Promise<RequestContext> { public async logoutUser(_options?: Configuration): Promise<RequestContext> {

View File

@ -1,16 +1,16 @@
export * from '.models.ApiResponse'; export * from '../models/ApiResponse';
export * from '.models.Category'; export * from '../models/Category';
export * from '.models.Order'; export * from '../models/Order';
export * from '.models.Pet'; export * from '../models/Pet';
export * from '.models.Tag'; export * from '../models/Tag';
export * from '.models.User'; export * from '../models/User';
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order , OrderStatusEnum } from '.models.Order'; import { Order , OrderStatusEnum } from '../models/Order';
import { Pet , PetStatusEnum } from '.models.Pet'; import { Pet , PetStatusEnum } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
/* tslint:disable:no-unused-variable */ /* tslint:disable:no-unused-variable */
let primitives = [ let primitives = [

View File

@ -10,8 +10,8 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { Category } from 'Category'; import { Category } from '../models/Category';
import { Tag } from 'Tag'; import { Tag } from '../models/Tag';
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http';
/** /**

View File

@ -1,6 +1,6 @@
export * from '.models.ApiResponse' export * from '../models/ApiResponse'
export * from '.models.Category' export * from '../models/Category'
export * from '.models.Order' export * from '../models/Order'
export * from '.models.Pet' export * from '../models/Pet'
export * from '.models.Tag' export * from '../models/Tag'
export * from '.models.User' export * from '../models/User'

View File

@ -1,12 +1,12 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { ObservablePetApi } from "./ObservableAPI"; import { ObservablePetApi } from "./ObservableAPI";
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
@ -121,6 +121,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param param the request object * @param param the request object
*/ */
@ -129,6 +130,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Deletes a pet * Deletes a pet
* @param param the request object * @param param the request object
*/ */
@ -164,6 +166,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param param the request object * @param param the request object
*/ */
@ -172,6 +175,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Updates a pet in the store with form data * Updates a pet in the store with form data
* @param param the request object * @param param the request object
*/ */
@ -180,6 +184,7 @@ export class ObjectPetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param param the request object * @param param the request object
*/ */
@ -257,6 +262,7 @@ export class ObjectStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param param the request object * @param param the request object
*/ */
@ -364,6 +370,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -372,6 +379,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -389,6 +397,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param param the request object * @param param the request object
*/ */
@ -397,6 +406,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Logs user into the system * Logs user into the system
* @param param the request object * @param param the request object
*/ */
@ -405,6 +415,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
* @param param the request object * @param param the request object
*/ */

View File

@ -2,12 +2,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { Observable, of, from } from '../rxjsStub'; import { Observable, of, from } from '../rxjsStub';
import {mergeMap, map} from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub';
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
export class ObservablePetApi { export class ObservablePetApi {
@ -26,6 +26,7 @@ export class ObservablePetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -145,6 +147,7 @@ export class ObservablePetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -193,6 +197,7 @@ export class ObservablePetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server
@ -307,6 +312,7 @@ export class ObservableStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */
@ -372,6 +378,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -395,6 +402,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -442,6 +450,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
@ -489,6 +499,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
*/ */
public logoutUser(_options?: Configuration): Observable<void> { public logoutUser(_options?: Configuration): Observable<void> {

View File

@ -1,12 +1,12 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { ObservablePetApi } from './ObservableAPI'; import { ObservablePetApi } from './ObservableAPI';
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
@ -22,6 +22,7 @@ export class PromisePetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -71,6 +73,7 @@ export class PromisePetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -91,6 +95,7 @@ export class PromisePetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server
@ -150,6 +155,7 @@ export class PromiseStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */
@ -188,6 +194,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -197,6 +204,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -216,6 +224,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
@ -235,6 +245,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
*/ */
public logoutUser(_options?: Configuration): Promise<void> { public logoutUser(_options?: Configuration): Promise<void> {

View File

@ -15,10 +15,12 @@ models/Cat.ts
models/CatAllOf.ts models/CatAllOf.ts
models/Dog.ts models/Dog.ts
models/DogAllOf.ts models/DogAllOf.ts
models/InlineObject.ts models/FilePostRequest.ts
models/ObjectSerializer.ts models/ObjectSerializer.ts
models/PetByAge.ts models/PetByAge.ts
models/PetByType.ts models/PetByType.ts
models/PetsFilteredPatchRequest.ts
models/PetsPatchRequest.ts
models/all.ts models/all.ts
package.json package.json
rxjsStub.ts rxjsStub.ts

View File

@ -24,9 +24,9 @@ const configuration = .createConfiguration();
const apiInstance = new .DefaultApi(configuration); const apiInstance = new .DefaultApi(configuration);
let body:.DefaultApiFilePostRequest = { let body:.DefaultApiFilePostRequest = {
// InlineObject (optional) // FilePostRequest (optional)
inlineObject: { filePostRequest: {
file: , file: null,
}, },
}; };
@ -40,7 +40,7 @@ apiInstance.filePost(body).then((data:any) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**inlineObject** | **InlineObject**| | **filePostRequest** | **FilePostRequest**| |
### Return type ### Return type
@ -79,8 +79,8 @@ const configuration = .createConfiguration();
const apiInstance = new .DefaultApi(configuration); const apiInstance = new .DefaultApi(configuration);
let body:.DefaultApiPetsFilteredPatchRequest = { let body:.DefaultApiPetsFilteredPatchRequest = {
// PetByAge | PetByType (optional) // PetsFilteredPatchRequest (optional)
petByAgePetByType: , petsFilteredPatchRequest: null,
}; };
apiInstance.petsFilteredPatch(body).then((data:any) => { apiInstance.petsFilteredPatch(body).then((data:any) => {
@ -93,7 +93,7 @@ apiInstance.petsFilteredPatch(body).then((data:any) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petByAgePetByType** | **PetByAge | PetByType**| | **petsFilteredPatchRequest** | **PetsFilteredPatchRequest**| |
### Return type ### Return type
@ -132,8 +132,8 @@ const configuration = .createConfiguration();
const apiInstance = new .DefaultApi(configuration); const apiInstance = new .DefaultApi(configuration);
let body:.DefaultApiPetsPatchRequest = { let body:.DefaultApiPetsPatchRequest = {
// Cat | Dog (optional) // PetsPatchRequest (optional)
catDog: , petsPatchRequest: null,
}; };
apiInstance.petsPatch(body).then((data:any) => { apiInstance.petsPatch(body).then((data:any) => {
@ -146,7 +146,7 @@ apiInstance.petsPatch(body).then((data:any) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**catDog** | **Cat | Dog**| | **petsPatchRequest** | **PetsPatchRequest**| |
### Return type ### Return type

View File

@ -8,11 +8,9 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { Cat } from '/models/Cat'; import { FilePostRequest } from '../models/FilePostRequest';
import { Dog } from '/models/Dog'; import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest';
import { InlineObject } from '/models/InlineObject'; import { PetsPatchRequest } from '../models/PetsPatchRequest';
import { PetByAge } from '/models/PetByAge';
import { PetByType } from '/models/PetByType';
/** /**
* no description * no description
@ -20,9 +18,9 @@ import { PetByType } from '/models/PetByType';
export class DefaultApiRequestFactory extends BaseAPIRequestFactory { 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; let _config = _options || this.configuration;
@ -40,7 +38,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
]); ]);
requestContext.setHeaderParam("Content-Type", contentType); requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify( const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(inlineObject, "InlineObject", ""), ObjectSerializer.serialize(filePostRequest, "FilePostRequest", ""),
contentType contentType
); );
requestContext.setBody(serializedBody); 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; let _config = _options || this.configuration;
@ -75,7 +73,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
]); ]);
requestContext.setHeaderParam("Content-Type", contentType); requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify( const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(petByAgePetByType, "PetByAge | PetByType", ""), ObjectSerializer.serialize(petsFilteredPatchRequest, "PetsFilteredPatchRequest", ""),
contentType contentType
); );
requestContext.setBody(serializedBody); 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; let _config = _options || this.configuration;
@ -110,7 +108,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory {
]); ]);
requestContext.setHeaderParam("Content-Type", contentType); requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify( const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(catDog, "Cat | Dog", ""), ObjectSerializer.serialize(petsPatchRequest, "PetsPatchRequest", ""),
contentType contentType
); );
requestContext.setBody(serializedBody); requestContext.setBody(serializedBody);

View File

@ -10,7 +10,6 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { CatAllOf } from 'CatAllOf';
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http';
export class Cat { export class Cat {

View File

@ -10,7 +10,6 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { DogAllOf } from 'DogAllOf';
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http';
export class Dog { export class Dog {

View File

@ -1,18 +1,22 @@
export * from '.models.Cat'; export * from '../models/Cat';
export * from '.models.CatAllOf'; export * from '../models/CatAllOf';
export * from '.models.Dog'; export * from '../models/Dog';
export * from '.models.DogAllOf'; export * from '../models/DogAllOf';
export * from '.models.InlineObject'; export * from '../models/FilePostRequest';
export * from '.models.PetByAge'; export * from '../models/PetByAge';
export * from '.models.PetByType'; export * from '../models/PetByType';
export * from '../models/PetsFilteredPatchRequest';
export * from '../models/PetsPatchRequest';
import { Cat } from '.models.Cat'; import { Cat } from '../models/Cat';
import { CatAllOf } from '.models.CatAllOf'; import { CatAllOf } from '../models/CatAllOf';
import { Dog , DogBreedEnum } from '.models.Dog'; import { Dog , DogBreedEnum } from '../models/Dog';
import { DogAllOf , DogAllOfBreedEnum } from '.models.DogAllOf'; import { DogAllOf , DogAllOfBreedEnum } from '../models/DogAllOf';
import { InlineObject } from '.models.InlineObject'; import { FilePostRequest } from '../models/FilePostRequest';
import { PetByAge } from '.models.PetByAge'; import { PetByAge } from '../models/PetByAge';
import { PetByType, PetByTypePetTypeEnum } from '.models.PetByType'; import { PetByType, PetByTypePetTypeEnum } from '../models/PetByType';
import { PetsFilteredPatchRequest , PetsFilteredPatchRequestPetTypeEnum } from '../models/PetsFilteredPatchRequest';
import { PetsPatchRequest , PetsPatchRequestBreedEnum } from '../models/PetsPatchRequest';
/* tslint:disable:no-unused-variable */ /* tslint:disable:no-unused-variable */
let primitives = [ let primitives = [
@ -37,6 +41,8 @@ let enumsMap: Set<string> = new Set<string>([
"DogBreedEnum", "DogBreedEnum",
"DogAllOfBreedEnum", "DogAllOfBreedEnum",
"PetByTypePetTypeEnum", "PetByTypePetTypeEnum",
"PetsFilteredPatchRequestPetTypeEnum",
"PetsPatchRequestBreedEnum",
]); ]);
let typeMap: {[index: string]: any} = { let typeMap: {[index: string]: any} = {
@ -44,9 +50,11 @@ let typeMap: {[index: string]: any} = {
"CatAllOf": CatAllOf, "CatAllOf": CatAllOf,
"Dog": Dog, "Dog": Dog,
"DogAllOf": DogAllOf, "DogAllOf": DogAllOf,
"InlineObject": InlineObject, "FilePostRequest": FilePostRequest,
"PetByAge": PetByAge, "PetByAge": PetByAge,
"PetByType": PetByType, "PetByType": PetByType,
"PetsFilteredPatchRequest": PetsFilteredPatchRequest,
"PetsPatchRequest": PetsPatchRequest,
} }
export class ObjectSerializer { export class ObjectSerializer {

View File

@ -1,7 +1,9 @@
export * from '.models.Cat' export * from '../models/Cat'
export * from '.models.CatAllOf' export * from '../models/CatAllOf'
export * from '.models.Dog' export * from '../models/Dog'
export * from '.models.DogAllOf' export * from '../models/DogAllOf'
export * from '.models.InlineObject' export * from '../models/FilePostRequest'
export * from '.models.PetByAge' export * from '../models/PetByAge'
export * from '.models.PetByType' export * from '../models/PetByType'
export * from '../models/PetsFilteredPatchRequest'
export * from '../models/PetsPatchRequest'

View File

@ -1,13 +1,15 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { Cat } from '.models.Cat'; import { Cat } from '../models/Cat';
import { CatAllOf } from '.models.CatAllOf'; import { CatAllOf } from '../models/CatAllOf';
import { Dog } from '.models.Dog'; import { Dog } from '../models/Dog';
import { DogAllOf } from '.models.DogAllOf'; import { DogAllOf } from '../models/DogAllOf';
import { InlineObject } from '.models.InlineObject'; import { FilePostRequest } from '../models/FilePostRequest';
import { PetByAge } from '.models.PetByAge'; import { PetByAge } from '../models/PetByAge';
import { PetByType } from '.models.PetByType'; import { PetByType } from '../models/PetByType';
import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest';
import { PetsPatchRequest } from '../models/PetsPatchRequest';
import { ObservableDefaultApi } from "./ObservableAPI"; import { ObservableDefaultApi } from "./ObservableAPI";
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
@ -15,28 +17,28 @@ import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/De
export interface DefaultApiFilePostRequest { export interface DefaultApiFilePostRequest {
/** /**
* *
* @type InlineObject * @type FilePostRequest
* @memberof DefaultApifilePost * @memberof DefaultApifilePost
*/ */
inlineObject?: InlineObject filePostRequest?: FilePostRequest
} }
export interface DefaultApiPetsFilteredPatchRequest { export interface DefaultApiPetsFilteredPatchRequest {
/** /**
* *
* @type PetByAge | PetByType * @type PetsFilteredPatchRequest
* @memberof DefaultApipetsFilteredPatch * @memberof DefaultApipetsFilteredPatch
*/ */
petByAgePetByType?: PetByAge | PetByType petsFilteredPatchRequest?: PetsFilteredPatchRequest
} }
export interface DefaultApiPetsPatchRequest { export interface DefaultApiPetsPatchRequest {
/** /**
* *
* @type Cat | Dog * @type PetsPatchRequest
* @memberof DefaultApipetsPatch * @memberof DefaultApipetsPatch
*/ */
catDog?: Cat | Dog petsPatchRequest?: PetsPatchRequest
} }
export class ObjectDefaultApi { export class ObjectDefaultApi {
@ -50,21 +52,21 @@ export class ObjectDefaultApi {
* @param param the request object * @param param the request object
*/ */
public filePost(param: DefaultApiFilePostRequest = {}, options?: Configuration): Promise<void> { 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 * @param param the request object
*/ */
public petsFilteredPatch(param: DefaultApiPetsFilteredPatchRequest = {}, options?: Configuration): Promise<void> { 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 * @param param the request object
*/ */
public petsPatch(param: DefaultApiPetsPatchRequest = {}, options?: Configuration): Promise<void> { public petsPatch(param: DefaultApiPetsPatchRequest = {}, options?: Configuration): Promise<void> {
return this.api.petsPatch(param.catDog, options).toPromise(); return this.api.petsPatch(param.petsPatchRequest, options).toPromise();
} }
} }

View File

@ -2,13 +2,15 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { Observable, of, from } from '../rxjsStub'; import { Observable, of, from } from '../rxjsStub';
import {mergeMap, map} from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub';
import { Cat } from '.models.Cat'; import { Cat } from '../models/Cat';
import { CatAllOf } from '.models.CatAllOf'; import { CatAllOf } from '../models/CatAllOf';
import { Dog } from '.models.Dog'; import { Dog } from '../models/Dog';
import { DogAllOf } from '.models.DogAllOf'; import { DogAllOf } from '../models/DogAllOf';
import { InlineObject } from '.models.InlineObject'; import { FilePostRequest } from '../models/FilePostRequest';
import { PetByAge } from '.models.PetByAge'; import { PetByAge } from '../models/PetByAge';
import { PetByType } from '.models.PetByType'; import { PetByType } from '../models/PetByType';
import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest';
import { PetsPatchRequest } from '../models/PetsPatchRequest';
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
export class ObservableDefaultApi { export class ObservableDefaultApi {
@ -27,10 +29,10 @@ export class ObservableDefaultApi {
} }
/** /**
* @param inlineObject * @param filePostRequest
*/ */
public filePost(inlineObject?: InlineObject, _options?: Configuration): Observable<void> { public filePost(filePostRequest?: FilePostRequest, _options?: Configuration): Observable<void> {
const requestContextPromise = this.requestFactory.filePost(inlineObject, _options); const requestContextPromise = this.requestFactory.filePost(filePostRequest, _options);
// build promise chain // build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise); 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> { public petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest, _options?: Configuration): Observable<void> {
const requestContextPromise = this.requestFactory.petsFilteredPatch(petByAgePetByType, _options); const requestContextPromise = this.requestFactory.petsFilteredPatch(petsFilteredPatchRequest, _options);
// build promise chain // build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise); 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> { public petsPatch(petsPatchRequest?: PetsPatchRequest, _options?: Configuration): Observable<void> {
const requestContextPromise = this.requestFactory.petsPatch(catDog, _options); const requestContextPromise = this.requestFactory.petsPatch(petsPatchRequest, _options);
// build promise chain // build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise); let middlewarePreObservable = from<RequestContext>(requestContextPromise);

View File

@ -1,13 +1,15 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { Cat } from '.models.Cat'; import { Cat } from '../models/Cat';
import { CatAllOf } from '.models.CatAllOf'; import { CatAllOf } from '../models/CatAllOf';
import { Dog } from '.models.Dog'; import { Dog } from '../models/Dog';
import { DogAllOf } from '.models.DogAllOf'; import { DogAllOf } from '../models/DogAllOf';
import { InlineObject } from '.models.InlineObject'; import { FilePostRequest } from '../models/FilePostRequest';
import { PetByAge } from '.models.PetByAge'; import { PetByAge } from '../models/PetByAge';
import { PetByType } from '.models.PetByType'; import { PetByType } from '../models/PetByType';
import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest';
import { PetsPatchRequest } from '../models/PetsPatchRequest';
import { ObservableDefaultApi } from './ObservableAPI'; import { ObservableDefaultApi } from './ObservableAPI';
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; 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> { public filePost(filePostRequest?: FilePostRequest, _options?: Configuration): Promise<void> {
const result = this.api.filePost(inlineObject, _options); const result = this.api.filePost(filePostRequest, _options);
return result.toPromise(); return result.toPromise();
} }
/** /**
* @param petByAgePetByType * @param petsFilteredPatchRequest
*/ */
public petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, _options?: Configuration): Promise<void> { public petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest, _options?: Configuration): Promise<void> {
const result = this.api.petsFilteredPatch(petByAgePetByType, _options); const result = this.api.petsFilteredPatch(petsFilteredPatchRequest, _options);
return result.toPromise(); return result.toPromise();
} }
/** /**
* @param catDog * @param petsPatchRequest
*/ */
public petsPatch(catDog?: Cat | Dog, _options?: Configuration): Promise<void> { public petsPatch(petsPatchRequest?: PetsPatchRequest, _options?: Configuration): Promise<void> {
const result = this.api.petsPatch(catDog, _options); const result = this.api.petsPatch(petsPatchRequest, _options);
return result.toPromise(); return result.toPromise();
} }

View File

@ -18,6 +18,7 @@ Method | HTTP request | Description
> Pet addPet(pet) > Pet addPet(pet)
### Example ### Example
@ -89,6 +90,7 @@ Name | Type | Description | Notes
> deletePet() > deletePet()
### Example ### Example
@ -315,6 +317,7 @@ Name | Type | Description | Notes
> Pet updatePet(pet) > Pet updatePet(pet)
### Example ### Example
@ -388,6 +391,7 @@ Name | Type | Description | Notes
> updatePetWithForm() > updatePetWithForm()
### Example ### Example
@ -447,6 +451,7 @@ void (empty response body)
> ApiResponse uploadFile() > ApiResponse uploadFile()
### Example ### Example

View File

@ -173,6 +173,7 @@ No authorization required
> Order placeOrder(order) > Order placeOrder(order)
### Example ### Example

View File

@ -81,6 +81,7 @@ void (empty response body)
> createUsersWithArrayInput(user) > createUsersWithArrayInput(user)
### Example ### Example
@ -145,6 +146,7 @@ void (empty response body)
> createUsersWithListInput(user) > createUsersWithListInput(user)
### Example ### Example
@ -264,6 +266,7 @@ void (empty response body)
> User getUserByName() > User getUserByName()
### Example ### Example
@ -319,6 +322,7 @@ No authorization required
> string loginUser() > string loginUser()
### Example ### Example
@ -376,6 +380,7 @@ No authorization required
> logoutUser() > logoutUser()
### Example ### Example

View File

@ -10,8 +10,8 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { ApiResponse } from '/models/ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Pet } from '/models/Pet'; import { Pet } from '../models/Pet';
/** /**
* no description * no description
@ -19,6 +19,7 @@ import { Pet } from '/models/Pet';
export class PetApiRequestFactory extends BaseAPIRequestFactory { export class PetApiRequestFactory extends BaseAPIRequestFactory {
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -232,6 +234,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -351,6 +355,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server

View File

@ -10,7 +10,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { Order } from '/models/Order'; import { Order } from '../models/Order';
/** /**
* no description * no description
@ -112,6 +112,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */

View File

@ -10,7 +10,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { User } from '/models/User'; import { User } from '../models/User';
/** /**
* no description * no description
@ -66,6 +66,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -113,6 +114,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -198,6 +200,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @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 * Logs out current logged in user session
*/ */
public async logoutUser(_options?: Configuration): Promise<RequestContext> { public async logoutUser(_options?: Configuration): Promise<RequestContext> {

View File

@ -1,16 +1,16 @@
export * from '.models.ApiResponse'; export * from '../models/ApiResponse';
export * from '.models.Category'; export * from '../models/Category';
export * from '.models.Order'; export * from '../models/Order';
export * from '.models.Pet'; export * from '../models/Pet';
export * from '.models.Tag'; export * from '../models/Tag';
export * from '.models.User'; export * from '../models/User';
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order , OrderStatusEnum } from '.models.Order'; import { Order , OrderStatusEnum } from '../models/Order';
import { Pet , PetStatusEnum } from '.models.Pet'; import { Pet , PetStatusEnum } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
/* tslint:disable:no-unused-variable */ /* tslint:disable:no-unused-variable */
let primitives = [ let primitives = [

View File

@ -10,8 +10,8 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { Category } from 'Category'; import { Category } from '../models/Category';
import { Tag } from 'Tag'; import { Tag } from '../models/Tag';
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http';
/** /**

View File

@ -1,6 +1,6 @@
export * from '.models.ApiResponse' export * from '../models/ApiResponse'
export * from '.models.Category' export * from '../models/Category'
export * from '.models.Order' export * from '../models/Order'
export * from '.models.Pet' export * from '../models/Pet'
export * from '.models.Tag' export * from '../models/Tag'
export * from '.models.User' export * from '../models/User'

View File

@ -1,12 +1,12 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { ObservablePetApi } from "./ObservableAPI"; import { ObservablePetApi } from "./ObservableAPI";
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
@ -121,6 +121,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param param the request object * @param param the request object
*/ */
@ -129,6 +130,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Deletes a pet * Deletes a pet
* @param param the request object * @param param the request object
*/ */
@ -164,6 +166,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param param the request object * @param param the request object
*/ */
@ -172,6 +175,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Updates a pet in the store with form data * Updates a pet in the store with form data
* @param param the request object * @param param the request object
*/ */
@ -180,6 +184,7 @@ export class ObjectPetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param param the request object * @param param the request object
*/ */
@ -257,6 +262,7 @@ export class ObjectStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param param the request object * @param param the request object
*/ */
@ -364,6 +370,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -372,6 +379,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -389,6 +397,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param param the request object * @param param the request object
*/ */
@ -397,6 +406,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Logs user into the system * Logs user into the system
* @param param the request object * @param param the request object
*/ */
@ -405,6 +415,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
* @param param the request object * @param param the request object
*/ */

View File

@ -2,12 +2,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { Observable, of, from } from '../rxjsStub'; import { Observable, of, from } from '../rxjsStub';
import {mergeMap, map} from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub';
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
export class ObservablePetApi { export class ObservablePetApi {
@ -26,6 +26,7 @@ export class ObservablePetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -145,6 +147,7 @@ export class ObservablePetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -193,6 +197,7 @@ export class ObservablePetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server
@ -307,6 +312,7 @@ export class ObservableStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */
@ -372,6 +378,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -395,6 +402,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -442,6 +450,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
@ -489,6 +499,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
*/ */
public logoutUser(_options?: Configuration): Observable<void> { public logoutUser(_options?: Configuration): Observable<void> {

View File

@ -1,12 +1,12 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { ObservablePetApi } from './ObservableAPI'; import { ObservablePetApi } from './ObservableAPI';
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
@ -22,6 +22,7 @@ export class PromisePetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -71,6 +73,7 @@ export class PromisePetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -91,6 +95,7 @@ export class PromisePetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server
@ -150,6 +155,7 @@ export class PromiseStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */
@ -188,6 +194,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -197,6 +204,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -216,6 +224,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
@ -235,6 +245,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
*/ */
public logoutUser(_options?: Configuration): Promise<void> { public logoutUser(_options?: Configuration): Promise<void> {

View File

@ -1 +1 @@
5.3.0-SNAPSHOT 6.3.0-SNAPSHOT

View File

@ -18,6 +18,7 @@ Method | HTTP request | Description
> Pet addPet(pet) > Pet addPet(pet)
### Example ### Example
@ -89,6 +90,7 @@ Name | Type | Description | Notes
> deletePet() > deletePet()
### Example ### Example
@ -315,6 +317,7 @@ Name | Type | Description | Notes
> Pet updatePet(pet) > Pet updatePet(pet)
### Example ### Example
@ -388,6 +391,7 @@ Name | Type | Description | Notes
> updatePetWithForm() > updatePetWithForm()
### Example ### Example
@ -447,6 +451,7 @@ void (empty response body)
> ApiResponse uploadFile() > ApiResponse uploadFile()
### Example ### Example

View File

@ -173,6 +173,7 @@ No authorization required
> Order placeOrder(order) > Order placeOrder(order)
### Example ### Example

View File

@ -81,6 +81,7 @@ void (empty response body)
> createUsersWithArrayInput(user) > createUsersWithArrayInput(user)
### Example ### Example
@ -145,6 +146,7 @@ void (empty response body)
> createUsersWithListInput(user) > createUsersWithListInput(user)
### Example ### Example
@ -264,6 +266,7 @@ void (empty response body)
> User getUserByName() > User getUserByName()
### Example ### Example
@ -319,6 +322,7 @@ No authorization required
> string loginUser() > string loginUser()
### Example ### Example
@ -376,6 +380,7 @@ No authorization required
> logoutUser() > logoutUser()
### Example ### Example

View File

@ -1,15 +1,15 @@
// TODO: better import syntax? // TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts';
import {Configuration} from '../configuration'; import {Configuration} from '../configuration.ts';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts';
import {ObjectSerializer} from '../models/ObjectSerializer'; import {ObjectSerializer} from '../models/ObjectSerializer.ts';
import {ApiException} from './exception'; import {ApiException} from './exception.ts';
import {canConsumeForm, isCodeInRange} from '../util'; import {canConsumeForm, isCodeInRange} from '../util.ts';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth.ts';
import { ApiResponse } from '/models/ApiResponse'; import { ApiResponse } from '../models/ApiResponse.ts';
import { Pet } from '/models/Pet'; import { Pet } from '../models/Pet.ts';
/** /**
* no description * no description
@ -17,6 +17,7 @@ import { Pet } from '/models/Pet';
export class PetApiRequestFactory extends BaseAPIRequestFactory { export class PetApiRequestFactory extends BaseAPIRequestFactory {
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -230,6 +232,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -349,6 +353,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server

View File

@ -1,14 +1,14 @@
// TODO: better import syntax? // TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts';
import {Configuration} from '../configuration'; import {Configuration} from '../configuration.ts';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts';
import {ObjectSerializer} from '../models/ObjectSerializer'; import {ObjectSerializer} from '../models/ObjectSerializer.ts';
import {ApiException} from './exception'; import {ApiException} from './exception.ts';
import {canConsumeForm, isCodeInRange} from '../util'; import {canConsumeForm, isCodeInRange} from '../util.ts';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth.ts';
import { Order } from '/models/Order'; import { Order } from '../models/Order.ts';
/** /**
* no description * no description
@ -110,6 +110,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */

View File

@ -1,14 +1,14 @@
// TODO: better import syntax? // TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts';
import {Configuration} from '../configuration'; import {Configuration} from '../configuration.ts';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts';
import {ObjectSerializer} from '../models/ObjectSerializer'; import {ObjectSerializer} from '../models/ObjectSerializer.ts';
import {ApiException} from './exception'; import {ApiException} from './exception.ts';
import {canConsumeForm, isCodeInRange} from '../util'; import {canConsumeForm, isCodeInRange} from '../util.ts';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth.ts';
import { User } from '/models/User'; import { User } from '../models/User.ts';
/** /**
* no description * no description
@ -64,6 +64,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -111,6 +112,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -196,6 +198,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @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 * Logs out current logged in user session
*/ */
public async logoutUser(_options?: Configuration): Promise<RequestContext> { public async logoutUser(_options?: Configuration): Promise<RequestContext> {

View File

@ -1,4 +1,4 @@
import { Configuration } from '../configuration' import { Configuration } from '../configuration.ts'
/** /**
* *

View File

@ -1,4 +1,4 @@
import { RequestContext } from "../http/http"; import { RequestContext } from "../http/http.ts";
/** /**
* Interface authentication schemes. * Interface authentication schemes.

View File

@ -1,8 +1,8 @@
import { HttpLibrary } from "./http/http"; import { HttpLibrary } from "./http/http.ts";
import { Middleware, PromiseMiddleware, PromiseMiddlewareWrapper } from "./middleware"; import { Middleware, PromiseMiddleware, PromiseMiddlewareWrapper } from "./middleware.ts";
import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch"; import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch.ts";
import { BaseServerConfiguration, server1 } from "./servers"; import { BaseServerConfiguration, server1 } from "./servers.ts";
import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth"; import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth.ts";
export interface Configuration { export interface Configuration {
readonly baseServer: BaseServerConfiguration; readonly baseServer: BaseServerConfiguration;

View File

@ -1,4 +1,4 @@
import { Observable, from } from '../rxjsStub'; import { Observable, from } from '../rxjsStub.ts';
/** /**

View File

@ -1,5 +1,5 @@
import {HttpLibrary, RequestContext, ResponseContext} from './http'; import {HttpLibrary, RequestContext, ResponseContext} from './http.ts';
import { from, Observable } from '../rxjsStub'; import { from, Observable } from '../rxjsStub.ts';
export class IsomorphicFetchHttpLibrary implements HttpLibrary { export class IsomorphicFetchHttpLibrary implements HttpLibrary {

View File

@ -1,12 +1,12 @@
export * from "./http/http"; export * from "./http/http.ts";
export * from "./auth/auth"; export * from "./auth/auth.ts";
export * from "./models/all"; export * from "./models/all.ts";
export { createConfiguration } from "./configuration" export { createConfiguration } from "./configuration.ts"
export type { Configuration } from "./configuration" export type { Configuration } from "./configuration.ts"
export * from "./apis/exception"; export * from "./apis/exception.ts";
export * from "./servers"; export * from "./servers.ts";
export { RequiredError } from "./apis/baseapi"; export { RequiredError } from "./apis/baseapi.ts";
export type { PromiseMiddleware as Middleware } from './middleware'; export type { PromiseMiddleware as Middleware } from './middleware.ts';
export { PromisePetApi as PetApi, PromiseStoreApi as StoreApi, PromiseUserApi as UserApi } from './types/PromiseAPI'; export { PromisePetApi as PetApi, PromiseStoreApi as StoreApi, PromiseUserApi as UserApi } from './types/PromiseAPI.ts';

View File

@ -1,5 +1,5 @@
import {RequestContext, ResponseContext} from './http/http'; import {RequestContext, ResponseContext} from './http/http.ts';
import { Observable, from } from './rxjsStub'; import { Observable, from } from './rxjsStub.ts';
/** /**
* Defines the contract for a middleware intercepting requests before * Defines the contract for a middleware intercepting requests before

View File

@ -10,7 +10,7 @@
* Do not edit the class manually. * 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 * Describes the result of uploading an image resource

View File

@ -10,7 +10,7 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http.ts';
/** /**
* A category for a pet * A category for a pet

View File

@ -1,16 +1,16 @@
export * from '.models.ApiResponse'; export * from '../models/ApiResponse.ts';
export * from '.models.Category'; export * from '../models/Category.ts';
export * from '.models.Order'; export * from '../models/Order.ts';
export * from '.models.Pet'; export * from '../models/Pet.ts';
export * from '.models.Tag'; export * from '../models/Tag.ts';
export * from '.models.User'; export * from '../models/User.ts';
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse.ts';
import { Category } from '.models.Category'; import { Category } from '../models/Category.ts';
import { Order , OrderStatusEnum } from '.models.Order'; import { Order , OrderStatusEnum } from '../models/Order.ts';
import { Pet , PetStatusEnum } from '.models.Pet'; import { Pet , PetStatusEnum } from '../models/Pet.ts';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag.ts';
import { User } from '.models.User'; import { User } from '../models/User.ts';
/* tslint:disable:no-unused-variable */ /* tslint:disable:no-unused-variable */
let primitives = [ let primitives = [

View File

@ -10,7 +10,7 @@
* Do not edit the class manually. * 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 * An order for a pets from the pet store

View File

@ -10,9 +10,9 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { Category } from 'Category'; import { Category } from '../models/Category.ts';
import { Tag } from 'Tag'; import { Tag } from '../models/Tag.ts';
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http.ts';
/** /**
* A pet for sale in the pet store * A pet for sale in the pet store

View File

@ -10,7 +10,7 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http.ts';
/** /**
* A tag for a pet * A tag for a pet

View File

@ -10,7 +10,7 @@
* Do not edit the class manually. * 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 * A User who is purchasing from the pet store

View File

@ -1,6 +1,6 @@
export * from '.models.ApiResponse' export * from '../models/ApiResponse.ts'
export * from '.models.Category' export * from '../models/Category.ts'
export * from '.models.Order' export * from '../models/Order.ts'
export * from '.models.Pet' export * from '../models/Pet.ts'
export * from '.models.Tag' export * from '../models/Tag.ts'
export * from '.models.User' export * from '../models/User.ts'

View File

@ -1,4 +1,4 @@
import { RequestContext, HttpMethod } from "./http/http"; import { RequestContext, HttpMethod } from "./http/http.ts";
export interface BaseServerConfiguration { export interface BaseServerConfiguration {
makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext; makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext;

View File

@ -1,15 +1,15 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts';
import { Configuration} from '../configuration' import { Configuration} from '../configuration.ts'
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse.ts';
import { Category } from '.models.Category'; import { Category } from '../models/Category.ts';
import { Order } from '.models.Order'; import { Order } from '../models/Order.ts';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet.ts';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag.ts';
import { User } from '.models.User'; import { User } from '../models/User.ts';
import { ObservablePetApi } from "./ObservableAPI"; import { ObservablePetApi } from "./ObservableAPI.ts";
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts";
export interface PetApiAddPetRequest { export interface PetApiAddPetRequest {
/** /**
@ -121,6 +121,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param param the request object * @param param the request object
*/ */
@ -129,6 +130,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Deletes a pet * Deletes a pet
* @param param the request object * @param param the request object
*/ */
@ -164,6 +166,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param param the request object * @param param the request object
*/ */
@ -172,6 +175,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Updates a pet in the store with form data * Updates a pet in the store with form data
* @param param the request object * @param param the request object
*/ */
@ -180,6 +184,7 @@ export class ObjectPetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param param the request object * @param param the request object
*/ */
@ -189,8 +194,8 @@ export class ObjectPetApi {
} }
import { ObservableStoreApi } from "./ObservableAPI"; import { ObservableStoreApi } from "./ObservableAPI.ts";
import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi"; import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi.ts";
export interface StoreApiDeleteOrderRequest { export interface StoreApiDeleteOrderRequest {
/** /**
@ -257,6 +262,7 @@ export class ObjectStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param param the request object * @param param the request object
*/ */
@ -266,8 +272,8 @@ export class ObjectStoreApi {
} }
import { ObservableUserApi } from "./ObservableAPI"; import { ObservableUserApi } from "./ObservableAPI.ts";
import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi"; import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi.ts";
export interface UserApiCreateUserRequest { export interface UserApiCreateUserRequest {
/** /**
@ -364,6 +370,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -372,6 +379,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -389,6 +397,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param param the request object * @param param the request object
*/ */
@ -397,6 +406,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Logs user into the system * Logs user into the system
* @param param the request object * @param param the request object
*/ */
@ -405,6 +415,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
* @param param the request object * @param param the request object
*/ */

View File

@ -1,15 +1,15 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts';
import { Configuration} from '../configuration' import { Configuration} from '../configuration.ts'
import { Observable, of, from } from '../rxjsStub'; import { Observable, of, from } from '../rxjsStub.ts';
import {mergeMap, map} from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub.ts';
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse.ts';
import { Category } from '.models.Category'; import { Category } from '../models/Category.ts';
import { Order } from '.models.Order'; import { Order } from '../models/Order.ts';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet.ts';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag.ts';
import { User } from '.models.User'; import { User } from '../models/User.ts';
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts";
export class ObservablePetApi { export class ObservablePetApi {
private requestFactory: PetApiRequestFactory; private requestFactory: PetApiRequestFactory;
private responseProcessor: PetApiResponseProcessor; private responseProcessor: PetApiResponseProcessor;
@ -26,6 +26,7 @@ export class ObservablePetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -145,6 +147,7 @@ export class ObservablePetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -193,6 +197,7 @@ export class ObservablePetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @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 { export class ObservableStoreApi {
private requestFactory: StoreApiRequestFactory; private requestFactory: StoreApiRequestFactory;
private responseProcessor: StoreApiResponseProcessor; private responseProcessor: StoreApiResponseProcessor;
@ -307,6 +312,7 @@ export class ObservableStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the 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 { export class ObservableUserApi {
private requestFactory: UserApiRequestFactory; private requestFactory: UserApiRequestFactory;
private responseProcessor: UserApiResponseProcessor; private responseProcessor: UserApiResponseProcessor;
@ -372,6 +378,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -395,6 +402,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -442,6 +450,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
@ -489,6 +499,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
*/ */
public logoutUser(_options?: Configuration): Observable<void> { public logoutUser(_options?: Configuration): Observable<void> {

View File

@ -1,15 +1,15 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts';
import { Configuration} from '../configuration' import { Configuration} from '../configuration.ts'
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse.ts';
import { Category } from '.models.Category'; import { Category } from '../models/Category.ts';
import { Order } from '.models.Order'; import { Order } from '../models/Order.ts';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet.ts';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag.ts';
import { User } from '.models.User'; import { User } from '../models/User.ts';
import { ObservablePetApi } from './ObservableAPI'; import { ObservablePetApi } from './ObservableAPI.ts';
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts";
export class PromisePetApi { export class PromisePetApi {
private api: ObservablePetApi private api: ObservablePetApi
@ -22,6 +22,7 @@ export class PromisePetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -71,6 +73,7 @@ export class PromisePetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -91,6 +95,7 @@ export class PromisePetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @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 { export class PromiseStoreApi {
private api: ObservableStoreApi private api: ObservableStoreApi
@ -150,6 +155,7 @@ export class PromiseStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the 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 { export class PromiseUserApi {
private api: ObservableUserApi private api: ObservableUserApi
@ -188,6 +194,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -197,6 +204,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -216,6 +224,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
@ -235,6 +245,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
*/ */
public logoutUser(_options?: Configuration): Promise<void> { public logoutUser(_options?: Configuration): Promise<void> {

View File

@ -18,6 +18,7 @@ Method | HTTP request | Description
> Pet addPet(pet) > Pet addPet(pet)
### Example ### Example
@ -89,6 +90,7 @@ Name | Type | Description | Notes
> deletePet() > deletePet()
### Example ### Example
@ -315,6 +317,7 @@ Name | Type | Description | Notes
> Pet updatePet(pet) > Pet updatePet(pet)
### Example ### Example
@ -388,6 +391,7 @@ Name | Type | Description | Notes
> updatePetWithForm() > updatePetWithForm()
### Example ### Example
@ -447,6 +451,7 @@ void (empty response body)
> ApiResponse uploadFile() > ApiResponse uploadFile()
### Example ### Example

View File

@ -173,6 +173,7 @@ No authorization required
> Order placeOrder(order) > Order placeOrder(order)
### Example ### Example

View File

@ -81,6 +81,7 @@ void (empty response body)
> createUsersWithArrayInput(user) > createUsersWithArrayInput(user)
### Example ### Example
@ -145,6 +146,7 @@ void (empty response body)
> createUsersWithListInput(user) > createUsersWithListInput(user)
### Example ### Example
@ -264,6 +266,7 @@ void (empty response body)
> User getUserByName() > User getUserByName()
### Example ### Example
@ -319,6 +322,7 @@ No authorization required
> string loginUser() > string loginUser()
### Example ### Example
@ -376,6 +380,7 @@ No authorization required
> logoutUser() > logoutUser()
### Example ### Example

View File

@ -1,8 +1,8 @@
import type { Configuration } from "../configuration"; import type { Configuration } from "../configuration";
import type { HttpFile, RequestContext, ResponseContext } from "../http/http"; import type { HttpFile, RequestContext, ResponseContext } from "../http/http";
import { ApiResponse } from "/models/ApiResponse"; import { ApiResponse } from "../models/ApiResponse";
import { Pet } from "/models/Pet"; import { Pet } from "../models/Pet";
export abstract class AbstractPetApiRequestFactory { export abstract class AbstractPetApiRequestFactory {
public abstract addPet(pet: Pet, options?: Configuration): Promise<RequestContext>; public abstract addPet(pet: Pet, options?: Configuration): Promise<RequestContext>;

View File

@ -11,8 +11,8 @@ import {SecurityAuthentication} from '../auth/auth';
import { injectable } from "inversify"; import { injectable } from "inversify";
import { ApiResponse } from '/models/ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Pet } from '/models/Pet'; import { Pet } from '../models/Pet';
/** /**
* no description * no description
@ -21,6 +21,7 @@ import { Pet } from '/models/Pet';
export class PetApiRequestFactory extends BaseAPIRequestFactory { export class PetApiRequestFactory extends BaseAPIRequestFactory {
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -214,6 +216,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -325,6 +329,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server

View File

@ -1,7 +1,7 @@
import type { Configuration } from "../configuration"; import type { Configuration } from "../configuration";
import type { HttpFile, RequestContext, ResponseContext } from "../http/http"; import type { HttpFile, RequestContext, ResponseContext } from "../http/http";
import { Order } from "/models/Order"; import { Order } from "../models/Order";
export abstract class AbstractStoreApiRequestFactory { export abstract class AbstractStoreApiRequestFactory {
public abstract deleteOrder(orderId: string, options?: Configuration): Promise<RequestContext>; public abstract deleteOrder(orderId: string, options?: Configuration): Promise<RequestContext>;

View File

@ -11,7 +11,7 @@ import {SecurityAuthentication} from '../auth/auth';
import { injectable } from "inversify"; import { injectable } from "inversify";
import { Order } from '/models/Order'; import { Order } from '../models/Order';
/** /**
* no description * no description
@ -102,6 +102,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */

View File

@ -1,7 +1,7 @@
import type { Configuration } from "../configuration"; import type { Configuration } from "../configuration";
import type { HttpFile, RequestContext, ResponseContext } from "../http/http"; import type { HttpFile, RequestContext, ResponseContext } from "../http/http";
import { User } from "/models/User"; import { User } from "../models/User";
export abstract class AbstractUserApiRequestFactory { export abstract class AbstractUserApiRequestFactory {
public abstract createUser(user: User, options?: Configuration): Promise<RequestContext>; public abstract createUser(user: User, options?: Configuration): Promise<RequestContext>;

View File

@ -11,7 +11,7 @@ import {SecurityAuthentication} from '../auth/auth';
import { injectable } from "inversify"; import { injectable } from "inversify";
import { User } from '/models/User'; import { User } from '../models/User';
/** /**
* no description * no description
@ -64,6 +64,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -107,6 +108,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -184,6 +186,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @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 * Logs out current logged in user session
*/ */
public async logoutUser(_options?: Configuration): Promise<RequestContext> { public async logoutUser(_options?: Configuration): Promise<RequestContext> {

View File

@ -1,16 +1,16 @@
export * from '.models.ApiResponse'; export * from '../models/ApiResponse';
export * from '.models.Category'; export * from '../models/Category';
export * from '.models.Order'; export * from '../models/Order';
export * from '.models.Pet'; export * from '../models/Pet';
export * from '.models.Tag'; export * from '../models/Tag';
export * from '.models.User'; export * from '../models/User';
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order , OrderStatusEnum } from '.models.Order'; import { Order , OrderStatusEnum } from '../models/Order';
import { Pet , PetStatusEnum } from '.models.Pet'; import { Pet , PetStatusEnum } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
/* tslint:disable:no-unused-variable */ /* tslint:disable:no-unused-variable */
let primitives = [ let primitives = [

View File

@ -10,8 +10,8 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { Category } from 'Category'; import { Category } from '../models/Category';
import { Tag } from 'Tag'; import { Tag } from '../models/Tag';
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http';
/** /**

View File

@ -1,6 +1,6 @@
export * from '.models.ApiResponse' export * from '../models/ApiResponse'
export * from '.models.Category' export * from '../models/Category'
export * from '.models.Order' export * from '../models/Order'
export * from '.models.Pet' export * from '../models/Pet'
export * from '.models.Tag' export * from '../models/Tag'
export * from '.models.User' export * from '../models/User'

View File

@ -2,22 +2,24 @@ import type { HttpFile } from '../http/http';
import type { Configuration } from '../configuration' import type { Configuration } from '../configuration'
import type * as req from "../types/ObjectParamAPI"; import type * as req from "../types/ObjectParamAPI";
import type { ApiResponse } from '.models.ApiResponse'; import type { ApiResponse } from '../models/ApiResponse';
import type { Category } from '.models.Category'; import type { Category } from '../models/Category';
import type { Order } from '.models.Order'; import type { Order } from '../models/Order';
import type { Pet } from '.models.Pet'; import type { Pet } from '../models/Pet';
import type { Tag } from '.models.Tag'; import type { Tag } from '../models/Tag';
import type { User } from '.models.User'; import type { User } from '../models/User';
export abstract class AbstractObjectPetApi { export abstract class AbstractObjectPetApi {
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param param the request object * @param param the request object
*/ */
public abstract addPet(param: req.PetApiAddPetRequest, options?: Configuration): Promise<Pet>; public abstract addPet(param: req.PetApiAddPetRequest, options?: Configuration): Promise<Pet>;
/** /**
*
* Deletes a pet * Deletes a pet
* @param param the request object * @param param the request object
*/ */
@ -45,18 +47,21 @@ export abstract class AbstractObjectPetApi {
public abstract getPetById(param: req.PetApiGetPetByIdRequest, options?: Configuration): Promise<Pet>; public abstract getPetById(param: req.PetApiGetPetByIdRequest, options?: Configuration): Promise<Pet>;
/** /**
*
* Update an existing pet * Update an existing pet
* @param param the request object * @param param the request object
*/ */
public abstract updatePet(param: req.PetApiUpdatePetRequest, options?: Configuration): Promise<Pet>; public abstract updatePet(param: req.PetApiUpdatePetRequest, options?: Configuration): Promise<Pet>;
/** /**
*
* Updates a pet in the store with form data * Updates a pet in the store with form data
* @param param the request object * @param param the request object
*/ */
public abstract updatePetWithForm(param: req.PetApiUpdatePetWithFormRequest, options?: Configuration): Promise<void>; public abstract updatePetWithForm(param: req.PetApiUpdatePetWithFormRequest, options?: Configuration): Promise<void>;
/** /**
*
* uploads an image * uploads an image
* @param param the request object * @param param the request object
*/ */
@ -88,6 +93,7 @@ export abstract class AbstractObjectStoreApi {
public abstract getOrderById(param: req.StoreApiGetOrderByIdRequest, options?: Configuration): Promise<Order>; public abstract getOrderById(param: req.StoreApiGetOrderByIdRequest, options?: Configuration): Promise<Order>;
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param param the request object * @param param the request object
*/ */
@ -105,12 +111,14 @@ export abstract class AbstractObjectUserApi {
public abstract createUser(param: req.UserApiCreateUserRequest, options?: Configuration): Promise<void>; public abstract createUser(param: req.UserApiCreateUserRequest, options?: Configuration): Promise<void>;
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
public abstract createUsersWithArrayInput(param: req.UserApiCreateUsersWithArrayInputRequest, options?: Configuration): Promise<void>; public abstract createUsersWithArrayInput(param: req.UserApiCreateUsersWithArrayInputRequest, options?: Configuration): Promise<void>;
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -124,18 +132,21 @@ export abstract class AbstractObjectUserApi {
public abstract deleteUser(param: req.UserApiDeleteUserRequest, options?: Configuration): Promise<void>; public abstract deleteUser(param: req.UserApiDeleteUserRequest, options?: Configuration): Promise<void>;
/** /**
*
* Get user by user name * Get user by user name
* @param param the request object * @param param the request object
*/ */
public abstract getUserByName(param: req.UserApiGetUserByNameRequest, options?: Configuration): Promise<User>; public abstract getUserByName(param: req.UserApiGetUserByNameRequest, options?: Configuration): Promise<User>;
/** /**
*
* Logs user into the system * Logs user into the system
* @param param the request object * @param param the request object
*/ */
public abstract loginUser(param: req.UserApiLoginUserRequest, options?: Configuration): Promise<string>; public abstract loginUser(param: req.UserApiLoginUserRequest, options?: Configuration): Promise<string>;
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
* @param param the request object * @param param the request object
*/ */

View File

@ -2,12 +2,12 @@ import type { HttpFile } from "../http/http";
import type { Observable } from "../rxjsStub"; import type { Observable } from "../rxjsStub";
import type { Configuration } from "../configuration"; import type { Configuration } from "../configuration";
import { ApiResponse } from ".models.ApiResponse"; import { ApiResponse } from "../models/ApiResponse";
import { Category } from ".models.Category"; import { Category } from "../models/Category";
import { Order } from ".models.Order"; import { Order } from "../models/Order";
import { Pet } from ".models.Pet"; import { Pet } from "../models/Pet";
import { Tag } from ".models.Tag"; import { Tag } from "../models/Tag";
import { User } from ".models.User"; import { User } from "../models/User";
export abstract class AbstractObservablePetApi { export abstract class AbstractObservablePetApi {

View File

@ -1,12 +1,12 @@
import type { HttpFile } from "../http/http"; import type { HttpFile } from "../http/http";
import type { Configuration } from "../configuration"; import type { Configuration } from "../configuration";
import { ApiResponse } from ".models.ApiResponse"; import { ApiResponse } from "../models/ApiResponse";
import { Category } from ".models.Category"; import { Category } from "../models/Category";
import { Order } from ".models.Order"; import { Order } from "../models/Order";
import { Pet } from ".models.Pet"; import { Pet } from "../models/Pet";
import { Tag } from ".models.Tag"; import { Tag } from "../models/Tag";
import { User } from ".models.User"; import { User } from "../models/User";
export abstract class AbstractPromisePetApi { export abstract class AbstractPromisePetApi {

View File

@ -1,12 +1,12 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration' import { Configuration} from '../configuration'
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { ObservablePetApi } from "./ObservableAPI"; import { ObservablePetApi } from "./ObservableAPI";
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
@ -121,6 +121,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param param the request object * @param param the request object
*/ */
@ -129,6 +130,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Deletes a pet * Deletes a pet
* @param param the request object * @param param the request object
*/ */
@ -164,6 +166,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param param the request object * @param param the request object
*/ */
@ -172,6 +175,7 @@ export class ObjectPetApi {
} }
/** /**
*
* Updates a pet in the store with form data * Updates a pet in the store with form data
* @param param the request object * @param param the request object
*/ */
@ -180,6 +184,7 @@ export class ObjectPetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param param the request object * @param param the request object
*/ */
@ -257,6 +262,7 @@ export class ObjectStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param param the request object * @param param the request object
*/ */
@ -364,6 +370,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -372,6 +379,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param param the request object * @param param the request object
*/ */
@ -389,6 +397,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param param the request object * @param param the request object
*/ */
@ -397,6 +406,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Logs user into the system * Logs user into the system
* @param param the request object * @param param the request object
*/ */
@ -405,6 +415,7 @@ export class ObjectUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
* @param param the request object * @param param the request object
*/ */

View File

@ -4,12 +4,12 @@ import { Observable, of, from } from '../rxjsStub';
import {mergeMap, map} from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub';
import { injectable, inject, optional } from "inversify"; import { injectable, inject, optional } from "inversify";
import { AbstractConfiguration } from "../services/configuration"; import { AbstractConfiguration } from "../services/configuration";
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
import { AbstractPetApiRequestFactory, AbstractPetApiResponseProcessor } from "../apis/PetApi.service"; import { AbstractPetApiRequestFactory, AbstractPetApiResponseProcessor } from "../apis/PetApi.service";
@ -31,6 +31,7 @@ export class ObservablePetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -150,6 +152,7 @@ export class ObservablePetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -198,6 +202,7 @@ export class ObservablePetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server
@ -315,6 +320,7 @@ export class ObservableStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */
@ -383,6 +389,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -406,6 +413,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -453,6 +461,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
@ -500,6 +510,7 @@ export class ObservableUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
*/ */
public logoutUser(_options?: Configuration): Observable<void> { public logoutUser(_options?: Configuration): Observable<void> {

View File

@ -3,12 +3,12 @@ import { Configuration} from '../configuration'
import { injectable, inject, optional } from "inversify"; import { injectable, inject, optional } from "inversify";
import { AbstractConfiguration } from "../services/configuration"; import { AbstractConfiguration } from "../services/configuration";
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order } from '.models.Order'; import { Order } from '../models/Order';
import { Pet } from '.models.Pet'; import { Pet } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
import { ObservablePetApi } from './ObservableAPI'; import { ObservablePetApi } from './ObservableAPI';
import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi";
@ -27,6 +27,7 @@ export class PromisePetApi {
} }
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -76,6 +78,7 @@ export class PromisePetApi {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -96,6 +100,7 @@ export class PromisePetApi {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server
@ -158,6 +163,7 @@ export class PromiseStoreApi {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */
@ -199,6 +205,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -208,6 +215,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -227,6 +235,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @param password The password for login in clear text
@ -246,6 +256,7 @@ export class PromiseUserApi {
} }
/** /**
*
* Logs out current logged in user session * Logs out current logged in user session
*/ */
public logoutUser(_options?: Configuration): Promise<void> { public logoutUser(_options?: Configuration): Promise<void> {

View File

@ -1 +1 @@
5.3.0-SNAPSHOT 6.3.0-SNAPSHOT

View File

@ -18,6 +18,7 @@ Method | HTTP request | Description
> Pet addPet(pet) > Pet addPet(pet)
### Example ### Example
@ -89,6 +90,7 @@ Name | Type | Description | Notes
> deletePet() > deletePet()
### Example ### Example
@ -315,6 +317,7 @@ Name | Type | Description | Notes
> Pet updatePet(pet) > Pet updatePet(pet)
### Example ### Example
@ -388,6 +391,7 @@ Name | Type | Description | Notes
> updatePetWithForm() > updatePetWithForm()
### Example ### Example
@ -447,6 +451,7 @@ void (empty response body)
> ApiResponse uploadFile() > ApiResponse uploadFile()
### Example ### Example

View File

@ -173,6 +173,7 @@ No authorization required
> Order placeOrder(order) > Order placeOrder(order)
### Example ### Example

View File

@ -81,6 +81,7 @@ void (empty response body)
> createUsersWithArrayInput(user) > createUsersWithArrayInput(user)
### Example ### Example
@ -145,6 +146,7 @@ void (empty response body)
> createUsersWithListInput(user) > createUsersWithListInput(user)
### Example ### Example
@ -264,6 +266,7 @@ void (empty response body)
> User getUserByName() > User getUserByName()
### Example ### Example
@ -319,6 +322,7 @@ No authorization required
> string loginUser() > string loginUser()
### Example ### Example
@ -376,6 +380,7 @@ No authorization required
> logoutUser() > logoutUser()
### Example ### Example

View File

@ -8,8 +8,8 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { ApiResponse } from '/models/ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Pet } from '/models/Pet'; import { Pet } from '../models/Pet';
/** /**
* no description * no description
@ -17,6 +17,7 @@ import { Pet } from '/models/Pet';
export class PetApiRequestFactory extends BaseAPIRequestFactory { export class PetApiRequestFactory extends BaseAPIRequestFactory {
/** /**
*
* Add a new pet to the store * Add a new pet to the store
* @param pet Pet object that needs to be added 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 * Deletes a pet
* @param petId Pet id to delete * @param petId Pet id to delete
* @param apiKey * @param apiKey
@ -230,6 +232,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Update an existing pet * Update an existing pet
* @param pet Pet object that needs to be added to the store * @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 * Updates a pet in the store with form data
* @param petId ID of pet that needs to be updated * @param petId ID of pet that needs to be updated
* @param name Updated name of the pet * @param name Updated name of the pet
@ -349,6 +353,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* uploads an image * uploads an image
* @param petId ID of pet to update * @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server * @param additionalMetadata Additional data to pass to server

View File

@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { Order } from '/models/Order'; import { Order } from '../models/Order';
/** /**
* no description * no description
@ -110,6 +110,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Place an order for a pet * Place an order for a pet
* @param order order placed for purchasing the pet * @param order order placed for purchasing the pet
*/ */

View File

@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth'; import {SecurityAuthentication} from '../auth/auth';
import { User } from '/models/User'; import { User } from '../models/User';
/** /**
* no description * no description
@ -64,6 +64,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -111,6 +112,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Creates list of users with given input array * Creates list of users with given input array
* @param user List of user object * @param user List of user object
*/ */
@ -196,6 +198,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
} }
/** /**
*
* Get user by user name * Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing. * @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 * Logs user into the system
* @param username The user name for login * @param username The user name for login
* @param password The password for login in clear text * @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 * Logs out current logged in user session
*/ */
public async logoutUser(_options?: Configuration): Promise<RequestContext> { public async logoutUser(_options?: Configuration): Promise<RequestContext> {

View File

@ -1,16 +1,16 @@
export * from '.models.ApiResponse'; export * from '../models/ApiResponse';
export * from '.models.Category'; export * from '../models/Category';
export * from '.models.Order'; export * from '../models/Order';
export * from '.models.Pet'; export * from '../models/Pet';
export * from '.models.Tag'; export * from '../models/Tag';
export * from '.models.User'; export * from '../models/User';
import { ApiResponse } from '.models.ApiResponse'; import { ApiResponse } from '../models/ApiResponse';
import { Category } from '.models.Category'; import { Category } from '../models/Category';
import { Order , OrderStatusEnum } from '.models.Order'; import { Order , OrderStatusEnum } from '../models/Order';
import { Pet , PetStatusEnum } from '.models.Pet'; import { Pet , PetStatusEnum } from '../models/Pet';
import { Tag } from '.models.Tag'; import { Tag } from '../models/Tag';
import { User } from '.models.User'; import { User } from '../models/User';
/* tslint:disable:no-unused-variable */ /* tslint:disable:no-unused-variable */
let primitives = [ let primitives = [

View File

@ -10,8 +10,8 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { Category } from 'Category'; import { Category } from '../models/Category';
import { Tag } from 'Tag'; import { Tag } from '../models/Tag';
import { HttpFile } from '../http/http'; import { HttpFile } from '../http/http';
/** /**

View File

@ -1,6 +1,6 @@
export * from '.models.ApiResponse' export * from '../models/ApiResponse'
export * from '.models.Category' export * from '../models/Category'
export * from '.models.Order' export * from '../models/Order'
export * from '.models.Pet' export * from '../models/Pet'
export * from '.models.Tag' export * from '../models/Tag'
export * from '.models.User' export * from '../models/User'

Some files were not shown because too many files have changed in this diff Show More