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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,9 +1,10 @@
# SwaggerPetstore.EnumTest
# OpenApiPetstore.EnumTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enumString** | **String** | | [optional]
**enumStringRequired** | **String** | |
**enumInteger** | **Number** | | [optional]
**enumNumber** | **Number** | | [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>
## Enum: EnumIntegerEnum

View File

@@ -1,4 +1,4 @@
# SwaggerPetstore.FakeApi
# OpenApiPetstore.FakeApi
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 |
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
[**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
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
@@ -17,7 +18,7 @@ Method | HTTP request | Description
<a name="fakeOuterBooleanSerialize"></a>
# **fakeOuterBooleanSerialize**
> OuterBoolean fakeOuterBooleanSerialize(opts)
> Boolean fakeOuterBooleanSerialize(opts)
@@ -25,12 +26,11 @@ Test serialization of outer boolean types
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let opts = {
'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = {
'body': true // Boolean | Input boolean as post body
};
apiInstance.fakeOuterBooleanSerialize(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -44,11 +44,11 @@ apiInstance.fakeOuterBooleanSerialize(opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OuterBoolean**](OuterBoolean.md)| Input boolean as post body | [optional]
**body** | **Boolean**| Input boolean as post body | [optional]
### Return type
[**OuterBoolean**](OuterBoolean.md)
**Boolean**
### Authorization
@@ -57,7 +57,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: */*
<a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize**
@@ -69,12 +69,11 @@ Test serialization of object with outer number type
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let opts = {
'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = {
'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body
};
apiInstance.fakeOuterCompositeSerialize(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -88,7 +87,7 @@ apiInstance.fakeOuterCompositeSerialize(opts).then((data) => {
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
@@ -101,11 +100,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: */*
<a name="fakeOuterNumberSerialize"></a>
# **fakeOuterNumberSerialize**
> OuterNumber fakeOuterNumberSerialize(opts)
> Number fakeOuterNumberSerialize(opts)
@@ -113,12 +112,11 @@ Test serialization of outer number types
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let opts = {
'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = {
'body': 3.4 // Number | Input number as post body
};
apiInstance.fakeOuterNumberSerialize(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -132,11 +130,11 @@ apiInstance.fakeOuterNumberSerialize(opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OuterNumber**](OuterNumber.md)| Input number as post body | [optional]
**body** | **Number**| Input number as post body | [optional]
### Return type
[**OuterNumber**](OuterNumber.md)
**Number**
### Authorization
@@ -145,11 +143,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: */*
<a name="fakeOuterStringSerialize"></a>
# **fakeOuterStringSerialize**
> OuterString fakeOuterStringSerialize(opts)
> String fakeOuterStringSerialize(opts)
@@ -157,12 +155,11 @@ Test serialization of outer string types
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let opts = {
'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = {
'body': "body_example" // String | Input string as post body
};
apiInstance.fakeOuterStringSerialize(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -176,11 +173,11 @@ apiInstance.fakeOuterStringSerialize(opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OuterString**](OuterString.md)| Input string as post body | [optional]
**body** | **String**| Input string as post body | [optional]
### Return type
[**OuterString**](OuterString.md)
**String**
### Authorization
@@ -189,11 +186,52 @@ No authorization required
### HTTP request headers
- **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).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
```
### 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
<a name="testClientModel"></a>
# **testClientModel**
> Client testClientModel(body)
> Client testClientModel(client)
To test \&quot;client\&quot; model
@@ -201,13 +239,11 @@ To test \&quot;client\&quot; model
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let body = new SwaggerPetstore.Client(); // Client | client model
apiInstance.testClientModel(body).then((data) => {
let apiInstance = new OpenApiPetstore.FakeApi();
let client = new OpenApiPetstore.Client(); // Client | client model
apiInstance.testClientModel(client).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
@@ -219,7 +255,7 @@ apiInstance.testClientModel(body).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Client**](Client.md)| client model |
**client** | [**Client**](Client.md)| client model |
### Return type
@@ -244,31 +280,26 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure HTTP basic authorization: http_basic_test
let http_basic_test = defaultClient.authentications['http_basic_test'];
http_basic_test.username = 'YOUR USERNAME';
http_basic_test.password = 'YOUR PASSWORD';
let apiInstance = new SwaggerPetstore.FakeApi();
let _number = 8.14; // Number | None
let _double = 1.2; // Number | None
let apiInstance = new OpenApiPetstore.FakeApi();
let _number = 3.4; // Number | None
let _double = 3.4; // Number | None
let patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
let _byte = B; // Blob | None
let opts = {
let _byte = null; // Blob | None
let opts = {
'integer': 56, // Number | None
'int32': 56, // Number | None
'int64': 789, // Number | None
'_float': 3.4, // Number | None
'_string': "_string_example", // String | None
'binary': B, // Blob | None
'binary': "/path/to/file", // File | None
'_date': new Date("2013-10-20"), // Date | None
'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None
'password': "password_example", // String | None
@@ -295,7 +326,7 @@ Name | Type | Description | Notes
**int64** | **Number**| None | [optional]
**_float** | **Number**| None | [optional]
**_string** | **String**| None | [optional]
**binary** | **Blob**| None | [optional]
**binary** | **File**| None | [optional]
**_date** | **Date**| None | [optional]
**dateTime** | **Date**| None | [optional]
**password** | **String**| None | [optional]
@@ -311,8 +342,8 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
<a name="testEnumParameters"></a>
# **testEnumParameters**
@@ -324,19 +355,18 @@ To test enum parameters
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let opts = {
'enumFormStringArray': ["enumFormStringArray_example"], // [String] | Form parameter enum test (string array)
'enumFormString': "-efg", // String | Form parameter enum test (string)
'enumHeaderStringArray': ["enumHeaderStringArray_example"], // [String] | Header parameter enum test (string array)
'enumHeaderString': "-efg", // String | Header parameter enum test (string)
'enumQueryStringArray': ["enumQueryStringArray_example"], // [String] | Query parameter enum test (string array)
'enumQueryString': "-efg", // String | Query parameter enum test (string)
let apiInstance = new OpenApiPetstore.FakeApi();
let opts = {
'enumHeaderStringArray': ["'$'"], // [String] | Header parameter enum test (string array)
'enumHeaderString': "'-efg'", // String | Header parameter enum test (string)
'enumQueryStringArray': ["'$'"], // [String] | Query parameter enum test (string array)
'enumQueryString': "'-efg'", // String | Query parameter enum test (string)
'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).then(() => {
console.log('API called successfully.');
@@ -350,14 +380,14 @@ apiInstance.testEnumParameters(opts).then(() => {
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]
**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]
**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]
**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
@@ -369,26 +399,22 @@ No authorization required
### HTTP request headers
- **Content-Type**: */*
- **Accept**: */*
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
<a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties**
> testInlineAdditionalProperties(param)
> testInlineAdditionalProperties(requestBody)
test inline additionalProperties
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
let param = null; // Object | request body
apiInstance.testInlineAdditionalProperties(param).then(() => {
let apiInstance = new OpenApiPetstore.FakeApi();
let requestBody = {key: "inner_example"}; // {String: String} | request body
apiInstance.testInlineAdditionalProperties(requestBody).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -400,7 +426,7 @@ apiInstance.testInlineAdditionalProperties(param).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**param** | **Object**| request body |
**requestBody** | [**{String: String}**](String.md)| request body |
### Return type
@@ -421,18 +447,13 @@ No authorization required
test json serialization of form data
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let apiInstance = new SwaggerPetstore.FakeApi();
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.FakeApi();
let param = "param_example"; // String | field1
let param2 = "param2_example"; // String | field2
apiInstance.testJsonFormData(param, param2).then(() => {
console.log('API called successfully.');
}, (error) => {
@@ -458,6 +479,6 @@ No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined

View File

@@ -1,4 +1,4 @@
# SwaggerPetstore.FakeClassnameTags123Api
# OpenApiPetstore.FakeClassnameTags123Api
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -9,14 +9,16 @@ Method | HTTP request | Description
<a name="testClassname"></a>
# **testClassname**
> Client testClassname(body)
> Client testClassname(client)
To test class name in snake case
To test class name in snake case
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key_query
let api_key_query = defaultClient.authentications['api_key_query'];
@@ -24,11 +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)
//api_key_query.apiKeyPrefix = 'Token';
let apiInstance = new SwaggerPetstore.FakeClassnameTags123Api();
let body = new SwaggerPetstore.Client(); // Client | client model
apiInstance.testClassname(body).then((data) => {
let apiInstance = new OpenApiPetstore.FakeClassnameTags123Api();
let client = new OpenApiPetstore.Client(); // Client | client model
apiInstance.testClassname(client).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
@@ -40,7 +40,7 @@ apiInstance.testClassname(body).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Client**](Client.md)| client model |
**client** | [**Client**](Client.md)| client model |
### Return type

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
# SwaggerPetstore.Pet
# OpenApiPetstore.Pet
## Properties
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*
@@ -16,26 +16,22 @@ Method | HTTP request | Description
<a name="addPet"></a>
# **addPet**
> addPet(body)
> addPet(pet)
Add a new pet to the store
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi();
let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
apiInstance.addPet(body).then(() => {
let apiInstance = new OpenApiPetstore.PetApi();
let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
apiInstance.addPet(pet).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -47,7 +43,7 @@ apiInstance.addPet(body).then(() => {
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
@@ -60,7 +56,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="deletePet"></a>
# **deletePet**
@@ -68,22 +64,18 @@ null (empty response body)
Deletes a pet
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
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 opts = {
let opts = {
'apiKey': "apiKey_example" // String |
};
apiInstance.deletePet(petId, opts).then(() => {
@@ -112,7 +104,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="findPetsByStatus"></a>
# **findPetsByStatus**
@@ -124,17 +116,15 @@ Multiple status values can be provided with comma separated strings
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi();
let status = ["status_example"]; // [String] | Status values that need to be considered for filter
let apiInstance = new OpenApiPetstore.PetApi();
let status = ["'available'"]; // [String] | Status values that need to be considered for filter
apiInstance.findPetsByStatus(status).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -172,17 +162,15 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi();
let tags = ["tags_example"]; // [String] | Tags to filter by
let apiInstance = new OpenApiPetstore.PetApi();
let tags = ["inner_example"]; // [String] | Tags to filter by
apiInstance.findPetsByTags(tags).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -220,8 +208,8 @@ Returns a single pet
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
@@ -229,10 +217,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)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SwaggerPetstore.PetApi();
let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | ID of pet to return
apiInstance.getPetById(petId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -262,26 +248,22 @@ Name | Type | Description | Notes
<a name="updatePet"></a>
# **updatePet**
> updatePet(body)
> updatePet(pet)
Update an existing pet
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new SwaggerPetstore.PetApi();
let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
apiInstance.updatePet(body).then(() => {
let apiInstance = new OpenApiPetstore.PetApi();
let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
apiInstance.updatePet(pet).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -293,7 +275,7 @@ apiInstance.updatePet(body).then(() => {
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
@@ -306,7 +288,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="updatePetWithForm"></a>
# **updatePetWithForm**
@@ -314,22 +296,18 @@ null (empty response body)
Updates a pet in the store with form data
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
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 opts = {
let opts = {
'name': "name_example", // String | Updated name of the pet
'status': "status_example" // String | Updated status of the pet
};
@@ -360,7 +338,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="uploadFile"></a>
# **uploadFile**
@@ -368,24 +346,20 @@ null (empty response body)
uploads an image
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
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 opts = {
let opts = {
'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).then((data) => {
console.log('API called successfully. Returned data: ' + data);

View File

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

View File

@@ -1,4 +1,4 @@
# SwaggerPetstore.SpecialModelName
# OpenApiPetstore.SpecialModelName
## Properties
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*
@@ -20,12 +20,10 @@ For valid response try integer IDs with value &lt; 1000. Anything above 1000 or
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let apiInstance = new SwaggerPetstore.StoreApi();
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.StoreApi();
let orderId = "orderId_example"; // String | ID of the order that needs to be deleted
apiInstance.deleteOrder(orderId).then(() => {
console.log('API called successfully.');
}, (error) => {
@@ -51,11 +49,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="getInventory"></a>
# **getInventory**
> {&#39;String&#39;: &#39;Number&#39;} getInventory()
> {String: Number} getInventory()
Returns pet inventories by status
@@ -63,8 +61,8 @@ Returns a map of status codes to quantities
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let defaultClient = SwaggerPetstore.ApiClient.instance;
import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
@@ -72,7 +70,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)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SwaggerPetstore.StoreApi();
let apiInstance = new OpenApiPetstore.StoreApi();
apiInstance.getInventory().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -86,7 +84,7 @@ This endpoint does not need any parameter.
### Return type
**{&#39;String&#39;: &#39;Number&#39;}**
**{String: Number}**
### Authorization
@@ -107,12 +105,10 @@ For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other val
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let apiInstance = new SwaggerPetstore.StoreApi();
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.StoreApi();
let orderId = 789; // Number | ID of pet that needs to be fetched
apiInstance.getOrderById(orderId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -142,21 +138,17 @@ No authorization required
<a name="placeOrder"></a>
# **placeOrder**
> Order placeOrder(body)
> Order placeOrder(order)
Place an order for a pet
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.StoreApi();
let body = new SwaggerPetstore.Order(); // Order | order placed for purchasing the pet
apiInstance.placeOrder(body).then((data) => {
let apiInstance = new OpenApiPetstore.StoreApi();
let order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
apiInstance.placeOrder(order).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
@@ -168,7 +160,7 @@ apiInstance.placeOrder(body).then((data) => {
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

View File

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

View File

@@ -1,4 +1,4 @@
# SwaggerPetstore.User
# OpenApiPetstore.User
## Properties
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*
@@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createUser"></a>
# **createUser**
> createUser(body)
> createUser(user)
Create user
@@ -24,13 +24,11 @@ This can only be done by the logged in user.
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let body = new SwaggerPetstore.User(); // User | Created user object
apiInstance.createUser(body).then(() => {
let apiInstance = new OpenApiPetstore.UserApi();
let user = new OpenApiPetstore.User(); // User | Created user object
apiInstance.createUser(user).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -42,7 +40,7 @@ apiInstance.createUser(body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**User**](User.md)| Created user object |
**user** | [**User**](User.md)| Created user object |
### Return type
@@ -55,25 +53,21 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput**
> createUsersWithArrayInput(body)
> createUsersWithArrayInput(user)
Creates list of users with given input array
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let body = [new SwaggerPetstore.User()]; // [User] | List of user object
apiInstance.createUsersWithArrayInput(body).then(() => {
let apiInstance = new OpenApiPetstore.UserApi();
let user = [new OpenApiPetstore.User()]; // [User] | List of user object
apiInstance.createUsersWithArrayInput(user).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -85,7 +79,7 @@ apiInstance.createUsersWithArrayInput(body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**[User]**](User.md)| List of user object |
**user** | [**[User]**](Array.md)| List of user object |
### Return type
@@ -98,25 +92,21 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="createUsersWithListInput"></a>
# **createUsersWithListInput**
> createUsersWithListInput(body)
> createUsersWithListInput(user)
Creates list of users with given input array
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let body = [new SwaggerPetstore.User()]; // [User] | List of user object
apiInstance.createUsersWithListInput(body).then(() => {
let apiInstance = new OpenApiPetstore.UserApi();
let user = [new OpenApiPetstore.User()]; // [User] | List of user object
apiInstance.createUsersWithListInput(user).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -128,7 +118,7 @@ apiInstance.createUsersWithListInput(body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**[User]**](User.md)| List of user object |
**user** | [**[User]**](Array.md)| List of user object |
### Return type
@@ -141,7 +131,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="deleteUser"></a>
# **deleteUser**
@@ -153,12 +143,10 @@ This can only be done by the logged in user.
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | The name that needs to be deleted
apiInstance.deleteUser(username).then(() => {
console.log('API called successfully.');
}, (error) => {
@@ -184,7 +172,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="getUserByName"></a>
# **getUserByName**
@@ -192,16 +180,12 @@ No authorization required
Get user by user name
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
apiInstance.getUserByName(username).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -214,7 +198,7 @@ apiInstance.getUserByName(username).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| The name that needs to be fetched. Use user1 for testing. |
**username** | **String**| The name that needs to be fetched. Use user1 for testing. |
### Return type
@@ -231,22 +215,17 @@ No authorization required
<a name="loginUser"></a>
# **loginUser**
> &#39;String&#39; loginUser(username, password)
> String loginUser(username, password)
Logs user into the system
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | The user name for login
let password = "password_example"; // String | The password for login in clear text
apiInstance.loginUser(username, password).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -264,7 +243,7 @@ Name | Type | Description | Notes
### Return type
**&#39;String&#39;**
**String**
### Authorization
@@ -281,13 +260,11 @@ No authorization required
Logs out current logged in user session
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
let apiInstance = new OpenApiPetstore.UserApi();
apiInstance.logoutUser().then(() => {
console.log('API called successfully.');
}, (error) => {
@@ -310,11 +287,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="updateUser"></a>
# **updateUser**
> updateUser(username, body)
> updateUser(username, user)
Updated user
@@ -322,15 +299,12 @@ This can only be done by the logged in user.
### Example
```javascript
import SwaggerPetstore from 'swagger_petstore';
let apiInstance = new SwaggerPetstore.UserApi();
import OpenApiPetstore from 'open_api_petstore';
let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | name that need to be deleted
let body = new SwaggerPetstore.User(); // User | Updated user object
apiInstance.updateUser(username, body).then(() => {
let user = new OpenApiPetstore.User(); // User | Updated user object
apiInstance.updateUser(username, user).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -343,7 +317,7 @@ apiInstance.updateUser(username, body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted |
**body** | [**User**](User.md)| Updated user object |
**user** | [**User**](User.md)| Updated user object |
### Return type
@@ -356,5 +330,5 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# 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_repo_id=$2

View File

@@ -1,5 +1,5 @@
{
"name": "swagger_petstore",
"name": "open_api_petstore",
"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__",
"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: \" \\
*
* 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.
*
*/
@@ -482,7 +482,7 @@ export default class ApiClient {
* @returns {Date} The parsed date object.
*/
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: \" \\
*
* 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.
*
*/
@@ -38,15 +38,15 @@ export default class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* @param {module:model/Client} body client model
* @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
testSpecialTagsWithHttpInfo(body) {
let postBody = body;
testSpecialTagsWithHttpInfo(client) {
let postBody = client;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testSpecialTags");
// verify the required parameter 'client' is set
if (client === undefined || client === null) {
throw new Error("Missing the required parameter 'client' when calling testSpecialTags");
}
@@ -74,11 +74,11 @@ export default class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* @param {module:model/Client} body client model
* @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
testSpecialTags(body) {
return this.testSpecialTagsWithHttpInfo(body)
testSpecialTags(client) {
return this.testSpecialTagsWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});

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: \" \\
*
* 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.
*
*/
@@ -14,10 +14,8 @@
import ApiClient from "../ApiClient";
import Client from '../model/Client';
import OuterBoolean from '../model/OuterBoolean';
import OuterComposite from '../model/OuterComposite';
import OuterNumber from '../model/OuterNumber';
import OuterString from '../model/OuterString';
import User from '../model/User';
/**
* Fake service.
@@ -42,8 +40,8 @@ export default class FakeApi {
/**
* Test serialization of outer boolean types
* @param {Object} opts Optional parameters
* @param {module:model/OuterBoolean} opts.body Input boolean as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterBoolean} and HTTP response
* @param {Boolean} opts.body Input boolean as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response
*/
fakeOuterBooleanSerializeWithHttpInfo(opts) {
opts = opts || {};
@@ -61,8 +59,8 @@ export default class FakeApi {
let authNames = [];
let contentTypes = [];
let accepts = [];
let returnType = OuterBoolean;
let accepts = ['*/*'];
let returnType = Boolean;
return this.apiClient.callApi(
'/fake/outer/boolean', 'POST',
@@ -74,8 +72,8 @@ export default class FakeApi {
/**
* Test serialization of outer boolean types
* @param {Object} opts Optional parameters
* @param {module:model/OuterBoolean} opts.body Input boolean as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterBoolean}
* @param {Boolean} opts.body Input boolean as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Boolean}
*/
fakeOuterBooleanSerialize(opts) {
return this.fakeOuterBooleanSerializeWithHttpInfo(opts)
@@ -88,12 +86,12 @@ export default class FakeApi {
/**
* Test serialization of object with outer number type
* @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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response
*/
fakeOuterCompositeSerializeWithHttpInfo(opts) {
opts = opts || {};
let postBody = opts['body'];
let postBody = opts['outerComposite'];
let pathParams = {
@@ -107,7 +105,7 @@ export default class FakeApi {
let authNames = [];
let contentTypes = [];
let accepts = [];
let accepts = ['*/*'];
let returnType = OuterComposite;
return this.apiClient.callApi(
@@ -120,7 +118,7 @@ export default class FakeApi {
/**
* Test serialization of object with outer number type
* @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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterComposite}
*/
fakeOuterCompositeSerialize(opts) {
@@ -134,8 +132,8 @@ export default class FakeApi {
/**
* Test serialization of outer number types
* @param {Object} opts Optional parameters
* @param {module:model/OuterNumber} opts.body Input number as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterNumber} and HTTP response
* @param {Number} opts.body Input number as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Number} and HTTP response
*/
fakeOuterNumberSerializeWithHttpInfo(opts) {
opts = opts || {};
@@ -153,8 +151,8 @@ export default class FakeApi {
let authNames = [];
let contentTypes = [];
let accepts = [];
let returnType = OuterNumber;
let accepts = ['*/*'];
let returnType = Number;
return this.apiClient.callApi(
'/fake/outer/number', 'POST',
@@ -166,8 +164,8 @@ export default class FakeApi {
/**
* Test serialization of outer number types
* @param {Object} opts Optional parameters
* @param {module:model/OuterNumber} opts.body Input number as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterNumber}
* @param {Number} opts.body Input number as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Number}
*/
fakeOuterNumberSerialize(opts) {
return this.fakeOuterNumberSerializeWithHttpInfo(opts)
@@ -180,8 +178,8 @@ export default class FakeApi {
/**
* Test serialization of outer string types
* @param {Object} opts Optional parameters
* @param {module:model/OuterString} opts.body Input string as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterString} and HTTP response
* @param {String} opts.body Input string as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response
*/
fakeOuterStringSerializeWithHttpInfo(opts) {
opts = opts || {};
@@ -199,8 +197,8 @@ export default class FakeApi {
let authNames = [];
let contentTypes = [];
let accepts = [];
let returnType = OuterString;
let accepts = ['*/*'];
let returnType = String;
return this.apiClient.callApi(
'/fake/outer/string', 'POST',
@@ -212,8 +210,8 @@ export default class FakeApi {
/**
* Test serialization of outer string types
* @param {Object} opts Optional parameters
* @param {module:model/OuterString} opts.body Input string as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterString}
* @param {String} opts.body Input string as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String}
*/
fakeOuterStringSerialize(opts) {
return this.fakeOuterStringSerializeWithHttpInfo(opts)
@@ -223,18 +221,72 @@ export default class FakeApi {
}
/**
* @param {String} query
* @param {module:model/User} user
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
testBodyWithQueryParamsWithHttpInfo(query, user) {
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
);
}
/**
* @param {String} query
* @param {module:model/User} user
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
testBodyWithQueryParams(query, user) {
return this.testBodyWithQueryParamsWithHttpInfo(query, user)
.then(function(response_and_data) {
return response_and_data.data;
});
}
/**
* 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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
testClientModelWithHttpInfo(body) {
let postBody = body;
testClientModelWithHttpInfo(client) {
let postBody = client;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testClientModel");
// verify the required parameter 'client' is set
if (client === undefined || client === null) {
throw new Error("Missing the required parameter 'client' when calling testClientModel");
}
@@ -262,11 +314,11 @@ export default class FakeApi {
/**
* 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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
testClientModel(body) {
return this.testClientModelWithHttpInfo(body)
testClientModel(client) {
return this.testClientModelWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -286,7 +338,7 @@ export default class FakeApi {
* @param {Number} opts.int64 None
* @param {Number} opts._float None
* @param {String} opts._string None
* @param {Blob} opts.binary None
* @param {File} opts.binary None
* @param {Date} opts._date None
* @param {Date} opts.dateTime None
* @param {String} opts.password None
@@ -342,8 +394,8 @@ export default class FakeApi {
};
let authNames = ['http_basic_test'];
let contentTypes = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
let accepts = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -366,7 +418,7 @@ export default class FakeApi {
* @param {Number} opts.int64 None
* @param {Number} opts._float None
* @param {String} opts._string None
* @param {Blob} opts.binary None
* @param {File} opts.binary None
* @param {Date} opts._date None
* @param {Date} opts.dateTime None
* @param {String} opts.password None
@@ -385,14 +437,14 @@ export default class FakeApi {
* To test enum parameters
* To test enum 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 {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 {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.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;)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
testEnumParametersWithHttpInfo(opts) {
@@ -405,7 +457,8 @@ export default class FakeApi {
let queryParams = {
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'),
'enum_query_string': opts['enumQueryString'],
'enum_query_integer': opts['enumQueryInteger']
'enum_query_integer': opts['enumQueryInteger'],
'enum_query_double': opts['enumQueryDouble']
};
let headerParams = {
'enum_header_string_array': opts['enumHeaderStringArray'],
@@ -413,13 +466,12 @@ export default class FakeApi {
};
let formParams = {
'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'),
'enum_form_string': opts['enumFormString'],
'enum_query_double': opts['enumQueryDouble']
'enum_form_string': opts['enumFormString']
};
let authNames = [];
let contentTypes = ['*/*'];
let accepts = ['*/*'];
let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -433,14 +485,14 @@ export default class FakeApi {
* To test enum parameters
* To test enum 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 {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 {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.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;)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
testEnumParameters(opts) {
@@ -453,16 +505,15 @@ export default class FakeApi {
/**
* test inline additionalProperties
*
* @param {Object} param request body
* @param {Object.<String, {String: String}>} requestBody request body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
testInlineAdditionalPropertiesWithHttpInfo(param) {
let postBody = param;
testInlineAdditionalPropertiesWithHttpInfo(requestBody) {
let postBody = requestBody;
// verify the required parameter 'param' is set
if (param === undefined || param === null) {
throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
// verify the required parameter 'requestBody' is set
if (requestBody === undefined || requestBody === null) {
throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
}
@@ -489,12 +540,11 @@ export default class FakeApi {
/**
* test inline additionalProperties
*
* @param {Object} param request body
* @param {Object.<String, {String: String}>} requestBody request body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
testInlineAdditionalProperties(param) {
return this.testInlineAdditionalPropertiesWithHttpInfo(param)
testInlineAdditionalProperties(requestBody) {
return this.testInlineAdditionalPropertiesWithHttpInfo(requestBody)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -503,7 +553,6 @@ export default class FakeApi {
/**
* test json serialization of form data
*
* @param {String} param field1
* @param {String} param2 field2
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -534,7 +583,7 @@ export default class FakeApi {
};
let authNames = [];
let contentTypes = ['application/json'];
let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = [];
let returnType = null;
@@ -547,7 +596,6 @@ export default class FakeApi {
/**
* test json serialization of form data
*
* @param {String} param field1
* @param {String} param2 field2
* @return {Promise} a {@link https://www.promisejs.org/|Promise}

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: \" \\
*
* 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.
*
*/
@@ -37,15 +37,16 @@ export default class FakeClassnameTags123Api {
/**
* 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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
testClassnameWithHttpInfo(body) {
let postBody = body;
testClassnameWithHttpInfo(client) {
let postBody = client;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testClassname");
// verify the required parameter 'client' is set
if (client === undefined || client === null) {
throw new Error("Missing the required parameter 'client' when calling testClassname");
}
@@ -72,11 +73,12 @@ export default class FakeClassnameTags123Api {
/**
* 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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
testClassname(body) {
return this.testClassnameWithHttpInfo(body)
testClassname(client) {
return this.testClassnameWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});

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: \" \\
*
* 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.
*
*/
@@ -38,16 +38,15 @@ export default class PetApi {
/**
* Add a new pet to the store
*
* @param {module:model/Pet} body Pet object that needs to be added to the store
* @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
addPetWithHttpInfo(body) {
let postBody = body;
addPetWithHttpInfo(pet) {
let postBody = pet;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling addPet");
// verify the required parameter 'pet' is set
if (pet === undefined || pet === null) {
throw new Error("Missing the required parameter 'pet' when calling addPet");
}
@@ -62,7 +61,7 @@ export default class PetApi {
let authNames = ['petstore_auth'];
let contentTypes = ['application/json', 'application/xml'];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -74,12 +73,11 @@ export default class PetApi {
/**
* Add a new pet to the store
*
* @param {module:model/Pet} body Pet object that needs to be added to the store
* @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
addPet(body) {
return this.addPetWithHttpInfo(body)
addPet(pet) {
return this.addPetWithHttpInfo(pet)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -88,7 +86,6 @@ export default class PetApi {
/**
* Deletes a pet
*
* @param {Number} petId Pet id to delete
* @param {Object} opts Optional parameters
* @param {String} opts.apiKey
@@ -117,7 +114,7 @@ export default class PetApi {
let authNames = ['petstore_auth'];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -129,7 +126,6 @@ export default class PetApi {
/**
* Deletes a pet
*
* @param {Number} petId Pet id to delete
* @param {Object} opts Optional parameters
* @param {String} opts.apiKey
@@ -298,16 +294,15 @@ export default class PetApi {
/**
* Update an existing pet
*
* @param {module:model/Pet} body Pet object that needs to be added to the store
* @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
updatePetWithHttpInfo(body) {
let postBody = body;
updatePetWithHttpInfo(pet) {
let postBody = pet;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling updatePet");
// verify the required parameter 'pet' is set
if (pet === undefined || pet === null) {
throw new Error("Missing the required parameter 'pet' when calling updatePet");
}
@@ -322,7 +317,7 @@ export default class PetApi {
let authNames = ['petstore_auth'];
let contentTypes = ['application/json', 'application/xml'];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -334,12 +329,11 @@ export default class PetApi {
/**
* Update an existing pet
*
* @param {module:model/Pet} body Pet object that needs to be added to the store
* @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
updatePet(body) {
return this.updatePetWithHttpInfo(body)
updatePet(pet) {
return this.updatePetWithHttpInfo(pet)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -348,7 +342,6 @@ export default class PetApi {
/**
* Updates a pet in the store with form data
*
* @param {Number} petId ID of pet that needs to be updated
* @param {Object} opts Optional parameters
* @param {String} opts.name Updated name of the pet
@@ -379,7 +372,7 @@ export default class PetApi {
let authNames = ['petstore_auth'];
let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -391,7 +384,6 @@ export default class PetApi {
/**
* Updates a pet in the store with form data
*
* @param {Number} petId ID of pet that needs to be updated
* @param {Object} opts Optional parameters
* @param {String} opts.name Updated name of the pet
@@ -408,7 +400,6 @@ export default class PetApi {
/**
* uploads an image
*
* @param {Number} petId ID of pet to update
* @param {Object} opts Optional parameters
* @param {String} opts.additionalMetadata Additional data to pass to server
@@ -451,7 +442,6 @@ export default class PetApi {
/**
* uploads an image
*
* @param {Number} petId ID of pet to update
* @param {Object} opts Optional parameters
* @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: \" \\
*
* 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.
*
*/
@@ -62,7 +62,7 @@ export default class StoreApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -89,7 +89,7 @@ export default class StoreApi {
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.<String, {'String': 'Number'}>} and HTTP response
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.<String, {String: Number}>} and HTTP response
*/
getInventoryWithHttpInfo() {
let postBody = null;
@@ -107,7 +107,7 @@ export default class StoreApi {
let authNames = ['api_key'];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = {'String': 'Number'};
let returnType = {String: Number};
return this.apiClient.callApi(
'/store/inventory', 'GET',
@@ -119,7 +119,7 @@ export default class StoreApi {
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, {'String': 'Number'}>}
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, {String: Number}>}
*/
getInventory() {
return this.getInventoryWithHttpInfo()
@@ -182,16 +182,15 @@ export default class StoreApi {
/**
* Place an order for a pet
*
* @param {module:model/Order} body order placed for purchasing the pet
* @param {module:model/Order} order order placed for purchasing the pet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
*/
placeOrderWithHttpInfo(body) {
let postBody = body;
placeOrderWithHttpInfo(order) {
let postBody = order;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling placeOrder");
// verify the required parameter 'order' is set
if (order === undefined || order === null) {
throw new Error("Missing the required parameter 'order' when calling placeOrder");
}
@@ -218,12 +217,11 @@ export default class StoreApi {
/**
* Place an order for a pet
*
* @param {module:model/Order} body order placed for purchasing the pet
* @param {module:model/Order} order order placed for purchasing the pet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
placeOrder(body) {
return this.placeOrderWithHttpInfo(body)
placeOrder(order) {
return this.placeOrderWithHttpInfo(order)
.then(function(response_and_data) {
return response_and_data.data;
});

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: \" \\
*
* 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.
*
*/
@@ -38,15 +38,15 @@ export default class UserApi {
/**
* Create 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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
createUserWithHttpInfo(body) {
let postBody = body;
createUserWithHttpInfo(user) {
let postBody = user;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUser");
// verify the required parameter 'user' is set
if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'user' when calling createUser");
}
@@ -61,7 +61,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -74,11 +74,11 @@ export default class UserApi {
/**
* Create 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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
createUser(body) {
return this.createUserWithHttpInfo(body)
createUser(user) {
return this.createUserWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -87,16 +87,15 @@ export default class UserApi {
/**
* Creates list of users with given input array
*
* @param {Array.<module:model/User>} body List of user object
* @param {Array.<User>} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
createUsersWithArrayInputWithHttpInfo(body) {
let postBody = body;
createUsersWithArrayInputWithHttpInfo(user) {
let postBody = user;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput");
// verify the required parameter 'user' is set
if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput");
}
@@ -111,7 +110,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -123,12 +122,11 @@ export default class UserApi {
/**
* Creates list of users with given input array
*
* @param {Array.<module:model/User>} body List of user object
* @param {Array.<User>} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
createUsersWithArrayInput(body) {
return this.createUsersWithArrayInputWithHttpInfo(body)
createUsersWithArrayInput(user) {
return this.createUsersWithArrayInputWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -137,16 +135,15 @@ export default class UserApi {
/**
* Creates list of users with given input array
*
* @param {Array.<module:model/User>} body List of user object
* @param {Array.<User>} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
createUsersWithListInputWithHttpInfo(body) {
let postBody = body;
createUsersWithListInputWithHttpInfo(user) {
let postBody = user;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput");
// verify the required parameter 'user' is set
if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput");
}
@@ -161,7 +158,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -173,12 +170,11 @@ export default class UserApi {
/**
* Creates list of users with given input array
*
* @param {Array.<module:model/User>} body List of user object
* @param {Array.<User>} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
createUsersWithListInput(body) {
return this.createUsersWithListInputWithHttpInfo(body)
createUsersWithListInput(user) {
return this.createUsersWithListInputWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -212,7 +208,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -238,8 +234,7 @@ export default class UserApi {
/**
* 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.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response
*/
getUserByNameWithHttpInfo(username) {
@@ -275,8 +270,7 @@ export default class UserApi {
/**
* 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.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
getUserByName(username) {
@@ -289,10 +283,9 @@ export default class UserApi {
/**
* Logs user into the system
*
* @param {String} username The user name for login
* @param {String} password The password for login in clear text
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link 'String'} and HTTP response
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response
*/
loginUserWithHttpInfo(username, password) {
let postBody = null;
@@ -322,7 +315,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let returnType = 'String';
let returnType = String;
return this.apiClient.callApi(
'/user/login', 'GET',
@@ -333,10 +326,9 @@ export default class UserApi {
/**
* Logs user into the system
*
* @param {String} username The user name for login
* @param {String} password The password for login in clear text
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link 'String'}
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String}
*/
loginUser(username, password) {
return this.loginUserWithHttpInfo(username, password)
@@ -348,7 +340,6 @@ export default class UserApi {
/**
* Logs out current logged in user session
*
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
logoutUserWithHttpInfo() {
@@ -366,7 +357,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -378,7 +369,6 @@ export default class UserApi {
/**
* Logs out current logged in user session
*
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
logoutUser() {
@@ -393,20 +383,20 @@ export default class UserApi {
* Updated user
* This can only be done by the logged in user.
* @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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
updateUserWithHttpInfo(username, body) {
let postBody = body;
updateUserWithHttpInfo(username, user) {
let postBody = user;
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling updateUser");
}
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling updateUser");
// verify the required parameter 'user' is set
if (user === undefined || user === null) {
throw new Error("Missing the required parameter 'user' when calling updateUser");
}
@@ -422,7 +412,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -436,11 +426,11 @@ export default class UserApi {
* Updated user
* This can only be done by the logged in user.
* @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
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
updateUser(username, body) {
return this.updateUserWithHttpInfo(username, body)
updateUser(username, user) {
return this.updateUserWithHttpInfo(username, user)
.then(function(response_and_data) {
return response_and_data.data;
});

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: \" \\
*
* 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.
*
*/
@@ -21,9 +21,11 @@ import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly';
import ArrayOfNumberOnly from './model/ArrayOfNumberOnly';
import ArrayTest from './model/ArrayTest';
import Capitalization from './model/Capitalization';
import Cat from './model/Cat';
import Category from './model/Category';
import ClassModel from './model/ClassModel';
import Client from './model/Client';
import Dog from './model/Dog';
import EnumArrays from './model/EnumArrays';
import EnumClass from './model/EnumClass';
import EnumTest from './model/EnumTest';
@@ -37,18 +39,13 @@ import ModelReturn from './model/ModelReturn';
import Name from './model/Name';
import NumberOnly from './model/NumberOnly';
import Order from './model/Order';
import OuterBoolean from './model/OuterBoolean';
import OuterComposite from './model/OuterComposite';
import OuterEnum from './model/OuterEnum';
import OuterNumber from './model/OuterNumber';
import OuterString from './model/OuterString';
import Pet from './model/Pet';
import ReadOnlyFirst from './model/ReadOnlyFirst';
import SpecialModelName from './model/SpecialModelName';
import Tag from './model/Tag';
import User from './model/User';
import Cat from './model/Cat';
import Dog from './model/Dog';
import AnotherFakeApi from './api/AnotherFakeApi';
import FakeApi from './api/FakeApi';
import FakeClassnameTags123Api from './api/FakeClassnameTags123Api';
@@ -63,9 +60,9 @@ import UserApi from './api/UserApi';
* <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
* <pre>
* var SwaggerPetstore = require('index'); // See note below*.
* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new SwaggerPetstore.Yyy(); // Construct a model instance.
* var OpenApiPetstore = require('index'); // See note below*.
* var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -77,8 +74,8 @@ import UserApi from './api/UserApi';
* <p>
* A non-AMD browser application (discouraged) might do something like this:
* <pre>
* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new SwaggerPetstore.Yyy(); // Construct a model instance.
* var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -143,6 +140,12 @@ export {
*/
Capitalization,
/**
* The Cat model constructor.
* @property {module:model/Cat}
*/
Cat,
/**
* The Category model constructor.
* @property {module:model/Category}
@@ -161,6 +164,12 @@ export {
*/
Client,
/**
* The Dog model constructor.
* @property {module:model/Dog}
*/
Dog,
/**
* The EnumArrays model constructor.
* @property {module:model/EnumArrays}
@@ -239,12 +248,6 @@ export {
*/
Order,
/**
* The OuterBoolean model constructor.
* @property {module:model/OuterBoolean}
*/
OuterBoolean,
/**
* The OuterComposite model constructor.
* @property {module:model/OuterComposite}
@@ -257,18 +260,6 @@ export {
*/
OuterEnum,
/**
* The OuterNumber model constructor.
* @property {module:model/OuterNumber}
*/
OuterNumber,
/**
* The OuterString model constructor.
* @property {module:model/OuterString}
*/
OuterString,
/**
* The Pet model constructor.
* @property {module:model/Pet}
@@ -299,18 +290,6 @@ export {
*/
User,
/**
* The Cat model constructor.
* @property {module:model/Cat}
*/
Cat,
/**
* The Dog model constructor.
* @property {module:model/Dog}
*/
Dog,
/**
* The AnotherFakeApi service constructor.
* @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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/
@@ -30,14 +30,15 @@ export default class Cat {
* @alias module:model/Cat
* @class
* @extends module:model/Animal
* @param className {String}
* @implements module:model/Animal
* @param className {}
*/
constructor(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);
if (data.hasOwnProperty('declawed')) {
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
@@ -73,6 +74,17 @@ export default class Cat {
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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/
@@ -30,14 +30,15 @@ export default class Dog {
* @alias module:model/Dog
* @class
* @extends module:model/Animal
* @param className {String}
* @implements module:model/Animal
* @param className {}
*/
constructor(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);
if (data.hasOwnProperty('breed')) {
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
@@ -73,6 +74,17 @@ export default class Dog {
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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/
@@ -29,15 +29,16 @@ export default class EnumTest {
* Constructs a new <code>EnumTest</code>.
* @alias module:model/EnumTest
* @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')) {
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')) {
obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number');
}
@@ -78,6 +82,10 @@ export default class EnumTest {
*/
enum_string = undefined;
/**
* @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
*/
enum_string_required = undefined;
/**
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
*/
enum_integer = undefined;
@@ -121,6 +129,32 @@ export default class EnumTest {
"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.
* @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: \" \\
*
* 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.
*
*/
@@ -85,7 +85,7 @@ export default class FormatTest {
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
}
if (data.hasOwnProperty('binary')) {
obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob');
obj['binary'] = ApiClient.convertToType(data['binary'], File);
}
if (data.hasOwnProperty('date')) {
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
@@ -136,7 +136,7 @@ export default class FormatTest {
*/
byte = undefined;
/**
* @member {Blob} binary
* @member {File} binary
*/
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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/
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')) {
obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
obj['my_number'] = 'Number'.constructFromObject(data['my_number']);
}
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')) {
obj['my_boolean'] = OuterBoolean.constructFromObject(data['my_boolean']);
obj['my_boolean'] = 'Boolean'.constructFromObject(data['my_boolean']);
}
}
return obj;
}
/**
* @member {module:model/OuterNumber} my_number
* @member {Number} my_number
*/
my_number = undefined;
/**
* @member {module:model/OuterString} my_string
* @member {String} my_string
*/
my_string = undefined;
/**
* @member {module:model/OuterBoolean} my_boolean
* @member {Boolean} my_boolean
*/
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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/

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: \" \\
*
* 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.
*
*/