Add option modelPropertyNaming to javascript generator (#299)

* Add option modelPropertyNaming to javascript generator

Fixes 6530

* Update Petstore sample
This commit is contained in:
Stian Liknes 2018-06-14 13:19:23 +02:00 committed by William Cheng
parent 7126074f49
commit 24104dac35
334 changed files with 4646 additions and 2594 deletions

View File

@ -102,6 +102,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
protected String apiTestPath = "api/"; protected String apiTestPath = "api/";
protected String modelTestPath = "model/"; protected String modelTestPath = "model/";
protected boolean useES6 = false; // default is ES5 protected boolean useES6 = false; // default is ES5
private String modelPropertyNaming = "camelCase";
public JavascriptClientCodegen() { public JavascriptClientCodegen() {
super(); super();
@ -206,6 +207,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
cliOptions.add(new CliOption(USE_ES6, cliOptions.add(new CliOption(USE_ES6,
"use JavaScript ES6 (ECMAScript 6) (beta). Default is ES5.") "use JavaScript ES6 (ECMAScript 6) (beta). Default is ES5.")
.defaultValue(Boolean.FALSE.toString())); .defaultValue(Boolean.FALSE.toString()));
cliOptions.add(new CliOption(CodegenConstants.MODEL_PROPERTY_NAMING, CodegenConstants.MODEL_PROPERTY_NAMING_DESC).defaultValue("camelCase"));
} }
@Override @Override
@ -271,6 +273,9 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
if (additionalProperties.containsKey(EMIT_JS_DOC)) { if (additionalProperties.containsKey(EMIT_JS_DOC)) {
setEmitJSDoc(convertPropertyToBooleanAndWriteBack(EMIT_JS_DOC)); setEmitJSDoc(convertPropertyToBooleanAndWriteBack(EMIT_JS_DOC));
} }
if (additionalProperties.containsKey(CodegenConstants.MODEL_PROPERTY_NAMING)) {
setModelPropertyNaming((String) additionalProperties.get(CodegenConstants.MODEL_PROPERTY_NAMING));
}
} }
@Override @Override
@ -492,6 +497,22 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
return toModelName(name) + ".spec"; return toModelName(name) + ".spec";
} }
public String getModelPropertyNaming() {
return this.modelPropertyNaming;
}
private String getNameUsingModelPropertyNaming(String name) {
switch (CodegenConstants.MODEL_PROPERTY_NAMING_TYPE.valueOf(getModelPropertyNaming())) {
case original: return name;
case camelCase: return camelize(name, true);
case PascalCase: return camelize(name);
case snake_case: return underscore(name);
default: throw new IllegalArgumentException("Invalid model property naming '" +
name + "'. Must be 'original', 'camelCase', " +
"'PascalCase' or 'snake_case'");
}
}
@Override @Override
public String toVarName(String name) { public String toVarName(String name) {
// sanitize name // sanitize name
@ -508,7 +529,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
// camelize (lower first character) the variable name // camelize (lower first character) the variable name
// pet_id => petId // pet_id => petId
name = camelize(name, true); name = getNameUsingModelPropertyNaming(name);
// for reserved word or word starting with number, append _ // for reserved word or word starting with number, append _
if (isReservedWord(name) || name.matches("^\\d.*")) { if (isReservedWord(name) || name.matches("^\\d.*")) {
@ -613,6 +634,17 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
return null; return null;
} }
public void setModelPropertyNaming(String naming) {
if ("original".equals(naming) || "camelCase".equals(naming) ||
"PascalCase".equals(naming) || "snake_case".equals(naming)) {
this.modelPropertyNaming = naming;
} else {
throw new IllegalArgumentException("Invalid model property naming '" +
naming + "'. Must be 'original', 'camelCase', " +
"'PascalCase' or 'snake_case'");
}
}
@Override @Override
public String toDefaultValueWithParam(String name, Schema p) { public String toDefaultValueWithParam(String name, Schema p) {
String type = normalizeType(getTypeDeclaration(p)); String type = normalizeType(getTypeDeclaration(p));

View File

@ -1 +1 @@
2.3.0-SNAPSHOT 3.0.2-SNAPSHOT

View File

@ -1,12 +1,12 @@
# swagger_petstore # open_api_petstore
SwaggerPetstore - JavaScript client for swagger_petstore OpenApiPetstore - JavaScript client for open_api_petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0 - API version: 1.0.0
- Package version: 1.0.0 - Package version: 1.0.0
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
## Installation ## Installation
@ -20,7 +20,7 @@ please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.co
Then install it via: Then install it via:
```shell ```shell
npm install swagger_petstore --save npm install open_api_petstore --save
``` ```
#### git #### git
@ -68,13 +68,11 @@ module: {
Please follow the [installation](#installation) instruction and execute the following JS code: Please follow the [installation](#installation) instruction and execute the following JS code:
```javascript ```javascript
var SwaggerPetstore = require('swagger_petstore'); var OpenApiPetstore = require('open_api_petstore');
var api = new SwaggerPetstore.AnotherFakeApi()
var body = new SwaggerPetstore.Client(); // {Client} client model
var api = new OpenApiPetstore.AnotherFakeApi()
var client = new OpenApiPetstore.Client(); // {Client} client model
var callback = function(error, data, response) { var callback = function(error, data, response) {
if (error) { if (error) {
console.error(error); console.error(error);
@ -82,7 +80,7 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data); console.log('API called successfully. Returned data: ' + data);
} }
}; };
api.testSpecialTags(body, callback); api.testSpecialTags(client, callback);
``` ```
@ -92,77 +90,75 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description Class | Method | HTTP request | Description
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
*SwaggerPetstore.AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags *OpenApiPetstore.AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
*SwaggerPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | *OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
*SwaggerPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | *OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
*SwaggerPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | *OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
*SwaggerPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | *OpenApiPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
*SwaggerPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model *OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
*SwaggerPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 *OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
*SwaggerPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters *OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*SwaggerPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
*SwaggerPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data *OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
*SwaggerPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
*SwaggerPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
*SwaggerPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet *OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
*SwaggerPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status *OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
*SwaggerPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags *OpenApiPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
*SwaggerPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID *OpenApiPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
*SwaggerPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet *OpenApiPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
*SwaggerPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data *OpenApiPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
*SwaggerPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image *OpenApiPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
*SwaggerPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID *OpenApiPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
*SwaggerPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status *OpenApiPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
*SwaggerPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID *OpenApiPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
*SwaggerPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet *OpenApiPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
*SwaggerPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user *OpenApiPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
*SwaggerPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array *OpenApiPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
*SwaggerPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array *OpenApiPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
*SwaggerPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user *OpenApiPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
*SwaggerPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name *OpenApiPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
*SwaggerPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system *OpenApiPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
*SwaggerPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session *OpenApiPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
*SwaggerPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user *OpenApiPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
*OpenApiPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
## Documentation for Models ## Documentation for Models
- [SwaggerPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- [SwaggerPetstore.Animal](docs/Animal.md) - [OpenApiPetstore.Animal](docs/Animal.md)
- [SwaggerPetstore.AnimalFarm](docs/AnimalFarm.md) - [OpenApiPetstore.AnimalFarm](docs/AnimalFarm.md)
- [SwaggerPetstore.ApiResponse](docs/ApiResponse.md) - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md)
- [SwaggerPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [SwaggerPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [SwaggerPetstore.ArrayTest](docs/ArrayTest.md) - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md)
- [SwaggerPetstore.Capitalization](docs/Capitalization.md) - [OpenApiPetstore.Capitalization](docs/Capitalization.md)
- [SwaggerPetstore.Category](docs/Category.md) - [OpenApiPetstore.Cat](docs/Cat.md)
- [SwaggerPetstore.ClassModel](docs/ClassModel.md) - [OpenApiPetstore.Category](docs/Category.md)
- [SwaggerPetstore.Client](docs/Client.md) - [OpenApiPetstore.ClassModel](docs/ClassModel.md)
- [SwaggerPetstore.EnumArrays](docs/EnumArrays.md) - [OpenApiPetstore.Client](docs/Client.md)
- [SwaggerPetstore.EnumClass](docs/EnumClass.md) - [OpenApiPetstore.Dog](docs/Dog.md)
- [SwaggerPetstore.EnumTest](docs/EnumTest.md) - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md)
- [SwaggerPetstore.FormatTest](docs/FormatTest.md) - [OpenApiPetstore.EnumClass](docs/EnumClass.md)
- [SwaggerPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - [OpenApiPetstore.EnumTest](docs/EnumTest.md)
- [SwaggerPetstore.List](docs/List.md) - [OpenApiPetstore.FormatTest](docs/FormatTest.md)
- [SwaggerPetstore.MapTest](docs/MapTest.md) - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
- [SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - [OpenApiPetstore.List](docs/List.md)
- [SwaggerPetstore.Model200Response](docs/Model200Response.md) - [OpenApiPetstore.MapTest](docs/MapTest.md)
- [SwaggerPetstore.ModelReturn](docs/ModelReturn.md) - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- [SwaggerPetstore.Name](docs/Name.md) - [OpenApiPetstore.Model200Response](docs/Model200Response.md)
- [SwaggerPetstore.NumberOnly](docs/NumberOnly.md) - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md)
- [SwaggerPetstore.Order](docs/Order.md) - [OpenApiPetstore.Name](docs/Name.md)
- [SwaggerPetstore.OuterBoolean](docs/OuterBoolean.md) - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md)
- [SwaggerPetstore.OuterComposite](docs/OuterComposite.md) - [OpenApiPetstore.Order](docs/Order.md)
- [SwaggerPetstore.OuterEnum](docs/OuterEnum.md) - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md)
- [SwaggerPetstore.OuterNumber](docs/OuterNumber.md) - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md)
- [SwaggerPetstore.OuterString](docs/OuterString.md) - [OpenApiPetstore.Pet](docs/Pet.md)
- [SwaggerPetstore.Pet](docs/Pet.md) - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md)
- [SwaggerPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md)
- [SwaggerPetstore.SpecialModelName](docs/SpecialModelName.md) - [OpenApiPetstore.Tag](docs/Tag.md)
- [SwaggerPetstore.Tag](docs/Tag.md) - [OpenApiPetstore.User](docs/User.md)
- [SwaggerPetstore.User](docs/User.md)
- [SwaggerPetstore.Cat](docs/Cat.md)
- [SwaggerPetstore.Dog](docs/Dog.md)
## Documentation for Authorization ## Documentation for Authorization

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.AdditionalPropertiesClass # OpenApiPetstore.AdditionalPropertiesClass
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Animal # OpenApiPetstore.Animal
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.AnimalFarm # OpenApiPetstore.AnimalFarm
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.AnotherFakeApi # OpenApiPetstore.AnotherFakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2* All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testSpecialTags"></a> <a name="testSpecialTags"></a>
# **testSpecialTags** # **testSpecialTags**
> Client testSpecialTags(body) > Client testSpecialTags(client)
To test special tags To test special tags
@ -17,14 +17,11 @@ To test special tags
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.AnotherFakeApi(); let apiInstance = new OpenApiPetstore.AnotherFakeApi();
let client = new OpenApiPetstore.Client(); // Client | client model
let body = new SwaggerPetstore.Client(); // Client | client model apiInstance.testSpecialTags(client, (error, data, response) => {
apiInstance.testSpecialTags(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -37,7 +34,7 @@ apiInstance.testSpecialTags(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**Client**](Client.md)| client model | **client** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ApiResponse # OpenApiPetstore.ApiResponse
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ArrayOfArrayOfNumberOnly # OpenApiPetstore.ArrayOfArrayOfNumberOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ArrayOfNumberOnly # OpenApiPetstore.ArrayOfNumberOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ArrayTest # OpenApiPetstore.ArrayTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Capitalization # OpenApiPetstore.Capitalization
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Cat # OpenApiPetstore.Cat
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Category # OpenApiPetstore.Category
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ClassModel # OpenApiPetstore.ClassModel
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Client # OpenApiPetstore.Client
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Dog # OpenApiPetstore.Dog
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.EnumArrays # OpenApiPetstore.EnumArrays
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.EnumClass # OpenApiPetstore.EnumClass
## Enum ## Enum

View File

@ -1,9 +1,10 @@
# SwaggerPetstore.EnumTest # OpenApiPetstore.EnumTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**enumString** | **String** | | [optional] **enumString** | **String** | | [optional]
**enumStringRequired** | **String** | |
**enumInteger** | **Number** | | [optional] **enumInteger** | **Number** | | [optional]
**enumNumber** | **Number** | | [optional] **enumNumber** | **Number** | | [optional]
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] **outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
@ -22,6 +23,19 @@ Name | Type | Description | Notes
<a name="EnumStringRequiredEnum"></a>
## Enum: EnumStringRequiredEnum
* `UPPER` (value: `"UPPER"`)
* `lower` (value: `"lower"`)
* `empty` (value: `""`)
<a name="EnumIntegerEnum"></a> <a name="EnumIntegerEnum"></a>
## Enum: EnumIntegerEnum ## Enum: EnumIntegerEnum

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.FakeApi # OpenApiPetstore.FakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2* All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -8,6 +8,7 @@ Method | HTTP request | Description
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | [**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
@ -17,7 +18,7 @@ Method | HTTP request | Description
<a name="fakeOuterBooleanSerialize"></a> <a name="fakeOuterBooleanSerialize"></a>
# **fakeOuterBooleanSerialize** # **fakeOuterBooleanSerialize**
> OuterBoolean fakeOuterBooleanSerialize(opts) > Boolean fakeOuterBooleanSerialize(opts)
@ -25,14 +26,12 @@ Test serialization of outer boolean types
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = { let opts = {
'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body 'body': true // Boolean | Input boolean as post body
}; };
apiInstance.fakeOuterBooleanSerialize(opts, (error, data, response) => { apiInstance.fakeOuterBooleanSerialize(opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -46,11 +45,11 @@ apiInstance.fakeOuterBooleanSerialize(opts, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**OuterBoolean**](OuterBoolean.md)| Input boolean as post body | [optional] **body** | **Boolean**| Input boolean as post body | [optional]
### Return type ### Return type
[**OuterBoolean**](OuterBoolean.md) **Boolean**
### Authorization ### Authorization
@ -59,7 +58,7 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: */*
<a name="fakeOuterCompositeSerialize"></a> <a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize** # **fakeOuterCompositeSerialize**
@ -71,14 +70,12 @@ Test serialization of object with outer number type
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = { let opts = {
'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body 'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body
}; };
apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => { apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -92,7 +89,7 @@ apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type ### Return type
@ -105,11 +102,11 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: */*
<a name="fakeOuterNumberSerialize"></a> <a name="fakeOuterNumberSerialize"></a>
# **fakeOuterNumberSerialize** # **fakeOuterNumberSerialize**
> OuterNumber fakeOuterNumberSerialize(opts) > Number fakeOuterNumberSerialize(opts)
@ -117,14 +114,12 @@ Test serialization of outer number types
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = { let opts = {
'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body 'body': 3.4 // Number | Input number as post body
}; };
apiInstance.fakeOuterNumberSerialize(opts, (error, data, response) => { apiInstance.fakeOuterNumberSerialize(opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -138,11 +133,11 @@ apiInstance.fakeOuterNumberSerialize(opts, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**OuterNumber**](OuterNumber.md)| Input number as post body | [optional] **body** | **Number**| Input number as post body | [optional]
### Return type ### Return type
[**OuterNumber**](OuterNumber.md) **Number**
### Authorization ### Authorization
@ -151,11 +146,11 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: */*
<a name="fakeOuterStringSerialize"></a> <a name="fakeOuterStringSerialize"></a>
# **fakeOuterStringSerialize** # **fakeOuterStringSerialize**
> OuterString fakeOuterStringSerialize(opts) > String fakeOuterStringSerialize(opts)
@ -163,14 +158,12 @@ Test serialization of outer string types
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = { let opts = {
'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body 'body': "body_example" // String | Input string as post body
}; };
apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => { apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -184,11 +177,11 @@ apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] **body** | **String**| Input string as post body | [optional]
### Return type ### Return type
[**OuterString**](OuterString.md) **String**
### Authorization ### Authorization
@ -197,11 +190,53 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: */*
<a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user)
### Example
```javascript
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.FakeApi();
let query = "query_example"; // String |
let user = new OpenApiPetstore.User(); // User |
apiInstance.testBodyWithQueryParams(query, user, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **String**| |
**user** | [**User**](User.md)| |
### Return type
null (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
<a name="testClientModel"></a> <a name="testClientModel"></a>
# **testClientModel** # **testClientModel**
> Client testClientModel(body) > Client testClientModel(client)
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
@ -209,14 +244,11 @@ To test \&quot;client\&quot; model
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi(); let apiInstance = new OpenApiPetstore.FakeApi();
let client = new OpenApiPetstore.Client(); // Client | client model
let body = new SwaggerPetstore.Client(); // Client | client model apiInstance.testClientModel(client, (error, data, response) => {
apiInstance.testClientModel(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -229,7 +261,7 @@ apiInstance.testClientModel(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**Client**](Client.md)| client model | **client** | [**Client**](Client.md)| client model |
### Return type ### Return type
@ -254,37 +286,31 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure HTTP basic authorization: http_basic_test // Configure HTTP basic authorization: http_basic_test
let http_basic_test = defaultClient.authentications['http_basic_test']; let http_basic_test = defaultClient.authentications['http_basic_test'];
http_basic_test.username = 'YOUR USERNAME'; http_basic_test.username = 'YOUR USERNAME';
http_basic_test.password = 'YOUR PASSWORD'; http_basic_test.password = 'YOUR PASSWORD';
let apiInstance = new SwaggerPetstore.FakeApi(); let apiInstance = new OpenApiPetstore.FakeApi();
let _number = 3.4; // Number | None
let _number = 8.14; // Number | None let _double = 3.4; // Number | None
let _double = 1.2; // Number | None
let patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None let patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
let _byte = null; // Blob | None
let _byte = B; // Blob | None
let opts = { let opts = {
'integer': 56, // Number | None 'integer': 56, // Number | None
'int32': 56, // Number | None 'int32': 56, // Number | None
'int64': 789, // Number | None 'int64': 789, // Number | None
'_float': 3.4, // Number | None '_float': 3.4, // Number | None
'_string': "_string_example", // String | None '_string': "_string_example", // String | None
'binary': B, // Blob | None 'binary': "/path/to/file", // File | None
'_date': new Date("2013-10-20"), // Date | None '_date': new Date("2013-10-20"), // Date | None
'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None 'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None
'password': "password_example", // String | None 'password': "password_example", // String | None
'callback': "callback_example" // String | None 'callback': "callback_example" // String | None
}; };
apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, (error, data, response) => { apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -307,7 +333,7 @@ Name | Type | Description | Notes
**int64** | **Number**| None | [optional] **int64** | **Number**| None | [optional]
**_float** | **Number**| None | [optional] **_float** | **Number**| None | [optional]
**_string** | **String**| None | [optional] **_string** | **String**| None | [optional]
**binary** | **Blob**| None | [optional] **binary** | **File**| None | [optional]
**_date** | **Date**| None | [optional] **_date** | **Date**| None | [optional]
**dateTime** | **Date**| None | [optional] **dateTime** | **Date**| None | [optional]
**password** | **String**| None | [optional] **password** | **String**| None | [optional]
@ -323,8 +349,8 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8 - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8 - **Accept**: Not defined
<a name="testEnumParameters"></a> <a name="testEnumParameters"></a>
# **testEnumParameters** # **testEnumParameters**
@ -336,21 +362,19 @@ To test enum parameters
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = { let opts = {
'enumFormStringArray': ["enumFormStringArray_example"], // [String] | Form parameter enum test (string array) 'enumHeaderStringArray': ["'$'"], // [String] | Header parameter enum test (string array)
'enumFormString': "-efg", // String | Form parameter enum test (string) 'enumHeaderString': "'-efg'", // String | Header parameter enum test (string)
'enumHeaderStringArray': ["enumHeaderStringArray_example"], // [String] | Header parameter enum test (string array) 'enumQueryStringArray': ["'$'"], // [String] | Query parameter enum test (string array)
'enumHeaderString': "-efg", // String | Header parameter enum test (string) 'enumQueryString': "'-efg'", // String | Query parameter enum test (string)
'enumQueryStringArray': ["enumQueryStringArray_example"], // [String] | Query parameter enum test (string array)
'enumQueryString': "-efg", // String | Query parameter enum test (string)
'enumQueryInteger': 56, // Number | Query parameter enum test (double) 'enumQueryInteger': 56, // Number | Query parameter enum test (double)
'enumQueryDouble': 1.2 // Number | Query parameter enum test (double) 'enumQueryDouble': 3.4, // Number | Query parameter enum test (double)
'enumFormStringArray': "'$'", // [String] | Form parameter enum test (string array)
'enumFormString': "'-efg'" // String | Form parameter enum test (string)
}; };
apiInstance.testEnumParameters(opts, (error, data, response) => { apiInstance.testEnumParameters(opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -364,14 +388,14 @@ apiInstance.testEnumParameters(opts, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional]
**enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg]
**enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional] **enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional]
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to &#39;-efg&#39;]
**enumQueryStringArray** | [**[String]**](String.md)| Query parameter enum test (string array) | [optional] **enumQueryStringArray** | [**[String]**](String.md)| Query parameter enum test (string array) | [optional]
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to &#39;-efg&#39;]
**enumQueryInteger** | **Number**| Query parameter enum test (double) | [optional] **enumQueryInteger** | **Number**| Query parameter enum test (double) | [optional]
**enumQueryDouble** | **Number**| Query parameter enum test (double) | [optional] **enumQueryDouble** | **Number**| Query parameter enum test (double) | [optional]
**enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional] [default to &#39;$&#39;]
**enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to &#39;-efg&#39;]
### Return type ### Return type
@ -383,27 +407,22 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: */* - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: */* - **Accept**: Not defined
<a name="testInlineAdditionalProperties"></a> <a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties** # **testInlineAdditionalProperties**
> testInlineAdditionalProperties(param) > testInlineAdditionalProperties(requestBody)
test inline additionalProperties test inline additionalProperties
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi(); let apiInstance = new OpenApiPetstore.FakeApi();
let requestBody = {key: "inner_example"}; // {String: String} | request body
let param = null; // Object | request body apiInstance.testInlineAdditionalProperties(requestBody, (error, data, response) => {
apiInstance.testInlineAdditionalProperties(param, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -416,7 +435,7 @@ apiInstance.testInlineAdditionalProperties(param, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**param** | **Object**| request body | **requestBody** | [**{String: String}**](String.md)| request body |
### Return type ### Return type
@ -437,19 +456,13 @@ No authorization required
test json serialization of form data test json serialization of form data
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let apiInstance = new OpenApiPetstore.FakeApi();
let param = "param_example"; // String | field1 let param = "param_example"; // String | field1
let param2 = "param2_example"; // String | field2 let param2 = "param2_example"; // String | field2
apiInstance.testJsonFormData(param, param2, (error, data, response) => { apiInstance.testJsonFormData(param, param2, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -476,6 +489,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.FakeClassnameTags123Api # OpenApiPetstore.FakeClassnameTags123Api
All URIs are relative to *http://petstore.swagger.io:80/v2* All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -9,14 +9,16 @@ Method | HTTP request | Description
<a name="testClassname"></a> <a name="testClassname"></a>
# **testClassname** # **testClassname**
> Client testClassname(body) > Client testClassname(client)
To test class name in snake case
To test class name in snake case To test class name in snake case
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key_query // Configure API key authorization: api_key_query
let api_key_query = defaultClient.authentications['api_key_query']; let api_key_query = defaultClient.authentications['api_key_query'];
@ -24,12 +26,9 @@ api_key_query.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key_query.apiKeyPrefix = 'Token'; //api_key_query.apiKeyPrefix = 'Token';
let apiInstance = new SwaggerPetstore.FakeClassnameTags123Api(); let apiInstance = new OpenApiPetstore.FakeClassnameTags123Api();
let client = new OpenApiPetstore.Client(); // Client | client model
let body = new SwaggerPetstore.Client(); // Client | client model apiInstance.testClassname(client, (error, data, response) => {
apiInstance.testClassname(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -42,7 +41,7 @@ apiInstance.testClassname(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**Client**](Client.md)| client model | **client** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.FormatTest # OpenApiPetstore.FormatTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
@ -11,7 +11,7 @@ Name | Type | Description | Notes
**_double** | **Number** | | [optional] **_double** | **Number** | | [optional]
**_string** | **String** | | [optional] **_string** | **String** | | [optional]
**_byte** | **Blob** | | **_byte** | **Blob** | |
**binary** | **Blob** | | [optional] **binary** | **File** | | [optional]
**_date** | **Date** | | **_date** | **Date** | |
**dateTime** | **Date** | | [optional] **dateTime** | **Date** | | [optional]
**uuid** | **String** | | [optional] **uuid** | **String** | | [optional]

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.HasOnlyReadOnly # OpenApiPetstore.HasOnlyReadOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,8 +1,8 @@
# SwaggerPetstore.List # OpenApiPetstore.List
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_123List** | **String** | | [optional] **_123list** | **String** | | [optional]

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.MapTest # OpenApiPetstore.MapTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass # OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Model200Response # OpenApiPetstore.Model200Response
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ModelReturn # OpenApiPetstore.ModelReturn
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Name # OpenApiPetstore.Name
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
@ -6,6 +6,6 @@ Name | Type | Description | Notes
**name** | **Number** | | **name** | **Number** | |
**snakeCase** | **Number** | | [optional] **snakeCase** | **Number** | | [optional]
**property** | **String** | | [optional] **property** | **String** | | [optional]
**_123Number** | **Number** | | [optional] **_123number** | **Number** | | [optional]

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.NumberOnly # OpenApiPetstore.NumberOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Order # OpenApiPetstore.Order
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,10 +1,10 @@
# SwaggerPetstore.OuterComposite # OpenApiPetstore.OuterComposite
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**myNumber** | [**OuterNumber**](OuterNumber.md) | | [optional] **myNumber** | **Number** | | [optional]
**myString** | [**OuterString**](OuterString.md) | | [optional] **myString** | **String** | | [optional]
**myBoolean** | [**OuterBoolean**](OuterBoolean.md) | | [optional] **myBoolean** | **Boolean** | | [optional]

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.OuterEnum # OpenApiPetstore.OuterEnum
## Enum ## Enum

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Pet # OpenApiPetstore.Pet
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.PetApi # OpenApiPetstore.PetApi
All URIs are relative to *http://petstore.swagger.io:80/v2* All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -16,27 +16,22 @@ Method | HTTP request | Description
<a name="addPet"></a> <a name="addPet"></a>
# **addPet** # **addPet**
> addPet(body) > addPet(pet)
Add a new pet to the store Add a new pet to the store
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth']; let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi(); let apiInstance = new OpenApiPetstore.PetApi();
let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store apiInstance.addPet(pet, (error, data, response) => {
apiInstance.addPet(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -49,7 +44,7 @@ apiInstance.addPet(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type ### Return type
@ -62,7 +57,7 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json, application/xml - **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="deletePet"></a> <a name="deletePet"></a>
# **deletePet** # **deletePet**
@ -70,25 +65,20 @@ null (empty response body)
Deletes a pet Deletes a pet
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth']; let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi(); let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | Pet id to delete let petId = 789; // Number | Pet id to delete
let opts = { let opts = {
'apiKey': "apiKey_example" // String | 'apiKey': "apiKey_example" // String |
}; };
apiInstance.deletePet(petId, opts, (error, data, response) => { apiInstance.deletePet(petId, opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -116,7 +106,7 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="findPetsByStatus"></a> <a name="findPetsByStatus"></a>
# **findPetsByStatus** # **findPetsByStatus**
@ -128,18 +118,15 @@ Multiple status values can be provided with comma separated strings
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth']; let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi(); let apiInstance = new OpenApiPetstore.PetApi();
let status = ["'available'"]; // [String] | Status values that need to be considered for filter
let status = ["status_example"]; // [String] | Status values that need to be considered for filter
apiInstance.findPetsByStatus(status, (error, data, response) => { apiInstance.findPetsByStatus(status, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -178,18 +165,15 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth']; let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi(); let apiInstance = new OpenApiPetstore.PetApi();
let tags = ["inner_example"]; // [String] | Tags to filter by
let tags = ["tags_example"]; // [String] | Tags to filter by
apiInstance.findPetsByTags(tags, (error, data, response) => { apiInstance.findPetsByTags(tags, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -228,8 +212,8 @@ Returns a single pet
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key // Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key']; let api_key = defaultClient.authentications['api_key'];
@ -237,11 +221,8 @@ api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token'; //api_key.apiKeyPrefix = 'Token';
let apiInstance = new SwaggerPetstore.PetApi(); let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | ID of pet to return let petId = 789; // Number | ID of pet to return
apiInstance.getPetById(petId, (error, data, response) => { apiInstance.getPetById(petId, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -272,27 +253,22 @@ Name | Type | Description | Notes
<a name="updatePet"></a> <a name="updatePet"></a>
# **updatePet** # **updatePet**
> updatePet(body) > updatePet(pet)
Update an existing pet Update an existing pet
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth']; let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi(); let apiInstance = new OpenApiPetstore.PetApi();
let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store apiInstance.updatePet(pet, (error, data, response) => {
apiInstance.updatePet(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -305,7 +281,7 @@ apiInstance.updatePet(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type ### Return type
@ -318,7 +294,7 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json, application/xml - **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="updatePetWithForm"></a> <a name="updatePetWithForm"></a>
# **updatePetWithForm** # **updatePetWithForm**
@ -326,26 +302,21 @@ null (empty response body)
Updates a pet in the store with form data Updates a pet in the store with form data
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth']; let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi(); let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | ID of pet that needs to be updated let petId = 789; // Number | ID of pet that needs to be updated
let opts = { let opts = {
'name': "name_example", // String | Updated name of the pet 'name': "name_example", // String | Updated name of the pet
'status': "status_example" // String | Updated status of the pet 'status': "status_example" // String | Updated status of the pet
}; };
apiInstance.updatePetWithForm(petId, opts, (error, data, response) => { apiInstance.updatePetWithForm(petId, opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -374,7 +345,7 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="uploadFile"></a> <a name="uploadFile"></a>
# **uploadFile** # **uploadFile**
@ -382,26 +353,21 @@ null (empty response body)
uploads an image uploads an image
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth']; let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi(); let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | ID of pet to update let petId = 789; // Number | ID of pet to update
let opts = { let opts = {
'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server 'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server
'file': "/path/to/file.txt" // File | file to upload 'file': "/path/to/file" // File | file to upload
}; };
apiInstance.uploadFile(petId, opts, (error, data, response) => { apiInstance.uploadFile(petId, opts, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ReadOnlyFirst # OpenApiPetstore.ReadOnlyFirst
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.SpecialModelName # OpenApiPetstore.SpecialModelName
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.StoreApi # OpenApiPetstore.StoreApi
All URIs are relative to *http://petstore.swagger.io:80/v2* All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -20,13 +20,10 @@ For valid response try integer IDs with value &lt; 1000. Anything above 1000 or
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.StoreApi();
let apiInstance = new OpenApiPetstore.StoreApi();
let orderId = "orderId_example"; // String | ID of the order that needs to be deleted let orderId = "orderId_example"; // String | ID of the order that needs to be deleted
apiInstance.deleteOrder(orderId, (error, data, response) => { apiInstance.deleteOrder(orderId, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -53,11 +50,11 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="getInventory"></a> <a name="getInventory"></a>
# **getInventory** # **getInventory**
> {&#39;String&#39;: &#39;Number&#39;} getInventory() > {String: Number} getInventory()
Returns pet inventories by status Returns pet inventories by status
@ -65,8 +62,8 @@ Returns a map of status codes to quantities
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key // Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key']; let api_key = defaultClient.authentications['api_key'];
@ -74,8 +71,7 @@ api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token'; //api_key.apiKeyPrefix = 'Token';
let apiInstance = new SwaggerPetstore.StoreApi(); let apiInstance = new OpenApiPetstore.StoreApi();
apiInstance.getInventory((error, data, response) => { apiInstance.getInventory((error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -90,7 +86,7 @@ This endpoint does not need any parameter.
### Return type ### Return type
**{&#39;String&#39;: &#39;Number&#39;}** **{String: Number}**
### Authorization ### Authorization
@ -111,13 +107,10 @@ For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other val
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.StoreApi();
let apiInstance = new OpenApiPetstore.StoreApi();
let orderId = 789; // Number | ID of pet that needs to be fetched let orderId = 789; // Number | ID of pet that needs to be fetched
apiInstance.getOrderById(orderId, (error, data, response) => { apiInstance.getOrderById(orderId, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -148,22 +141,17 @@ No authorization required
<a name="placeOrder"></a> <a name="placeOrder"></a>
# **placeOrder** # **placeOrder**
> Order placeOrder(body) > Order placeOrder(order)
Place an order for a pet Place an order for a pet
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.StoreApi(); let apiInstance = new OpenApiPetstore.StoreApi();
let order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
let body = new SwaggerPetstore.Order(); // Order | order placed for purchasing the pet apiInstance.placeOrder(order, (error, data, response) => {
apiInstance.placeOrder(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -176,7 +164,7 @@ apiInstance.placeOrder(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**Order**](Order.md)| order placed for purchasing the pet | **order** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type ### Return type

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Tag # OpenApiPetstore.Tag
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.User # OpenApiPetstore.User
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.UserApi # OpenApiPetstore.UserApi
All URIs are relative to *http://petstore.swagger.io:80/v2* All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createUser"></a> <a name="createUser"></a>
# **createUser** # **createUser**
> createUser(body) > createUser(user)
Create user Create user
@ -24,14 +24,11 @@ This can only be done by the logged in user.
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi(); let apiInstance = new OpenApiPetstore.UserApi();
let user = new OpenApiPetstore.User(); // User | Created user object
let body = new SwaggerPetstore.User(); // User | Created user object apiInstance.createUser(user, (error, data, response) => {
apiInstance.createUser(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -44,7 +41,7 @@ apiInstance.createUser(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**User**](User.md)| Created user object | **user** | [**User**](User.md)| Created user object |
### Return type ### Return type
@ -57,26 +54,21 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="createUsersWithArrayInput"></a> <a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput** # **createUsersWithArrayInput**
> createUsersWithArrayInput(body) > createUsersWithArrayInput(user)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi(); let apiInstance = new OpenApiPetstore.UserApi();
let user = [new OpenApiPetstore.User()]; // [User] | List of user object
let body = [new SwaggerPetstore.User()]; // [User] | List of user object apiInstance.createUsersWithArrayInput(user, (error, data, response) => {
apiInstance.createUsersWithArrayInput(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -89,7 +81,7 @@ apiInstance.createUsersWithArrayInput(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**[User]**](User.md)| List of user object | **user** | [**[User]**](Array.md)| List of user object |
### Return type ### Return type
@ -102,26 +94,21 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="createUsersWithListInput"></a> <a name="createUsersWithListInput"></a>
# **createUsersWithListInput** # **createUsersWithListInput**
> createUsersWithListInput(body) > createUsersWithListInput(user)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi(); let apiInstance = new OpenApiPetstore.UserApi();
let user = [new OpenApiPetstore.User()]; // [User] | List of user object
let body = [new SwaggerPetstore.User()]; // [User] | List of user object apiInstance.createUsersWithListInput(user, (error, data, response) => {
apiInstance.createUsersWithListInput(body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -134,7 +121,7 @@ apiInstance.createUsersWithListInput(body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**[User]**](User.md)| List of user object | **user** | [**[User]**](Array.md)| List of user object |
### Return type ### Return type
@ -147,7 +134,7 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="deleteUser"></a> <a name="deleteUser"></a>
# **deleteUser** # **deleteUser**
@ -159,13 +146,10 @@ This can only be done by the logged in user.
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | The name that needs to be deleted let username = "username_example"; // String | The name that needs to be deleted
apiInstance.deleteUser(username, (error, data, response) => { apiInstance.deleteUser(username, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -192,7 +176,7 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="getUserByName"></a> <a name="getUserByName"></a>
# **getUserByName** # **getUserByName**
@ -200,17 +184,12 @@ No authorization required
Get user by user name Get user by user name
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
apiInstance.getUserByName(username, (error, data, response) => { apiInstance.getUserByName(username, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -241,23 +220,17 @@ No authorization required
<a name="loginUser"></a> <a name="loginUser"></a>
# **loginUser** # **loginUser**
> &#39;String&#39; loginUser(username, password) > String loginUser(username, password)
Logs user into the system Logs user into the system
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | The user name for login let username = "username_example"; // String | The user name for login
let password = "password_example"; // String | The password for login in clear text let password = "password_example"; // String | The password for login in clear text
apiInstance.loginUser(username, password, (error, data, response) => { apiInstance.loginUser(username, password, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -276,7 +249,7 @@ Name | Type | Description | Notes
### Return type ### Return type
**&#39;String&#39;** **String**
### Authorization ### Authorization
@ -293,14 +266,11 @@ No authorization required
Logs out current logged in user session Logs out current logged in user session
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let apiInstance = new OpenApiPetstore.UserApi();
apiInstance.logoutUser((error, data, response) => { apiInstance.logoutUser((error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
@ -324,11 +294,11 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: Not defined
<a name="updateUser"></a> <a name="updateUser"></a>
# **updateUser** # **updateUser**
> updateUser(username, body) > updateUser(username, user)
Updated user Updated user
@ -336,16 +306,12 @@ This can only be done by the logged in user.
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | name that need to be deleted let username = "username_example"; // String | name that need to be deleted
let user = new OpenApiPetstore.User(); // User | Updated user object
let body = new SwaggerPetstore.User(); // User | Updated user object apiInstance.updateUser(username, user, (error, data, response) => {
apiInstance.updateUser(username, body, (error, data, response) => {
if (error) { if (error) {
console.error(error); console.error(error);
} else { } else {
@ -359,7 +325,7 @@ apiInstance.updateUser(username, body, (error, data, response) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted | **username** | **String**| name that need to be deleted |
**body** | [**User**](User.md)| Updated user object | **user** | [**User**](User.md)| Updated user object |
### Return type ### Return type
@ -372,5 +338,5 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: Not defined

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
# #
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
git_user_id=$1 git_user_id=$1
git_repo_id=$2 git_repo_id=$2

View File

@ -1,5 +1,5 @@
{ {
"name": "swagger_petstore", "name": "open_api_petstore",
"version": "1.0.0", "version": "1.0.0",
"description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__", "description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__",
"license": "Apache-2.0", "license": "Apache-2.0",

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -490,7 +490,7 @@ export default class ApiClient {
* @returns {Date} The parsed date object. * @returns {Date} The parsed date object.
*/ */
static parseDate(str) { static parseDate(str) {
return new Date(str.replace(/T/i, ' ')); return new Date(str);
} }
/** /**

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -45,16 +45,16 @@ export default class AnotherFakeApi {
/** /**
* To test special tags * To test special tags
* To test special tags * To test special tags
* @param {module:model/Client} body client model * @param {module:model/Client} client client model
* @param {module:api/AnotherFakeApi~testSpecialTagsCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/AnotherFakeApi~testSpecialTagsCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Client} * data is of type: {@link module:model/Client}
*/ */
testSpecialTags(body, callback) { testSpecialTags(client, callback) {
let postBody = body; let postBody = client;
// verify the required parameter 'body' is set // verify the required parameter 'client' is set
if (body === undefined || body === null) { if (client === undefined || client === null) {
throw new Error("Missing the required parameter 'body' when calling testSpecialTags"); throw new Error("Missing the required parameter 'client' when calling testSpecialTags");
} }

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -14,10 +14,8 @@
import ApiClient from "../ApiClient"; import ApiClient from "../ApiClient";
import Client from '../model/Client'; import Client from '../model/Client';
import OuterBoolean from '../model/OuterBoolean';
import OuterComposite from '../model/OuterComposite'; import OuterComposite from '../model/OuterComposite';
import OuterNumber from '../model/OuterNumber'; import User from '../model/User';
import OuterString from '../model/OuterString';
/** /**
* Fake service. * Fake service.
@ -42,16 +40,16 @@ export default class FakeApi {
* Callback function to receive the result of the fakeOuterBooleanSerialize operation. * Callback function to receive the result of the fakeOuterBooleanSerialize operation.
* @callback module:api/FakeApi~fakeOuterBooleanSerializeCallback * @callback module:api/FakeApi~fakeOuterBooleanSerializeCallback
* @param {String} error Error message, if any. * @param {String} error Error message, if any.
* @param {module:model/OuterBoolean} data The data returned by the service call. * @param {Boolean} data The data returned by the service call.
* @param {String} response The complete HTTP response. * @param {String} response The complete HTTP response.
*/ */
/** /**
* Test serialization of outer boolean types * Test serialization of outer boolean types
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {module:model/OuterBoolean} opts.body Input boolean as post body * @param {Boolean} opts.body Input boolean as post body
* @param {module:api/FakeApi~fakeOuterBooleanSerializeCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~fakeOuterBooleanSerializeCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/OuterBoolean} * data is of type: {@link Boolean}
*/ */
fakeOuterBooleanSerialize(opts, callback) { fakeOuterBooleanSerialize(opts, callback) {
opts = opts || {}; opts = opts || {};
@ -69,8 +67,8 @@ export default class FakeApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = []; let accepts = ['*/*'];
let returnType = OuterBoolean; let returnType = Boolean;
return this.apiClient.callApi( return this.apiClient.callApi(
'/fake/outer/boolean', 'POST', '/fake/outer/boolean', 'POST',
@ -90,13 +88,13 @@ export default class FakeApi {
/** /**
* Test serialization of object with outer number type * Test serialization of object with outer number type
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {module:model/OuterComposite} opts.body Input composite as post body * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
* @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/OuterComposite} * data is of type: {@link module:model/OuterComposite}
*/ */
fakeOuterCompositeSerialize(opts, callback) { fakeOuterCompositeSerialize(opts, callback) {
opts = opts || {}; opts = opts || {};
let postBody = opts['body']; let postBody = opts['outerComposite'];
let pathParams = { let pathParams = {
@ -110,7 +108,7 @@ export default class FakeApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = []; let accepts = ['*/*'];
let returnType = OuterComposite; let returnType = OuterComposite;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -124,16 +122,16 @@ export default class FakeApi {
* Callback function to receive the result of the fakeOuterNumberSerialize operation. * Callback function to receive the result of the fakeOuterNumberSerialize operation.
* @callback module:api/FakeApi~fakeOuterNumberSerializeCallback * @callback module:api/FakeApi~fakeOuterNumberSerializeCallback
* @param {String} error Error message, if any. * @param {String} error Error message, if any.
* @param {module:model/OuterNumber} data The data returned by the service call. * @param {Number} data The data returned by the service call.
* @param {String} response The complete HTTP response. * @param {String} response The complete HTTP response.
*/ */
/** /**
* Test serialization of outer number types * Test serialization of outer number types
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {module:model/OuterNumber} opts.body Input number as post body * @param {Number} opts.body Input number as post body
* @param {module:api/FakeApi~fakeOuterNumberSerializeCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~fakeOuterNumberSerializeCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/OuterNumber} * data is of type: {@link Number}
*/ */
fakeOuterNumberSerialize(opts, callback) { fakeOuterNumberSerialize(opts, callback) {
opts = opts || {}; opts = opts || {};
@ -151,8 +149,8 @@ export default class FakeApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = []; let accepts = ['*/*'];
let returnType = OuterNumber; let returnType = Number;
return this.apiClient.callApi( return this.apiClient.callApi(
'/fake/outer/number', 'POST', '/fake/outer/number', 'POST',
@ -165,16 +163,16 @@ export default class FakeApi {
* Callback function to receive the result of the fakeOuterStringSerialize operation. * Callback function to receive the result of the fakeOuterStringSerialize operation.
* @callback module:api/FakeApi~fakeOuterStringSerializeCallback * @callback module:api/FakeApi~fakeOuterStringSerializeCallback
* @param {String} error Error message, if any. * @param {String} error Error message, if any.
* @param {module:model/OuterString} data The data returned by the service call. * @param {String} data The data returned by the service call.
* @param {String} response The complete HTTP response. * @param {String} response The complete HTTP response.
*/ */
/** /**
* Test serialization of outer string types * Test serialization of outer string types
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {module:model/OuterString} opts.body Input string as post body * @param {String} opts.body Input string as post body
* @param {module:api/FakeApi~fakeOuterStringSerializeCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~fakeOuterStringSerializeCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/OuterString} * data is of type: {@link String}
*/ */
fakeOuterStringSerialize(opts, callback) { fakeOuterStringSerialize(opts, callback) {
opts = opts || {}; opts = opts || {};
@ -192,8 +190,8 @@ export default class FakeApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = []; let accepts = ['*/*'];
let returnType = OuterString; let returnType = String;
return this.apiClient.callApi( return this.apiClient.callApi(
'/fake/outer/string', 'POST', '/fake/outer/string', 'POST',
@ -202,6 +200,55 @@ export default class FakeApi {
); );
} }
/**
* Callback function to receive the result of the testBodyWithQueryParams operation.
* @callback module:api/FakeApi~testBodyWithQueryParamsCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* @param {String} query
* @param {module:model/User} user
* @param {module:api/FakeApi~testBodyWithQueryParamsCallback} callback The callback function, accepting three arguments: error, data, response
*/
testBodyWithQueryParams(query, user, callback) {
let postBody = user;
// verify the required parameter 'query' is set
if (query === undefined || query === null) {
throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams");
}
// verify the required parameter 'user' is set
if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'user' when calling testBodyWithQueryParams");
}
let pathParams = {
};
let queryParams = {
'query': query
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/fake/body-with-query-params', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, callback
);
}
/** /**
* Callback function to receive the result of the testClientModel operation. * Callback function to receive the result of the testClientModel operation.
* @callback module:api/FakeApi~testClientModelCallback * @callback module:api/FakeApi~testClientModelCallback
@ -213,16 +260,16 @@ export default class FakeApi {
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* @param {module:model/Client} body client model * @param {module:model/Client} client client model
* @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Client} * data is of type: {@link module:model/Client}
*/ */
testClientModel(body, callback) { testClientModel(client, callback) {
let postBody = body; let postBody = client;
// verify the required parameter 'body' is set // verify the required parameter 'client' is set
if (body === undefined || body === null) { if (client === undefined || client === null) {
throw new Error("Missing the required parameter 'body' when calling testClientModel"); throw new Error("Missing the required parameter 'client' when calling testClientModel");
} }
@ -268,7 +315,7 @@ export default class FakeApi {
* @param {Number} opts.int64 None * @param {Number} opts.int64 None
* @param {Number} opts._float None * @param {Number} opts._float None
* @param {String} opts._string None * @param {String} opts._string None
* @param {Blob} opts.binary None * @param {File} opts.binary None
* @param {Date} opts._date None * @param {Date} opts._date None
* @param {Date} opts.dateTime None * @param {Date} opts.dateTime None
* @param {String} opts.password None * @param {String} opts.password None
@ -324,8 +371,8 @@ export default class FakeApi {
}; };
let authNames = ['http_basic_test']; let authNames = ['http_basic_test'];
let contentTypes = ['application/xml; charset=utf-8', 'application/json; charset=utf-8']; let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = ['application/xml; charset=utf-8', 'application/json; charset=utf-8']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -347,14 +394,14 @@ export default class FakeApi {
* To test enum parameters * To test enum parameters
* To test enum parameters * To test enum parameters
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {Array.<module:model/String>} opts.enumFormStringArray Form parameter enum test (string array)
* @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to -efg)
* @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array) * @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array)
* @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to -efg) * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to &#39;-efg&#39;)
* @param {Array.<module:model/String>} opts.enumQueryStringArray Query parameter enum test (string array) * @param {Array.<module:model/String>} opts.enumQueryStringArray Query parameter enum test (string array)
* @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to -efg) * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to &#39;-efg&#39;)
* @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double) * @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double) * @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
* @param {Array.<module:model/String>} opts.enumFormStringArray Form parameter enum test (string array) (default to &#39;$&#39;)
* @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to &#39;-efg&#39;)
* @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
testEnumParameters(opts, callback) { testEnumParameters(opts, callback) {
@ -367,7 +414,8 @@ export default class FakeApi {
let queryParams = { let queryParams = {
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'), 'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'),
'enum_query_string': opts['enumQueryString'], 'enum_query_string': opts['enumQueryString'],
'enum_query_integer': opts['enumQueryInteger'] 'enum_query_integer': opts['enumQueryInteger'],
'enum_query_double': opts['enumQueryDouble']
}; };
let headerParams = { let headerParams = {
'enum_header_string_array': opts['enumHeaderStringArray'], 'enum_header_string_array': opts['enumHeaderStringArray'],
@ -375,13 +423,12 @@ export default class FakeApi {
}; };
let formParams = { let formParams = {
'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'), 'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'),
'enum_form_string': opts['enumFormString'], 'enum_form_string': opts['enumFormString']
'enum_query_double': opts['enumQueryDouble']
}; };
let authNames = []; let authNames = [];
let contentTypes = ['*/*']; let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = ['*/*']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -401,16 +448,15 @@ export default class FakeApi {
/** /**
* test inline additionalProperties * test inline additionalProperties
* * @param {Object.<String, {String: String}>} requestBody request body
* @param {Object} param request body
* @param {module:api/FakeApi~testInlineAdditionalPropertiesCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testInlineAdditionalPropertiesCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
testInlineAdditionalProperties(param, callback) { testInlineAdditionalProperties(requestBody, callback) {
let postBody = param; let postBody = requestBody;
// verify the required parameter 'param' is set // verify the required parameter 'requestBody' is set
if (param === undefined || param === null) { if (requestBody === undefined || requestBody === null) {
throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
} }
@ -445,7 +491,6 @@ export default class FakeApi {
/** /**
* test json serialization of form data * test json serialization of form data
*
* @param {String} param field1 * @param {String} param field1
* @param {String} param2 field2 * @param {String} param2 field2
* @param {module:api/FakeApi~testJsonFormDataCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testJsonFormDataCallback} callback The callback function, accepting three arguments: error, data, response
@ -476,7 +521,7 @@ export default class FakeApi {
}; };
let authNames = []; let authNames = [];
let contentTypes = ['application/json']; let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = []; let accepts = [];
let returnType = null; let returnType = null;

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -44,16 +44,17 @@ export default class FakeClassnameTags123Api {
/** /**
* To test class name in snake case * To test class name in snake case
* @param {module:model/Client} body client model * To test class name in snake case
* @param {module:model/Client} client client model
* @param {module:api/FakeClassnameTags123Api~testClassnameCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeClassnameTags123Api~testClassnameCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Client} * data is of type: {@link module:model/Client}
*/ */
testClassname(body, callback) { testClassname(client, callback) {
let postBody = body; let postBody = client;
// verify the required parameter 'body' is set // verify the required parameter 'client' is set
if (body === undefined || body === null) { if (client === undefined || client === null) {
throw new Error("Missing the required parameter 'body' when calling testClassname"); throw new Error("Missing the required parameter 'client' when calling testClassname");
} }

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -45,16 +45,15 @@ export default class PetApi {
/** /**
* Add a new pet to the store * Add a new pet to the store
* * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @param {module:model/Pet} body Pet object that needs to be added to the store
* @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
addPet(body, callback) { addPet(pet, callback) {
let postBody = body; let postBody = pet;
// verify the required parameter 'body' is set // verify the required parameter 'pet' is set
if (body === undefined || body === null) { if (pet === undefined || pet === null) {
throw new Error("Missing the required parameter 'body' when calling addPet"); throw new Error("Missing the required parameter 'pet' when calling addPet");
} }
@ -69,7 +68,7 @@ export default class PetApi {
let authNames = ['petstore_auth']; let authNames = ['petstore_auth'];
let contentTypes = ['application/json', 'application/xml']; let contentTypes = ['application/json', 'application/xml'];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -89,7 +88,6 @@ export default class PetApi {
/** /**
* Deletes a pet * Deletes a pet
*
* @param {Number} petId Pet id to delete * @param {Number} petId Pet id to delete
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {String} opts.apiKey * @param {String} opts.apiKey
@ -118,7 +116,7 @@ export default class PetApi {
let authNames = ['petstore_auth']; let authNames = ['petstore_auth'];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -276,16 +274,15 @@ export default class PetApi {
/** /**
* Update an existing pet * Update an existing pet
* * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @param {module:model/Pet} body Pet object that needs to be added to the store
* @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
updatePet(body, callback) { updatePet(pet, callback) {
let postBody = body; let postBody = pet;
// verify the required parameter 'body' is set // verify the required parameter 'pet' is set
if (body === undefined || body === null) { if (pet === undefined || pet === null) {
throw new Error("Missing the required parameter 'body' when calling updatePet"); throw new Error("Missing the required parameter 'pet' when calling updatePet");
} }
@ -300,7 +297,7 @@ export default class PetApi {
let authNames = ['petstore_auth']; let authNames = ['petstore_auth'];
let contentTypes = ['application/json', 'application/xml']; let contentTypes = ['application/json', 'application/xml'];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -320,7 +317,6 @@ export default class PetApi {
/** /**
* Updates a pet in the store with form data * Updates a pet in the store with form data
*
* @param {Number} petId ID of pet that needs to be updated * @param {Number} petId ID of pet that needs to be updated
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {String} opts.name Updated name of the pet * @param {String} opts.name Updated name of the pet
@ -351,7 +347,7 @@ export default class PetApi {
let authNames = ['petstore_auth']; let authNames = ['petstore_auth'];
let contentTypes = ['application/x-www-form-urlencoded']; let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -371,7 +367,6 @@ export default class PetApi {
/** /**
* uploads an image * uploads an image
*
* @param {Number} petId ID of pet to update * @param {Number} petId ID of pet to update
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {String} opts.additionalMetadata Additional data to pass to server * @param {String} opts.additionalMetadata Additional data to pass to server

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -69,7 +69,7 @@ export default class StoreApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -83,7 +83,7 @@ export default class StoreApi {
* Callback function to receive the result of the getInventory operation. * Callback function to receive the result of the getInventory operation.
* @callback module:api/StoreApi~getInventoryCallback * @callback module:api/StoreApi~getInventoryCallback
* @param {String} error Error message, if any. * @param {String} error Error message, if any.
* @param {Object.<String, {'String': 'Number'}>} data The data returned by the service call. * @param {Object.<String, {String: Number}>} data The data returned by the service call.
* @param {String} response The complete HTTP response. * @param {String} response The complete HTTP response.
*/ */
@ -91,7 +91,7 @@ export default class StoreApi {
* Returns pet inventories by status * Returns pet inventories by status
* Returns a map of status codes to quantities * Returns a map of status codes to quantities
* @param {module:api/StoreApi~getInventoryCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/StoreApi~getInventoryCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Object.<String, {'String': 'Number'}>} * data is of type: {@link Object.<String, {String: Number}>}
*/ */
getInventory(callback) { getInventory(callback) {
let postBody = null; let postBody = null;
@ -109,7 +109,7 @@ export default class StoreApi {
let authNames = ['api_key']; let authNames = ['api_key'];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/json']; let accepts = ['application/json'];
let returnType = {'String': 'Number'}; let returnType = {String: Number};
return this.apiClient.callApi( return this.apiClient.callApi(
'/store/inventory', 'GET', '/store/inventory', 'GET',
@ -174,17 +174,16 @@ export default class StoreApi {
/** /**
* Place an order for a pet * Place an order for a pet
* * @param {module:model/Order} order order placed for purchasing the pet
* @param {module:model/Order} body order placed for purchasing the pet
* @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Order} * data is of type: {@link module:model/Order}
*/ */
placeOrder(body, callback) { placeOrder(order, callback) {
let postBody = body; let postBody = order;
// verify the required parameter 'body' is set // verify the required parameter 'order' is set
if (body === undefined || body === null) { if (order === undefined || order === null) {
throw new Error("Missing the required parameter 'body' when calling placeOrder"); throw new Error("Missing the required parameter 'order' when calling placeOrder");
} }

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -45,15 +45,15 @@ export default class UserApi {
/** /**
* Create user * Create user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param {module:model/User} body Created user object * @param {module:model/User} user Created user object
* @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
createUser(body, callback) { createUser(user, callback) {
let postBody = body; let postBody = user;
// verify the required parameter 'body' is set // verify the required parameter 'user' is set
if (body === undefined || body === null) { if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'body' when calling createUser"); throw new Error("Missing the required parameter 'user' when calling createUser");
} }
@ -68,7 +68,7 @@ export default class UserApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -88,16 +88,15 @@ export default class UserApi {
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* * @param {Array.<User>} user List of user object
* @param {Array.<module:model/User>} body List of user object
* @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
createUsersWithArrayInput(body, callback) { createUsersWithArrayInput(user, callback) {
let postBody = body; let postBody = user;
// verify the required parameter 'body' is set // verify the required parameter 'user' is set
if (body === undefined || body === null) { if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput"); throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput");
} }
@ -112,7 +111,7 @@ export default class UserApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -132,16 +131,15 @@ export default class UserApi {
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* * @param {Array.<User>} user List of user object
* @param {Array.<module:model/User>} body List of user object
* @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
createUsersWithListInput(body, callback) { createUsersWithListInput(user, callback) {
let postBody = body; let postBody = user;
// verify the required parameter 'body' is set // verify the required parameter 'user' is set
if (body === undefined || body === null) { if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput"); throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput");
} }
@ -156,7 +154,7 @@ export default class UserApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -201,7 +199,7 @@ export default class UserApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -221,7 +219,6 @@ export default class UserApi {
/** /**
* Get user by user name * Get user by user name
*
* @param {String} username The name that needs to be fetched. Use user1 for testing. * @param {String} username The name that needs to be fetched. Use user1 for testing.
* @param {module:api/UserApi~getUserByNameCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~getUserByNameCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/User} * data is of type: {@link module:model/User}
@ -261,17 +258,16 @@ export default class UserApi {
* Callback function to receive the result of the loginUser operation. * Callback function to receive the result of the loginUser operation.
* @callback module:api/UserApi~loginUserCallback * @callback module:api/UserApi~loginUserCallback
* @param {String} error Error message, if any. * @param {String} error Error message, if any.
* @param {'String'} data The data returned by the service call. * @param {String} data The data returned by the service call.
* @param {String} response The complete HTTP response. * @param {String} response The complete HTTP response.
*/ */
/** /**
* Logs user into the system * Logs user into the system
*
* @param {String} username The user name for login * @param {String} username The user name for login
* @param {String} password The password for login in clear text * @param {String} password The password for login in clear text
* @param {module:api/UserApi~loginUserCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~loginUserCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link 'String'} * data is of type: {@link String}
*/ */
loginUser(username, password, callback) { loginUser(username, password, callback) {
let postBody = null; let postBody = null;
@ -301,7 +297,7 @@ export default class UserApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = ['application/xml', 'application/json'];
let returnType = 'String'; let returnType = String;
return this.apiClient.callApi( return this.apiClient.callApi(
'/user/login', 'GET', '/user/login', 'GET',
@ -320,7 +316,6 @@ export default class UserApi {
/** /**
* Logs out current logged in user session * Logs out current logged in user session
*
* @param {module:api/UserApi~logoutUserCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~logoutUserCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
logoutUser(callback) { logoutUser(callback) {
@ -338,7 +333,7 @@ export default class UserApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(
@ -360,20 +355,20 @@ export default class UserApi {
* Updated user * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param {String} username name that need to be deleted * @param {String} username name that need to be deleted
* @param {module:model/User} body Updated user object * @param {module:model/User} user Updated user object
* @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
updateUser(username, body, callback) { updateUser(username, user, callback) {
let postBody = body; let postBody = user;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username === undefined || username === null) { if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling updateUser"); throw new Error("Missing the required parameter 'username' when calling updateUser");
} }
// verify the required parameter 'body' is set // verify the required parameter 'user' is set
if (body === undefined || body === null) { if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'body' when calling updateUser"); throw new Error("Missing the required parameter 'user' when calling updateUser");
} }
@ -389,7 +384,7 @@ export default class UserApi {
let authNames = []; let authNames = [];
let contentTypes = []; let contentTypes = [];
let accepts = ['application/xml', 'application/json']; let accepts = [];
let returnType = null; let returnType = null;
return this.apiClient.callApi( return this.apiClient.callApi(

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -21,9 +21,11 @@ import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly';
import ArrayOfNumberOnly from './model/ArrayOfNumberOnly'; import ArrayOfNumberOnly from './model/ArrayOfNumberOnly';
import ArrayTest from './model/ArrayTest'; import ArrayTest from './model/ArrayTest';
import Capitalization from './model/Capitalization'; import Capitalization from './model/Capitalization';
import Cat from './model/Cat';
import Category from './model/Category'; import Category from './model/Category';
import ClassModel from './model/ClassModel'; import ClassModel from './model/ClassModel';
import Client from './model/Client'; import Client from './model/Client';
import Dog from './model/Dog';
import EnumArrays from './model/EnumArrays'; import EnumArrays from './model/EnumArrays';
import EnumClass from './model/EnumClass'; import EnumClass from './model/EnumClass';
import EnumTest from './model/EnumTest'; import EnumTest from './model/EnumTest';
@ -37,18 +39,13 @@ import ModelReturn from './model/ModelReturn';
import Name from './model/Name'; import Name from './model/Name';
import NumberOnly from './model/NumberOnly'; import NumberOnly from './model/NumberOnly';
import Order from './model/Order'; import Order from './model/Order';
import OuterBoolean from './model/OuterBoolean';
import OuterComposite from './model/OuterComposite'; import OuterComposite from './model/OuterComposite';
import OuterEnum from './model/OuterEnum'; import OuterEnum from './model/OuterEnum';
import OuterNumber from './model/OuterNumber';
import OuterString from './model/OuterString';
import Pet from './model/Pet'; import Pet from './model/Pet';
import ReadOnlyFirst from './model/ReadOnlyFirst'; import ReadOnlyFirst from './model/ReadOnlyFirst';
import SpecialModelName from './model/SpecialModelName'; import SpecialModelName from './model/SpecialModelName';
import Tag from './model/Tag'; import Tag from './model/Tag';
import User from './model/User'; import User from './model/User';
import Cat from './model/Cat';
import Dog from './model/Dog';
import AnotherFakeApi from './api/AnotherFakeApi'; import AnotherFakeApi from './api/AnotherFakeApi';
import FakeApi from './api/FakeApi'; import FakeApi from './api/FakeApi';
import FakeClassnameTags123Api from './api/FakeClassnameTags123Api'; import FakeClassnameTags123Api from './api/FakeClassnameTags123Api';
@ -63,9 +60,9 @@ import UserApi from './api/UserApi';
* <p> * <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
* <pre> * <pre>
* var SwaggerPetstore = require('index'); // See note below*. * var OpenApiPetstore = require('index'); // See note below*.
* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use. * var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new SwaggerPetstore.Yyy(); // Construct a model instance. * var yyyModel = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue'; * yyyModel.someProperty = 'someValue';
* ... * ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service. * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@ -77,8 +74,8 @@ import UserApi from './api/UserApi';
* <p> * <p>
* A non-AMD browser application (discouraged) might do something like this: * A non-AMD browser application (discouraged) might do something like this:
* <pre> * <pre>
* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use. * var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new SwaggerPetstore.Yyy(); // Construct a model instance. * var yyy = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue'; * yyyModel.someProperty = 'someValue';
* ... * ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service. * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@ -143,6 +140,12 @@ export {
*/ */
Capitalization, Capitalization,
/**
* The Cat model constructor.
* @property {module:model/Cat}
*/
Cat,
/** /**
* The Category model constructor. * The Category model constructor.
* @property {module:model/Category} * @property {module:model/Category}
@ -161,6 +164,12 @@ export {
*/ */
Client, Client,
/**
* The Dog model constructor.
* @property {module:model/Dog}
*/
Dog,
/** /**
* The EnumArrays model constructor. * The EnumArrays model constructor.
* @property {module:model/EnumArrays} * @property {module:model/EnumArrays}
@ -239,12 +248,6 @@ export {
*/ */
Order, Order,
/**
* The OuterBoolean model constructor.
* @property {module:model/OuterBoolean}
*/
OuterBoolean,
/** /**
* The OuterComposite model constructor. * The OuterComposite model constructor.
* @property {module:model/OuterComposite} * @property {module:model/OuterComposite}
@ -257,18 +260,6 @@ export {
*/ */
OuterEnum, OuterEnum,
/**
* The OuterNumber model constructor.
* @property {module:model/OuterNumber}
*/
OuterNumber,
/**
* The OuterString model constructor.
* @property {module:model/OuterString}
*/
OuterString,
/** /**
* The Pet model constructor. * The Pet model constructor.
* @property {module:model/Pet} * @property {module:model/Pet}
@ -299,18 +290,6 @@ export {
*/ */
User, User,
/**
* The Cat model constructor.
* @property {module:model/Cat}
*/
Cat,
/**
* The Dog model constructor.
* @property {module:model/Dog}
*/
Dog,
/** /**
* The AnotherFakeApi service constructor. * The AnotherFakeApi service constructor.
* @property {module:api/AnotherFakeApi} * @property {module:api/AnotherFakeApi}

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -30,14 +30,15 @@ export default class Cat {
* @alias module:model/Cat * @alias module:model/Cat
* @class * @class
* @extends module:model/Animal * @extends module:model/Animal
* @param className {String} * @implements module:model/Animal
* @param className {}
*/ */
constructor(className) { constructor(className) {
Animal.call(this, className); Animal.call(this, className);
Animal.call(this, className);
@ -58,7 +59,7 @@ export default class Cat {
Animal.constructFromObject(data, obj); Animal.constructFromObject(data, obj);
Animal.constructFromObject(data, obj);
if (data.hasOwnProperty('declawed')) { if (data.hasOwnProperty('declawed')) {
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
@ -73,6 +74,17 @@ export default class Cat {
declawed = undefined; declawed = undefined;
// Implement Animal interface:
/**
* @member {String} className
*/
className = undefined;
/**
* @member {String} color
* @default 'red'
*/
color = 'red';

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -30,14 +30,15 @@ export default class Dog {
* @alias module:model/Dog * @alias module:model/Dog
* @class * @class
* @extends module:model/Animal * @extends module:model/Animal
* @param className {String} * @implements module:model/Animal
* @param className {}
*/ */
constructor(className) { constructor(className) {
Animal.call(this, className); Animal.call(this, className);
Animal.call(this, className);
@ -58,7 +59,7 @@ export default class Dog {
Animal.constructFromObject(data, obj); Animal.constructFromObject(data, obj);
Animal.constructFromObject(data, obj);
if (data.hasOwnProperty('breed')) { if (data.hasOwnProperty('breed')) {
obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
@ -73,6 +74,17 @@ export default class Dog {
breed = undefined; breed = undefined;
// Implement Animal interface:
/**
* @member {String} className
*/
className = undefined;
/**
* @member {String} color
* @default 'red'
*/
color = 'red';

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -29,15 +29,16 @@ export default class EnumTest {
* Constructs a new <code>EnumTest</code>. * Constructs a new <code>EnumTest</code>.
* @alias module:model/EnumTest * @alias module:model/EnumTest
* @class * @class
* @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum}
*/ */
constructor() { constructor(enumStringRequired) {
this['enum_string_required'] = enumStringRequired;
} }
@ -60,6 +61,9 @@ export default class EnumTest {
if (data.hasOwnProperty('enum_string')) { if (data.hasOwnProperty('enum_string')) {
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String'); obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
} }
if (data.hasOwnProperty('enum_string_required')) {
obj['enum_string_required'] = ApiClient.convertToType(data['enum_string_required'], 'String');
}
if (data.hasOwnProperty('enum_integer')) { if (data.hasOwnProperty('enum_integer')) {
obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number'); obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number');
} }
@ -78,6 +82,10 @@ export default class EnumTest {
*/ */
enum_string = undefined; enum_string = undefined;
/** /**
* @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
*/
enum_string_required = undefined;
/**
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer * @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
*/ */
enum_integer = undefined; enum_integer = undefined;
@ -121,6 +129,32 @@ export default class EnumTest {
"empty": "" "empty": ""
}; };
/**
* Allowed values for the <code>enum_string_required</code> property.
* @enum {String}
* @readonly
*/
static EnumStringRequiredEnum = {
/**
* value: "UPPER"
* @const
*/
"UPPER": "UPPER",
/**
* value: "lower"
* @const
*/
"lower": "lower",
/**
* value: ""
* @const
*/
"empty": ""
};
/** /**
* Allowed values for the <code>enum_integer</code> property. * Allowed values for the <code>enum_integer</code> property.
* @enum {Number} * @enum {Number}

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
@ -85,7 +85,7 @@ export default class FormatTest {
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob'); obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
} }
if (data.hasOwnProperty('binary')) { if (data.hasOwnProperty('binary')) {
obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob'); obj['binary'] = ApiClient.convertToType(data['binary'], File);
} }
if (data.hasOwnProperty('date')) { if (data.hasOwnProperty('date')) {
obj['date'] = ApiClient.convertToType(data['date'], 'Date'); obj['date'] = ApiClient.convertToType(data['date'], 'Date');
@ -136,7 +136,7 @@ export default class FormatTest {
*/ */
byte = undefined; byte = undefined;
/** /**
* @member {Blob} binary * @member {File} binary
*/ */
binary = undefined; binary = undefined;
/** /**

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,21 +1,18 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */
import ApiClient from '../ApiClient'; import ApiClient from '../ApiClient';
import OuterBoolean from './OuterBoolean';
import OuterNumber from './OuterNumber';
import OuterString from './OuterString';
@ -60,28 +57,28 @@ export default class OuterComposite {
if (data.hasOwnProperty('my_number')) { if (data.hasOwnProperty('my_number')) {
obj['my_number'] = OuterNumber.constructFromObject(data['my_number']); obj['my_number'] = 'Number'.constructFromObject(data['my_number']);
} }
if (data.hasOwnProperty('my_string')) { if (data.hasOwnProperty('my_string')) {
obj['my_string'] = OuterString.constructFromObject(data['my_string']); obj['my_string'] = 'String'.constructFromObject(data['my_string']);
} }
if (data.hasOwnProperty('my_boolean')) { if (data.hasOwnProperty('my_boolean')) {
obj['my_boolean'] = OuterBoolean.constructFromObject(data['my_boolean']); obj['my_boolean'] = 'Boolean'.constructFromObject(data['my_boolean']);
} }
} }
return obj; return obj;
} }
/** /**
* @member {module:model/OuterNumber} my_number * @member {Number} my_number
*/ */
my_number = undefined; my_number = undefined;
/** /**
* @member {module:model/OuterString} my_string * @member {String} my_string
*/ */
my_string = undefined; my_string = undefined;
/** /**
* @member {module:model/OuterBoolean} my_boolean * @member {Boolean} my_boolean
*/ */
my_boolean = undefined; my_boolean = undefined;

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1,12 +1,12 @@
/** /**
* Swagger Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. *
* https://github.com/swagger-api/swagger-codegen.git * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
* *
*/ */

View File

@ -1 +1 @@
2.3.0-SNAPSHOT 3.0.2-SNAPSHOT

View File

@ -1,12 +1,12 @@
# swagger_petstore # open_api_petstore
SwaggerPetstore - JavaScript client for swagger_petstore OpenApiPetstore - JavaScript client for open_api_petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0 - API version: 1.0.0
- Package version: 1.0.0 - Package version: 1.0.0
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
## Installation ## Installation
@ -20,7 +20,7 @@ please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.co
Then install it via: Then install it via:
```shell ```shell
npm install swagger_petstore --save npm install open_api_petstore --save
``` ```
#### git #### git
@ -68,13 +68,12 @@ module: {
Please follow the [installation](#installation) instruction and execute the following JS code: Please follow the [installation](#installation) instruction and execute the following JS code:
```javascript ```javascript
var SwaggerPetstore = require('swagger_petstore'); var OpenApiPetstore = require('open_api_petstore');
var api = new SwaggerPetstore.AnotherFakeApi()
var body = new SwaggerPetstore.Client(); // {Client} client model var api = new OpenApiPetstore.AnotherFakeApi()
var client = new OpenApiPetstore.Client(); // {Client} client model
api.testSpecialTags(body).then(function(data) { api.testSpecialTags(client).then(function(data) {
console.log('API called successfully. Returned data: ' + data); console.log('API called successfully. Returned data: ' + data);
}, function(error) { }, function(error) {
console.error(error); console.error(error);
@ -89,77 +88,75 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description Class | Method | HTTP request | Description
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
*SwaggerPetstore.AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags *OpenApiPetstore.AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
*SwaggerPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | *OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
*SwaggerPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | *OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
*SwaggerPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | *OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
*SwaggerPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | *OpenApiPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
*SwaggerPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model *OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
*SwaggerPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 *OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model
*SwaggerPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters *OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*SwaggerPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
*SwaggerPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data *OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
*SwaggerPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
*SwaggerPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
*SwaggerPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet *OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
*SwaggerPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status *OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
*SwaggerPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags *OpenApiPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
*SwaggerPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID *OpenApiPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
*SwaggerPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet *OpenApiPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
*SwaggerPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data *OpenApiPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
*SwaggerPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image *OpenApiPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
*SwaggerPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID *OpenApiPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
*SwaggerPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status *OpenApiPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
*SwaggerPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID *OpenApiPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
*SwaggerPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet *OpenApiPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
*SwaggerPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user *OpenApiPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
*SwaggerPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array *OpenApiPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
*SwaggerPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array *OpenApiPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
*SwaggerPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user *OpenApiPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
*SwaggerPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name *OpenApiPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
*SwaggerPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system *OpenApiPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
*SwaggerPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session *OpenApiPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
*SwaggerPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user *OpenApiPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
*OpenApiPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
## Documentation for Models ## Documentation for Models
- [SwaggerPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- [SwaggerPetstore.Animal](docs/Animal.md) - [OpenApiPetstore.Animal](docs/Animal.md)
- [SwaggerPetstore.AnimalFarm](docs/AnimalFarm.md) - [OpenApiPetstore.AnimalFarm](docs/AnimalFarm.md)
- [SwaggerPetstore.ApiResponse](docs/ApiResponse.md) - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md)
- [SwaggerPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [SwaggerPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [SwaggerPetstore.ArrayTest](docs/ArrayTest.md) - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md)
- [SwaggerPetstore.Capitalization](docs/Capitalization.md) - [OpenApiPetstore.Capitalization](docs/Capitalization.md)
- [SwaggerPetstore.Category](docs/Category.md) - [OpenApiPetstore.Cat](docs/Cat.md)
- [SwaggerPetstore.ClassModel](docs/ClassModel.md) - [OpenApiPetstore.Category](docs/Category.md)
- [SwaggerPetstore.Client](docs/Client.md) - [OpenApiPetstore.ClassModel](docs/ClassModel.md)
- [SwaggerPetstore.EnumArrays](docs/EnumArrays.md) - [OpenApiPetstore.Client](docs/Client.md)
- [SwaggerPetstore.EnumClass](docs/EnumClass.md) - [OpenApiPetstore.Dog](docs/Dog.md)
- [SwaggerPetstore.EnumTest](docs/EnumTest.md) - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md)
- [SwaggerPetstore.FormatTest](docs/FormatTest.md) - [OpenApiPetstore.EnumClass](docs/EnumClass.md)
- [SwaggerPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - [OpenApiPetstore.EnumTest](docs/EnumTest.md)
- [SwaggerPetstore.List](docs/List.md) - [OpenApiPetstore.FormatTest](docs/FormatTest.md)
- [SwaggerPetstore.MapTest](docs/MapTest.md) - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
- [SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - [OpenApiPetstore.List](docs/List.md)
- [SwaggerPetstore.Model200Response](docs/Model200Response.md) - [OpenApiPetstore.MapTest](docs/MapTest.md)
- [SwaggerPetstore.ModelReturn](docs/ModelReturn.md) - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- [SwaggerPetstore.Name](docs/Name.md) - [OpenApiPetstore.Model200Response](docs/Model200Response.md)
- [SwaggerPetstore.NumberOnly](docs/NumberOnly.md) - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md)
- [SwaggerPetstore.Order](docs/Order.md) - [OpenApiPetstore.Name](docs/Name.md)
- [SwaggerPetstore.OuterBoolean](docs/OuterBoolean.md) - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md)
- [SwaggerPetstore.OuterComposite](docs/OuterComposite.md) - [OpenApiPetstore.Order](docs/Order.md)
- [SwaggerPetstore.OuterEnum](docs/OuterEnum.md) - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md)
- [SwaggerPetstore.OuterNumber](docs/OuterNumber.md) - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md)
- [SwaggerPetstore.OuterString](docs/OuterString.md) - [OpenApiPetstore.Pet](docs/Pet.md)
- [SwaggerPetstore.Pet](docs/Pet.md) - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md)
- [SwaggerPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md)
- [SwaggerPetstore.SpecialModelName](docs/SpecialModelName.md) - [OpenApiPetstore.Tag](docs/Tag.md)
- [SwaggerPetstore.Tag](docs/Tag.md) - [OpenApiPetstore.User](docs/User.md)
- [SwaggerPetstore.User](docs/User.md)
- [SwaggerPetstore.Cat](docs/Cat.md)
- [SwaggerPetstore.Dog](docs/Dog.md)
## Documentation for Authorization ## Documentation for Authorization

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.AdditionalPropertiesClass # OpenApiPetstore.AdditionalPropertiesClass
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Animal # OpenApiPetstore.Animal
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.AnimalFarm # OpenApiPetstore.AnimalFarm
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.AnotherFakeApi # OpenApiPetstore.AnotherFakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2* All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testSpecialTags"></a> <a name="testSpecialTags"></a>
# **testSpecialTags** # **testSpecialTags**
> Client testSpecialTags(body) > Client testSpecialTags(client)
To test special tags To test special tags
@ -17,13 +17,11 @@ To test special tags
### Example ### Example
```javascript ```javascript
import SwaggerPetstore from 'swagger_petstore'; import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.AnotherFakeApi(); let apiInstance = new OpenApiPetstore.AnotherFakeApi();
let client = new OpenApiPetstore.Client(); // Client | client model
let body = new SwaggerPetstore.Client(); // Client | client model apiInstance.testSpecialTags(client).then((data) => {
apiInstance.testSpecialTags(body).then((data) => {
console.log('API called successfully. Returned data: ' + data); console.log('API called successfully. Returned data: ' + data);
}, (error) => { }, (error) => {
console.error(error); console.error(error);
@ -35,7 +33,7 @@ apiInstance.testSpecialTags(body).then((data) => {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**Client**](Client.md)| client model | **client** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ApiResponse # OpenApiPetstore.ApiResponse
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ArrayOfArrayOfNumberOnly # OpenApiPetstore.ArrayOfArrayOfNumberOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ArrayOfNumberOnly # OpenApiPetstore.ArrayOfNumberOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ArrayTest # OpenApiPetstore.ArrayTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Capitalization # OpenApiPetstore.Capitalization
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Cat # OpenApiPetstore.Cat
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Category # OpenApiPetstore.Category
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.ClassModel # OpenApiPetstore.ClassModel
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

View File

@ -1,4 +1,4 @@
# SwaggerPetstore.Client # OpenApiPetstore.Client
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes

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