forked from loafle/openapi-generator-original
[C#] Switch the spec to OAS v3 from v2 (#7176)
* switch to 3.0 spec in c# clients * remove samples/openapi3/client/petstore/csharp * remove samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient * remove samples/openapi3/client/petstore/csharp-netcore/OpenAPIClientCore/ * update samples
This commit is contained in:
@@ -1,27 +1,19 @@
|
||||
.gitignore
|
||||
Org.OpenAPITools.sln
|
||||
README.md
|
||||
docs/AdditionalPropertiesAnyType.md
|
||||
docs/AdditionalPropertiesArray.md
|
||||
docs/AdditionalPropertiesBoolean.md
|
||||
docs/AdditionalPropertiesClass.md
|
||||
docs/AdditionalPropertiesInteger.md
|
||||
docs/AdditionalPropertiesNumber.md
|
||||
docs/AdditionalPropertiesObject.md
|
||||
docs/AdditionalPropertiesString.md
|
||||
docs/Animal.md
|
||||
docs/AnotherFakeApi.md
|
||||
docs/ApiResponse.md
|
||||
docs/ArrayOfArrayOfNumberOnly.md
|
||||
docs/ArrayOfNumberOnly.md
|
||||
docs/ArrayTest.md
|
||||
docs/BigCat.md
|
||||
docs/BigCatAllOf.md
|
||||
docs/Capitalization.md
|
||||
docs/Cat.md
|
||||
docs/CatAllOf.md
|
||||
docs/Category.md
|
||||
docs/ClassModel.md
|
||||
docs/DefaultApi.md
|
||||
docs/Dog.md
|
||||
docs/DogAllOf.md
|
||||
docs/EnumArrays.md
|
||||
@@ -31,18 +23,31 @@ docs/FakeApi.md
|
||||
docs/FakeClassnameTags123Api.md
|
||||
docs/File.md
|
||||
docs/FileSchemaTestClass.md
|
||||
docs/Foo.md
|
||||
docs/FormatTest.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/List.md
|
||||
docs/MapTest.md
|
||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||
docs/Model200Response.md
|
||||
docs/ModelClient.md
|
||||
docs/Name.md
|
||||
docs/NullableClass.md
|
||||
docs/NumberOnly.md
|
||||
docs/Order.md
|
||||
docs/OuterComposite.md
|
||||
docs/OuterEnum.md
|
||||
docs/OuterEnumDefaultValue.md
|
||||
docs/OuterEnumInteger.md
|
||||
docs/OuterEnumIntegerDefaultValue.md
|
||||
docs/Pet.md
|
||||
docs/PetApi.md
|
||||
docs/ReadOnlyFirst.md
|
||||
@@ -50,13 +55,11 @@ docs/Return.md
|
||||
docs/SpecialModelName.md
|
||||
docs/StoreApi.md
|
||||
docs/Tag.md
|
||||
docs/TypeHolderDefault.md
|
||||
docs/TypeHolderExample.md
|
||||
docs/User.md
|
||||
docs/UserApi.md
|
||||
docs/XmlItem.md
|
||||
git_push.sh
|
||||
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
||||
src/Org.OpenAPITools/Api/DefaultApi.cs
|
||||
src/Org.OpenAPITools/Api/FakeApi.cs
|
||||
src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
|
||||
src/Org.OpenAPITools/Api/PetApi.cs
|
||||
@@ -77,21 +80,12 @@ src/Org.OpenAPITools/Client/ISynchronousClient.cs
|
||||
src/Org.OpenAPITools/Client/Multimap.cs
|
||||
src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
|
||||
src/Org.OpenAPITools/Client/RequestOptions.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesAnyType.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesArray.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesBoolean.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesInteger.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesNumber.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesObject.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesString.cs
|
||||
src/Org.OpenAPITools/Model/Animal.cs
|
||||
src/Org.OpenAPITools/Model/ApiResponse.cs
|
||||
src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
|
||||
src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
|
||||
src/Org.OpenAPITools/Model/ArrayTest.cs
|
||||
src/Org.OpenAPITools/Model/BigCat.cs
|
||||
src/Org.OpenAPITools/Model/BigCatAllOf.cs
|
||||
src/Org.OpenAPITools/Model/Capitalization.cs
|
||||
src/Org.OpenAPITools/Model/Cat.cs
|
||||
src/Org.OpenAPITools/Model/CatAllOf.cs
|
||||
@@ -104,25 +98,35 @@ src/Org.OpenAPITools/Model/EnumClass.cs
|
||||
src/Org.OpenAPITools/Model/EnumTest.cs
|
||||
src/Org.OpenAPITools/Model/File.cs
|
||||
src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
|
||||
src/Org.OpenAPITools/Model/Foo.cs
|
||||
src/Org.OpenAPITools/Model/FormatTest.cs
|
||||
src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject1.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject2.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject3.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject4.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject5.cs
|
||||
src/Org.OpenAPITools/Model/InlineResponseDefault.cs
|
||||
src/Org.OpenAPITools/Model/List.cs
|
||||
src/Org.OpenAPITools/Model/MapTest.cs
|
||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||
src/Org.OpenAPITools/Model/Model200Response.cs
|
||||
src/Org.OpenAPITools/Model/ModelClient.cs
|
||||
src/Org.OpenAPITools/Model/Name.cs
|
||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||
src/Org.OpenAPITools/Model/Order.cs
|
||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||
src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs
|
||||
src/Org.OpenAPITools/Model/OuterEnumInteger.cs
|
||||
src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs
|
||||
src/Org.OpenAPITools/Model/Pet.cs
|
||||
src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
|
||||
src/Org.OpenAPITools/Model/Return.cs
|
||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||
src/Org.OpenAPITools/Model/Tag.cs
|
||||
src/Org.OpenAPITools/Model/TypeHolderDefault.cs
|
||||
src/Org.OpenAPITools/Model/TypeHolderExample.cs
|
||||
src/Org.OpenAPITools/Model/User.cs
|
||||
src/Org.OpenAPITools/Model/XmlItem.cs
|
||||
src/Org.OpenAPITools/Org.OpenAPITools.csproj
|
||||
|
||||
@@ -64,12 +64,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new AnotherFakeApi(config);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -92,7 +92,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*AnotherFakeApi* | [**Call123TestSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||
*FakeApi* | [**CreateXmlItem**](docs/FakeApi.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
|
||||
*DefaultApi* | [**FooGet**](docs/DefaultApi.md#fooget) | **GET** /foo |
|
||||
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
*FakeApi* | [**FakeHttpSignatureTest**](docs/FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
@@ -100,7 +102,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**TestBodyWithFileSchema**](docs/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
*FakeApi* | [**TestBodyWithQueryParams**](docs/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
*FakeApi* | [**TestClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*FakeApi* | [**TestEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||
*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
@@ -133,21 +135,12 @@ Class | Method | HTTP request | Description
|
||||
<a name="documentation-for-models"></a>
|
||||
## Documentation for Models
|
||||
|
||||
- [Model.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
||||
- [Model.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
||||
- [Model.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
||||
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [Model.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
|
||||
- [Model.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
|
||||
- [Model.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
|
||||
- [Model.AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
|
||||
- [Model.Animal](docs/Animal.md)
|
||||
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
- [Model.ArrayTest](docs/ArrayTest.md)
|
||||
- [Model.BigCat](docs/BigCat.md)
|
||||
- [Model.BigCatAllOf](docs/BigCatAllOf.md)
|
||||
- [Model.Capitalization](docs/Capitalization.md)
|
||||
- [Model.Cat](docs/Cat.md)
|
||||
- [Model.CatAllOf](docs/CatAllOf.md)
|
||||
@@ -160,27 +153,37 @@ Class | Method | HTTP request | Description
|
||||
- [Model.EnumTest](docs/EnumTest.md)
|
||||
- [Model.File](docs/File.md)
|
||||
- [Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||
- [Model.Foo](docs/Foo.md)
|
||||
- [Model.FormatTest](docs/FormatTest.md)
|
||||
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [Model.InlineObject](docs/InlineObject.md)
|
||||
- [Model.InlineObject1](docs/InlineObject1.md)
|
||||
- [Model.InlineObject2](docs/InlineObject2.md)
|
||||
- [Model.InlineObject3](docs/InlineObject3.md)
|
||||
- [Model.InlineObject4](docs/InlineObject4.md)
|
||||
- [Model.InlineObject5](docs/InlineObject5.md)
|
||||
- [Model.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Model.List](docs/List.md)
|
||||
- [Model.MapTest](docs/MapTest.md)
|
||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model.Model200Response](docs/Model200Response.md)
|
||||
- [Model.ModelClient](docs/ModelClient.md)
|
||||
- [Model.Name](docs/Name.md)
|
||||
- [Model.NullableClass](docs/NullableClass.md)
|
||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||
- [Model.Order](docs/Order.md)
|
||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||
- [Model.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
|
||||
- [Model.OuterEnumInteger](docs/OuterEnumInteger.md)
|
||||
- [Model.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
|
||||
- [Model.Pet](docs/Pet.md)
|
||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [Model.Return](docs/Return.md)
|
||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||
- [Model.Tag](docs/Tag.md)
|
||||
- [Model.TypeHolderDefault](docs/TypeHolderDefault.md)
|
||||
- [Model.TypeHolderExample](docs/TypeHolderExample.md)
|
||||
- [Model.User](docs/User.md)
|
||||
- [Model.XmlItem](docs/XmlItem.md)
|
||||
|
||||
|
||||
<a name="documentation-for-authorization"></a>
|
||||
@@ -200,11 +203,20 @@ Class | Method | HTTP request | Description
|
||||
- **API key parameter name**: api_key_query
|
||||
- **Location**: URL query string
|
||||
|
||||
<a name="bearer_test"></a>
|
||||
### bearer_test
|
||||
|
||||
- **Type**: Bearer Authentication
|
||||
|
||||
<a name="http_basic_test"></a>
|
||||
### http_basic_test
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
|
||||
<a name="http_signature_test"></a>
|
||||
### http_signature_test
|
||||
|
||||
|
||||
<a name="petstore_auth"></a>
|
||||
### petstore_auth
|
||||
|
||||
|
||||
@@ -3,17 +3,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MapString** | **Dictionary<string, string>** | | [optional]
|
||||
**MapNumber** | **Dictionary<string, decimal>** | | [optional]
|
||||
**MapInteger** | **Dictionary<string, int>** | | [optional]
|
||||
**MapBoolean** | **Dictionary<string, bool>** | | [optional]
|
||||
**MapArrayInteger** | **Dictionary<string, List<int>>** | | [optional]
|
||||
**MapArrayAnytype** | **Dictionary<string, List<Object>>** | | [optional]
|
||||
**MapMapString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
**MapMapAnytype** | **Dictionary<string, Dictionary<string, Object>>** | | [optional]
|
||||
**Anytype1** | **Object** | | [optional]
|
||||
**Anytype2** | **Object** | | [optional]
|
||||
**Anytype3** | **Object** | | [optional]
|
||||
**MapProperty** | **Dictionary<string, string>** | | [optional]
|
||||
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testspecialtags"></a>
|
||||
# **Call123TestSpecialTags**
|
||||
> ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
|
||||
To test special tags
|
||||
|
||||
@@ -32,12 +32,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new AnotherFakeApi(config);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -55,7 +55,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
# Org.OpenAPITools.Api.DefaultApi
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**FooGet**](DefaultApi.md#fooget) | **GET** /foo |
|
||||
|
||||
|
||||
<a name="fooget"></a>
|
||||
# **FooGet**
|
||||
> InlineResponseDefault FooGet ()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class FooGetExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new DefaultApi(config);
|
||||
|
||||
try
|
||||
{
|
||||
InlineResponseDefault result = apiInstance.FooGet();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling DefaultApi.FooGet: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponseDefault**](InlineResponseDefault.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **0** | response | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
@@ -8,6 +8,9 @@ Name | Type | Description | Notes
|
||||
**EnumInteger** | **int** | | [optional]
|
||||
**EnumNumber** | **double** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
**OuterEnumInteger** | **OuterEnumInteger** | | [optional]
|
||||
**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
|
||||
**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**CreateXmlItem**](FakeApi.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
|
||||
[**FakeHealthGet**](FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
[**FakeHttpSignatureTest**](FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
[**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
@@ -12,7 +13,7 @@ Method | HTTP request | Description
|
||||
[**TestBodyWithFileSchema**](FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
[**TestBodyWithQueryParams**](FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
[**TestClientModel**](FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
[**TestEnumParameters**](FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||
[**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
[**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
@@ -20,13 +21,11 @@ Method | HTTP request | Description
|
||||
[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
|
||||
|
||||
<a name="createxmlitem"></a>
|
||||
# **CreateXmlItem**
|
||||
> void CreateXmlItem (XmlItem xmlItem)
|
||||
<a name="fakehealthget"></a>
|
||||
# **FakeHealthGet**
|
||||
> HealthCheckResult FakeHealthGet ()
|
||||
|
||||
creates an XmlItem
|
||||
|
||||
this route creates an XmlItem
|
||||
Health check endpoint
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
@@ -38,23 +37,90 @@ using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class CreateXmlItemExample
|
||||
public class FakeHealthGetExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var xmlItem = new XmlItem(); // XmlItem | XmlItem Body
|
||||
|
||||
try
|
||||
{
|
||||
// creates an XmlItem
|
||||
apiInstance.CreateXmlItem(xmlItem);
|
||||
// Health check endpoint
|
||||
HealthCheckResult result = apiInstance.FakeHealthGet();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.CreateXmlItem: " + e.Message );
|
||||
Debug.Print("Exception when calling FakeApi.FakeHealthGet: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**HealthCheckResult**](HealthCheckResult.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | The instance started successfully | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
<a name="fakehttpsignaturetest"></a>
|
||||
# **FakeHttpSignatureTest**
|
||||
> void FakeHttpSignatureTest (Pet pet, string query1 = null, string header1 = null)
|
||||
|
||||
test http signature authentication
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class FakeHttpSignatureTestExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
|
||||
var apiInstance = new FakeApi(config);
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var query1 = query1_example; // string | query parameter (optional)
|
||||
var header1 = header1_example; // string | header parameter (optional)
|
||||
|
||||
try
|
||||
{
|
||||
// test http signature authentication
|
||||
apiInstance.FakeHttpSignatureTest(pet, query1, header1);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.FakeHttpSignatureTest: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
@@ -67,7 +133,9 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body |
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**query1** | **string**| query parameter | [optional]
|
||||
**header1** | **string**| header parameter | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -75,17 +143,17 @@ void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[http_signature_test](../README.md#http_signature_test)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
|
||||
- **Content-Type**: application/json, application/xml
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **200** | The instance started successfully | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
@@ -148,7 +216,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
@@ -160,7 +228,7 @@ No authorization required
|
||||
|
||||
<a name="fakeoutercompositeserialize"></a>
|
||||
# **FakeOuterCompositeSerialize**
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
|
||||
|
||||
|
||||
@@ -183,11 +251,11 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -205,7 +273,7 @@ namespace Example
|
||||
|
||||
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
|
||||
|
||||
@@ -217,7 +285,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
@@ -286,7 +354,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
@@ -355,7 +423,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
@@ -367,7 +435,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithfileschema"></a>
|
||||
# **TestBodyWithFileSchema**
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
|
||||
|
||||
|
||||
@@ -390,11 +458,11 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithFileSchema(body);
|
||||
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -411,7 +479,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -435,7 +503,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithqueryparams"></a>
|
||||
# **TestBodyWithQueryParams**
|
||||
> void TestBodyWithQueryParams (string query, User body)
|
||||
> void TestBodyWithQueryParams (string query, User user)
|
||||
|
||||
|
||||
|
||||
@@ -457,11 +525,11 @@ namespace Example
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var query = query_example; // string |
|
||||
var body = new User(); // User |
|
||||
var user = new User(); // User |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParams(query, body);
|
||||
apiInstance.TestBodyWithQueryParams(query, user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -479,7 +547,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **string**| |
|
||||
**body** | [**User**](User.md)| |
|
||||
**user** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -503,7 +571,7 @@ No authorization required
|
||||
|
||||
<a name="testclientmodel"></a>
|
||||
# **TestClientModel**
|
||||
> ModelClient TestClientModel (ModelClient body)
|
||||
> ModelClient TestClientModel (ModelClient modelClient)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@@ -526,12 +594,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test \"client\" model
|
||||
ModelClient result = apiInstance.TestClientModel(body);
|
||||
ModelClient result = apiInstance.TestClientModel(modelClient);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -549,7 +617,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -575,9 +643,9 @@ No authorization required
|
||||
# **TestEndpointParameters**
|
||||
> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
@@ -617,7 +685,7 @@ namespace Example
|
||||
|
||||
try
|
||||
{
|
||||
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -779,6 +847,9 @@ namespace Example
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure Bearer token for authorization: bearer_test
|
||||
config.AccessToken = "YOUR_BEARER_TOKEN";
|
||||
|
||||
var apiInstance = new FakeApi(config);
|
||||
var requiredStringGroup = 56; // int | Required String in group parameters
|
||||
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
||||
@@ -820,7 +891,7 @@ void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[bearer_test](../README.md#bearer_test)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -836,7 +907,7 @@ No authorization required
|
||||
|
||||
<a name="testinlineadditionalproperties"></a>
|
||||
# **TestInlineAdditionalProperties**
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@@ -857,12 +928,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
|
||||
try
|
||||
{
|
||||
// test inline additionalProperties
|
||||
apiInstance.TestInlineAdditionalProperties(param);
|
||||
apiInstance.TestInlineAdditionalProperties(requestBody);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -879,7 +950,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**param** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
**requestBody** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testclassname"></a>
|
||||
# **TestClassname**
|
||||
> ModelClient TestClassname (ModelClient body)
|
||||
> ModelClient TestClassname (ModelClient modelClient)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@@ -37,12 +37,12 @@ namespace Example
|
||||
// config.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||
|
||||
var apiInstance = new FakeClassnameTags123Api(config);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test class name in snake case
|
||||
ModelClient result = apiInstance.TestClassname(body);
|
||||
ModelClient result = apiInstance.TestClassname(modelClient);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -60,7 +60,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.Foo
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Bar** | **string** | | [optional] [default to "bar"]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -16,7 +16,8 @@ Name | Type | Description | Notes
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**Password** | **string** | |
|
||||
**BigDecimal** | **decimal** | | [optional]
|
||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
|
||||
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.HealthCheckResult
|
||||
Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**NullableMessage** | **string** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | **string** | Updated name of the pet | [optional]
|
||||
**Status** | **string** | Updated status of the pet | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject1
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
|
||||
**File** | **System.IO.Stream** | file to upload | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject2
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**EnumFormStringArray** | **List<string>** | Form parameter enum test (string array) | [optional]
|
||||
**EnumFormString** | **string** | Form parameter enum test (string) | [optional] [default to EnumFormStringEnum.Efg]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# Org.OpenAPITools.Model.InlineObject3
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | None | [optional]
|
||||
**Int32** | **int** | None | [optional]
|
||||
**Int64** | **long** | None | [optional]
|
||||
**Number** | **decimal** | None |
|
||||
**Float** | **float** | None | [optional]
|
||||
**Double** | **double** | None |
|
||||
**String** | **string** | None | [optional]
|
||||
**PatternWithoutDelimiter** | **string** | None |
|
||||
**Byte** | **byte[]** | None |
|
||||
**Binary** | **System.IO.Stream** | None | [optional]
|
||||
**Date** | **DateTime** | None | [optional]
|
||||
**DateTime** | **DateTime** | None | [optional]
|
||||
**Password** | **string** | None | [optional]
|
||||
**Callback** | **string** | None | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject4
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Param** | **string** | field1 |
|
||||
**Param2** | **string** | field2 |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject5
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
|
||||
**RequiredFile** | **System.IO.Stream** | file to upload |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.InlineResponseDefault
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**String** | [**Foo**](Foo.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# Org.OpenAPITools.Model.NullableClass
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**IntegerProp** | **int?** | | [optional]
|
||||
**NumberProp** | **decimal?** | | [optional]
|
||||
**BooleanProp** | **bool?** | | [optional]
|
||||
**StringProp** | **string** | | [optional]
|
||||
**DateProp** | **DateTime?** | | [optional]
|
||||
**DatetimeProp** | **DateTime?** | | [optional]
|
||||
**ArrayNullableProp** | **List<Object>** | | [optional]
|
||||
**ArrayAndItemsNullableProp** | **List<Object>** | | [optional]
|
||||
**ArrayItemsNullable** | **List<Object>** | | [optional]
|
||||
**ObjectNullableProp** | **Dictionary<string, Object>** | | [optional]
|
||||
**ObjectAndItemsNullableProp** | **Dictionary<string, Object>** | | [optional]
|
||||
**ObjectItemsNullable** | **Dictionary<string, Object>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Org.OpenAPITools.Model.OuterEnumDefaultValue
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Org.OpenAPITools.Model.OuterEnumInteger
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Org.OpenAPITools.Model.OuterEnumIntegerDefaultValue
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addpet"></a>
|
||||
# **AddPet**
|
||||
> void AddPet (Pet body)
|
||||
> void AddPet (Pet pet)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@@ -41,12 +41,12 @@ namespace Example
|
||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(config);
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(body);
|
||||
apiInstance.AddPet(pet);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ namespace Example
|
||||
|
||||
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
|
||||
|
||||
@@ -81,7 +81,6 @@ void (empty response body)
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **405** | Invalid input | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
@@ -154,7 +153,6 @@ void (empty response body)
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid pet value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
@@ -386,7 +384,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatepet"></a>
|
||||
# **UpdatePet**
|
||||
> void UpdatePet (Pet body)
|
||||
> void UpdatePet (Pet pet)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@@ -410,12 +408,12 @@ namespace Example
|
||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(config);
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Update an existing pet
|
||||
apiInstance.UpdatePet(body);
|
||||
apiInstance.UpdatePet(pet);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -432,7 +430,7 @@ namespace Example
|
||||
|
||||
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
|
||||
|
||||
@@ -450,7 +448,6 @@ void (empty response body)
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid ID supplied | - |
|
||||
| **404** | Pet not found | - |
|
||||
| **405** | Validation exception | - |
|
||||
|
||||
@@ -225,7 +225,7 @@ No authorization required
|
||||
|
||||
<a name="placeorder"></a>
|
||||
# **PlaceOrder**
|
||||
> Order PlaceOrder (Order body)
|
||||
> Order PlaceOrder (Order order)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@@ -246,12 +246,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new StoreApi(config);
|
||||
var body = new Order(); // Order | order placed for purchasing the pet
|
||||
var order = new Order(); // Order | order placed for purchasing the pet
|
||||
|
||||
try
|
||||
{
|
||||
// Place an order for a pet
|
||||
Order result = apiInstance.PlaceOrder(body);
|
||||
Order result = apiInstance.PlaceOrder(order);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -269,7 +269,7 @@ namespace Example
|
||||
|
||||
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
|
||||
|
||||
@@ -281,7 +281,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
### HTTP response details
|
||||
|
||||
@@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="createuser"></a>
|
||||
# **CreateUser**
|
||||
> void CreateUser (User body)
|
||||
> void CreateUser (User user)
|
||||
|
||||
Create user
|
||||
|
||||
@@ -39,12 +39,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var body = new User(); // User | Created user object
|
||||
var user = new User(); // User | Created user object
|
||||
|
||||
try
|
||||
{
|
||||
// Create user
|
||||
apiInstance.CreateUser(body);
|
||||
apiInstance.CreateUser(user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -73,7 +73,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
@@ -85,7 +85,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswitharrayinput"></a>
|
||||
# **CreateUsersWithArrayInput**
|
||||
> void CreateUsersWithArrayInput (List<User> body)
|
||||
> void CreateUsersWithArrayInput (List<User> user)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@@ -106,12 +106,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithArrayInput(body);
|
||||
apiInstance.CreateUsersWithArrayInput(user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -128,7 +128,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
**user** | [**List<User>**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -140,7 +140,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
@@ -152,7 +152,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswithlistinput"></a>
|
||||
# **CreateUsersWithListInput**
|
||||
> void CreateUsersWithListInput (List<User> body)
|
||||
> void CreateUsersWithListInput (List<User> user)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@@ -173,12 +173,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithListInput(body);
|
||||
apiInstance.CreateUsersWithListInput(user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -195,7 +195,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
**user** | [**List<User>**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -207,7 +207,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
@@ -493,7 +493,7 @@ No authorization required
|
||||
|
||||
<a name="updateuser"></a>
|
||||
# **UpdateUser**
|
||||
> void UpdateUser (string username, User body)
|
||||
> void UpdateUser (string username, User user)
|
||||
|
||||
Updated user
|
||||
|
||||
@@ -517,12 +517,12 @@ namespace Example
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var username = username_example; // string | name that need to be deleted
|
||||
var body = new User(); // User | Updated user object
|
||||
var user = new User(); // User | Updated user object
|
||||
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUser(username, body);
|
||||
apiInstance.UpdateUser(username, user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -540,7 +540,7 @@ namespace Example
|
||||
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
|
||||
|
||||
@@ -552,7 +552,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using RestSharp;
|
||||
using Xunit;
|
||||
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing DefaultApi
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the API endpoint.
|
||||
/// </remarks>
|
||||
public class DefaultApiTests : IDisposable
|
||||
{
|
||||
private DefaultApi instance;
|
||||
|
||||
public DefaultApiTests()
|
||||
{
|
||||
instance = new DefaultApi();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of DefaultApi
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test 'IsInstanceOfType' DefaultApi
|
||||
//Assert.IsType(typeof(DefaultApi), instance, "instance is a DefaultApi");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test FooGet
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FooGetTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//var response = instance.FooGet();
|
||||
//Assert.IsType<InlineResponseDefault> (response, "response is InlineResponseDefault");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Foo
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class FooTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Foo
|
||||
//private Foo instance;
|
||||
|
||||
public FooTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Foo
|
||||
//instance = new Foo();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Foo
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FooInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Foo
|
||||
//Assert.IsInstanceOfType<Foo> (instance, "variable 'instance' is a Foo");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Bar'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BarTest()
|
||||
{
|
||||
// TODO unit test for the property 'Bar'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing HealthCheckResult
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class HealthCheckResultTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for HealthCheckResult
|
||||
//private HealthCheckResult instance;
|
||||
|
||||
public HealthCheckResultTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of HealthCheckResult
|
||||
//instance = new HealthCheckResult();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of HealthCheckResult
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void HealthCheckResultInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" HealthCheckResult
|
||||
//Assert.IsInstanceOfType<HealthCheckResult> (instance, "variable 'instance' is a HealthCheckResult");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'NullableMessage'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NullableMessageTest()
|
||||
{
|
||||
// TODO unit test for the property 'NullableMessage'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject1
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject1Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject1
|
||||
//private InlineObject1 instance;
|
||||
|
||||
public InlineObject1Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject1
|
||||
//instance = new InlineObject1();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject1
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject1InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject1
|
||||
//Assert.IsInstanceOfType<InlineObject1> (instance, "variable 'instance' is a InlineObject1");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'AdditionalMetadata'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AdditionalMetadataTest()
|
||||
{
|
||||
// TODO unit test for the property 'AdditionalMetadata'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'File'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FileTest()
|
||||
{
|
||||
// TODO unit test for the property 'File'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject2
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject2Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject2
|
||||
//private InlineObject2 instance;
|
||||
|
||||
public InlineObject2Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject2
|
||||
//instance = new InlineObject2();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject2
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject2InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject2
|
||||
//Assert.IsInstanceOfType<InlineObject2> (instance, "variable 'instance' is a InlineObject2");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'EnumFormStringArray'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void EnumFormStringArrayTest()
|
||||
{
|
||||
// TODO unit test for the property 'EnumFormStringArray'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'EnumFormString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void EnumFormStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'EnumFormString'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject3
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject3Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject3
|
||||
//private InlineObject3 instance;
|
||||
|
||||
public InlineObject3Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject3
|
||||
//instance = new InlineObject3();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject3
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject3InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject3
|
||||
//Assert.IsInstanceOfType<InlineObject3> (instance, "variable 'instance' is a InlineObject3");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Integer'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IntegerTest()
|
||||
{
|
||||
// TODO unit test for the property 'Integer'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int32'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Int32Test()
|
||||
{
|
||||
// TODO unit test for the property 'Int32'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int64'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Int64Test()
|
||||
{
|
||||
// TODO unit test for the property 'Int64'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Number'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NumberTest()
|
||||
{
|
||||
// TODO unit test for the property 'Number'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Float'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FloatTest()
|
||||
{
|
||||
// TODO unit test for the property 'Float'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Double'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DoubleTest()
|
||||
{
|
||||
// TODO unit test for the property 'Double'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'String'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringTest()
|
||||
{
|
||||
// TODO unit test for the property 'String'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'PatternWithoutDelimiter'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PatternWithoutDelimiterTest()
|
||||
{
|
||||
// TODO unit test for the property 'PatternWithoutDelimiter'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Byte'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ByteTest()
|
||||
{
|
||||
// TODO unit test for the property 'Byte'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Binary'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BinaryTest()
|
||||
{
|
||||
// TODO unit test for the property 'Binary'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Date'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DateTest()
|
||||
{
|
||||
// TODO unit test for the property 'Date'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DateTime'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DateTimeTest()
|
||||
{
|
||||
// TODO unit test for the property 'DateTime'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Password'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PasswordTest()
|
||||
{
|
||||
// TODO unit test for the property 'Password'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Callback'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CallbackTest()
|
||||
{
|
||||
// TODO unit test for the property 'Callback'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject4
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject4Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject4
|
||||
//private InlineObject4 instance;
|
||||
|
||||
public InlineObject4Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject4
|
||||
//instance = new InlineObject4();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject4
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject4InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject4
|
||||
//Assert.IsInstanceOfType<InlineObject4> (instance, "variable 'instance' is a InlineObject4");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Param'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ParamTest()
|
||||
{
|
||||
// TODO unit test for the property 'Param'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Param2'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Param2Test()
|
||||
{
|
||||
// TODO unit test for the property 'Param2'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject5
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject5Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject5
|
||||
//private InlineObject5 instance;
|
||||
|
||||
public InlineObject5Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject5
|
||||
//instance = new InlineObject5();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject5
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject5InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject5
|
||||
//Assert.IsInstanceOfType<InlineObject5> (instance, "variable 'instance' is a InlineObject5");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'AdditionalMetadata'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AdditionalMetadataTest()
|
||||
{
|
||||
// TODO unit test for the property 'AdditionalMetadata'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'RequiredFile'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void RequiredFileTest()
|
||||
{
|
||||
// TODO unit test for the property 'RequiredFile'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObjectTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject
|
||||
//private InlineObject instance;
|
||||
|
||||
public InlineObjectTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject
|
||||
//instance = new InlineObject();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObjectInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject
|
||||
//Assert.IsInstanceOfType<InlineObject> (instance, "variable 'instance' is a InlineObject");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NameTest()
|
||||
{
|
||||
// TODO unit test for the property 'Name'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Status'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StatusTest()
|
||||
{
|
||||
// TODO unit test for the property 'Status'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineResponseDefault
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineResponseDefaultTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineResponseDefault
|
||||
//private InlineResponseDefault instance;
|
||||
|
||||
public InlineResponseDefaultTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineResponseDefault
|
||||
//instance = new InlineResponseDefault();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineResponseDefault
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineResponseDefaultInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineResponseDefault
|
||||
//Assert.IsInstanceOfType<InlineResponseDefault> (instance, "variable 'instance' is a InlineResponseDefault");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'String'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringTest()
|
||||
{
|
||||
// TODO unit test for the property 'String'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing NullableClass
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class NullableClassTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for NullableClass
|
||||
//private NullableClass instance;
|
||||
|
||||
public NullableClassTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of NullableClass
|
||||
//instance = new NullableClass();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of NullableClass
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NullableClassInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" NullableClass
|
||||
//Assert.IsInstanceOfType<NullableClass> (instance, "variable 'instance' is a NullableClass");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'IntegerProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IntegerPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'IntegerProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'NumberProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NumberPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'NumberProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'BooleanProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BooleanPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'BooleanProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'StringProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'StringProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DateProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DatePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'DateProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DatetimeProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DatetimePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'DatetimeProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayAndItemsNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayAndItemsNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayAndItemsNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayItemsNullable'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayItemsNullableTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayItemsNullable'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ObjectNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ObjectNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectAndItemsNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ObjectAndItemsNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ObjectAndItemsNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectItemsNullable'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ObjectItemsNullableTest()
|
||||
{
|
||||
// TODO unit test for the property 'ObjectItemsNullable'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing OuterEnumDefaultValue
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class OuterEnumDefaultValueTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for OuterEnumDefaultValue
|
||||
//private OuterEnumDefaultValue instance;
|
||||
|
||||
public OuterEnumDefaultValueTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of OuterEnumDefaultValue
|
||||
//instance = new OuterEnumDefaultValue();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of OuterEnumDefaultValue
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OuterEnumDefaultValueInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" OuterEnumDefaultValue
|
||||
//Assert.IsInstanceOfType<OuterEnumDefaultValue> (instance, "variable 'instance' is a OuterEnumDefaultValue");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing OuterEnumIntegerDefaultValue
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class OuterEnumIntegerDefaultValueTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for OuterEnumIntegerDefaultValue
|
||||
//private OuterEnumIntegerDefaultValue instance;
|
||||
|
||||
public OuterEnumIntegerDefaultValueTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of OuterEnumIntegerDefaultValue
|
||||
//instance = new OuterEnumIntegerDefaultValue();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of OuterEnumIntegerDefaultValue
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OuterEnumIntegerDefaultValueInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" OuterEnumIntegerDefaultValue
|
||||
//Assert.IsInstanceOfType<OuterEnumIntegerDefaultValue> (instance, "variable 'instance' is a OuterEnumIntegerDefaultValue");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing OuterEnumInteger
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class OuterEnumIntegerTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for OuterEnumInteger
|
||||
//private OuterEnumInteger instance;
|
||||
|
||||
public OuterEnumIntegerTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of OuterEnumInteger
|
||||
//instance = new OuterEnumInteger();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of OuterEnumInteger
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OuterEnumIntegerInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" OuterEnumInteger
|
||||
//Assert.IsInstanceOfType<OuterEnumInteger> (instance, "variable 'instance' is a OuterEnumInteger");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient Call123TestSpecialTags (ModelClient body);
|
||||
ModelClient Call123TestSpecialTags (ModelClient modelClient);
|
||||
|
||||
/// <summary>
|
||||
/// To test special tags
|
||||
@@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body);
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@@ -64,10 +64,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// To test special tags
|
||||
@@ -76,10 +76,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsWithHttpInfoAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsWithHttpInfoAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@@ -204,11 +204,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
public ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(body);
|
||||
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@@ -216,13 +216,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body)
|
||||
public Org.OpenAPITools.Client.ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -241,7 +241,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -260,12 +260,12 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(body, cancellationToken);
|
||||
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@@ -273,14 +273,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> Call123TestSpecialTagsWithHttpInfoAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> Call123TestSpecialTagsWithHttpInfoAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -301,7 +301,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
@@ -0,0 +1,301 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Mime;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Org.OpenAPITools.Api
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a collection of functions to interact with the API endpoints
|
||||
/// </summary>
|
||||
public interface IDefaultApiSync : IApiAccessor
|
||||
{
|
||||
#region Synchronous Operations
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>InlineResponseDefault</returns>
|
||||
InlineResponseDefault FooGet ();
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of InlineResponseDefault</returns>
|
||||
ApiResponse<InlineResponseDefault> FooGetWithHttpInfo ();
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a collection of functions to interact with the API endpoints
|
||||
/// </summary>
|
||||
public interface IDefaultApiAsync : IApiAccessor
|
||||
{
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of InlineResponseDefault</returns>
|
||||
System.Threading.Tasks.Task<InlineResponseDefault> FooGetAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (InlineResponseDefault)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<InlineResponseDefault>> FooGetWithHttpInfoAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a collection of functions to interact with the API endpoints
|
||||
/// </summary>
|
||||
public interface IDefaultApi : IDefaultApiSync, IDefaultApiAsync
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a collection of functions to interact with the API endpoints
|
||||
/// </summary>
|
||||
public partial class DefaultApi : IDefaultApi
|
||||
{
|
||||
private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DefaultApi() : this((string) null)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DefaultApi(String basePath)
|
||||
{
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
new Org.OpenAPITools.Client.Configuration { BasePath = basePath }
|
||||
);
|
||||
this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
|
||||
this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
|
||||
this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DefaultApi"/> class
|
||||
/// using Configuration object
|
||||
/// </summary>
|
||||
/// <param name="configuration">An instance of Configuration</param>
|
||||
/// <returns></returns>
|
||||
public DefaultApi(Org.OpenAPITools.Client.Configuration configuration)
|
||||
{
|
||||
if (configuration == null) throw new ArgumentNullException("configuration");
|
||||
|
||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||
configuration
|
||||
);
|
||||
this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
|
||||
this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath);
|
||||
ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DefaultApi"/> class
|
||||
/// using a Configuration object and client instance.
|
||||
/// </summary>
|
||||
/// <param name="client">The client interface for synchronous API access.</param>
|
||||
/// <param name="asyncClient">The client interface for asynchronous API access.</param>
|
||||
/// <param name="configuration">The configuration object.</param>
|
||||
public DefaultApi(Org.OpenAPITools.Client.ISynchronousClient client,Org.OpenAPITools.Client.IAsynchronousClient asyncClient, Org.OpenAPITools.Client.IReadableConfiguration configuration)
|
||||
{
|
||||
if(client == null) throw new ArgumentNullException("client");
|
||||
if(asyncClient == null) throw new ArgumentNullException("asyncClient");
|
||||
if(configuration == null) throw new ArgumentNullException("configuration");
|
||||
|
||||
this.Client = client;
|
||||
this.AsynchronousClient = asyncClient;
|
||||
this.Configuration = configuration;
|
||||
this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The client for accessing this underlying API asynchronously.
|
||||
/// </summary>
|
||||
public Org.OpenAPITools.Client.IAsynchronousClient AsynchronousClient { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The client for accessing this underlying API synchronously.
|
||||
/// </summary>
|
||||
public Org.OpenAPITools.Client.ISynchronousClient Client { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the base path of the API client.
|
||||
/// </summary>
|
||||
/// <value>The base path</value>
|
||||
public String GetBasePath()
|
||||
{
|
||||
return this.Configuration.BasePath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the configuration object
|
||||
/// </summary>
|
||||
/// <value>An instance of the Configuration</value>
|
||||
public Org.OpenAPITools.Client.IReadableConfiguration Configuration {get; set;}
|
||||
|
||||
/// <summary>
|
||||
/// Provides a factory method hook for the creation of exceptions.
|
||||
/// </summary>
|
||||
public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
|
||||
{
|
||||
throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
|
||||
}
|
||||
return _exceptionFactory;
|
||||
}
|
||||
set { _exceptionFactory = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>InlineResponseDefault</returns>
|
||||
public InlineResponseDefault FooGet ()
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<InlineResponseDefault> localVarResponse = FooGetWithHttpInfo();
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of InlineResponseDefault</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse< InlineResponseDefault > FooGetWithHttpInfo ()
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get< InlineResponseDefault >("/foo", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FooGet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of InlineResponseDefault</returns>
|
||||
public async System.Threading.Tasks.Task<InlineResponseDefault> FooGetAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<InlineResponseDefault> localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (InlineResponseDefault)</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<InlineResponseDefault>> FooGetWithHttpInfoAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<InlineResponseDefault>("/foo", localVarRequestOptions, this.Configuration, cancellationToken);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FooGet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClassname (ModelClient body);
|
||||
ModelClient TestClassname (ModelClient modelClient);
|
||||
|
||||
/// <summary>
|
||||
/// To test class name in snake case
|
||||
@@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body);
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient modelClient);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@@ -64,10 +64,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// To test class name in snake case
|
||||
@@ -76,10 +76,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameWithHttpInfoAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameWithHttpInfoAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@@ -204,11 +204,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClassname (ModelClient body)
|
||||
public ModelClient TestClassname (ModelClient modelClient)
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(body);
|
||||
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(modelClient);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@@ -216,13 +216,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
|
||||
public Org.OpenAPITools.Client.ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -241,7 +241,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
// authentication (api_key_query) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
@@ -265,12 +265,12 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await TestClassnameWithHttpInfoAsync(body, cancellationToken);
|
||||
Org.OpenAPITools.Client.ApiResponse<ModelClient> localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@@ -278,14 +278,14 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> TestClassnameWithHttpInfoAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<ModelClient>> TestClassnameWithHttpInfoAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -306,7 +306,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
// authentication (api_key_query) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
|
||||
@@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void AddPet (Pet body);
|
||||
void AddPet (Pet pet);
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
@@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet body);
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet pet);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@@ -141,9 +141,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void UpdatePet (Pet body);
|
||||
void UpdatePet (Pet pet);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@@ -152,9 +152,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet body);
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@@ -246,10 +246,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task AddPetAsync (Pet body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task AddPetAsync (Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
@@ -258,10 +258,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetWithHttpInfoAsync (Pet body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetWithHttpInfoAsync (Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@@ -363,10 +363,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task UpdatePetAsync (Pet body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task UpdatePetAsync (Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@@ -375,10 +375,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithHttpInfoAsync (Pet body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithHttpInfoAsync (Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@@ -584,24 +584,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void AddPet (Pet body)
|
||||
public void AddPet (Pet pet)
|
||||
{
|
||||
AddPetWithHttpInfo(body);
|
||||
AddPetWithHttpInfo(pet);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> AddPetWithHttpInfo (Pet body)
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> AddPetWithHttpInfo (Pet pet)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -620,7 +620,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
@@ -645,26 +645,26 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task AddPetAsync (Pet body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task AddPetAsync (Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await AddPetWithHttpInfoAsync(body, cancellationToken);
|
||||
await AddPetWithHttpInfoAsync(pet, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> AddPetWithHttpInfoAsync (Pet body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> AddPetWithHttpInfoAsync (Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -685,7 +685,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
@@ -1215,24 +1215,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void UpdatePet (Pet body)
|
||||
public void UpdatePet (Pet pet)
|
||||
{
|
||||
UpdatePetWithHttpInfo(body);
|
||||
UpdatePetWithHttpInfo(pet);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo (Pet body)
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -1251,7 +1251,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
@@ -1276,26 +1276,26 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task UpdatePetAsync (Pet body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task UpdatePetAsync (Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await UpdatePetWithHttpInfoAsync(body, cancellationToken);
|
||||
await UpdatePetWithHttpInfoAsync(pet, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> UpdatePetWithHttpInfoAsync (Pet body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> UpdatePetWithHttpInfoAsync (Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -1316,7 +1316,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
// oauth required
|
||||
|
||||
@@ -95,9 +95,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
Order PlaceOrder (Order body);
|
||||
Order PlaceOrder (Order order);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
@@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body);
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order order);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@@ -192,10 +192,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of Order</returns>
|
||||
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
@@ -204,10 +204,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderWithHttpInfoAsync (Order body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderWithHttpInfoAsync (Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@@ -663,11 +663,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
public Order PlaceOrder (Order body)
|
||||
public Order PlaceOrder (Order order)
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(body);
|
||||
Org.OpenAPITools.Client.ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(order);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@@ -675,17 +675,18 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
|
||||
public Org.OpenAPITools.Client.ApiResponse< Order > PlaceOrderWithHttpInfo (Order order)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -700,7 +701,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = order;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -719,12 +720,12 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of Order</returns>
|
||||
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
Org.OpenAPITools.Client.ApiResponse<Order> localVarResponse = await PlaceOrderWithHttpInfoAsync(body, cancellationToken);
|
||||
Org.OpenAPITools.Client.ApiResponse<Order> localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@@ -732,19 +733,20 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Order>> PlaceOrderWithHttpInfoAsync (Order body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Order>> PlaceOrderWithHttpInfoAsync (Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -760,7 +762,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = order;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
@@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUser (User body);
|
||||
void CreateUser (User user);
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
@@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User body);
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User user);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@@ -55,9 +55,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithArrayInput (List<User> body);
|
||||
void CreateUsersWithArrayInput (List<User> user);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@@ -66,9 +66,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body);
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@@ -76,9 +76,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithListInput (List<User> body);
|
||||
void CreateUsersWithListInput (List<User> user);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@@ -87,9 +87,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body);
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user);
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@@ -182,9 +182,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
void UpdateUser (string username, User body);
|
||||
void UpdateUser (string username, User user);
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
@@ -194,9 +194,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body);
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@@ -213,10 +213,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUserAsync (User body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task CreateUserAsync (User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
@@ -225,10 +225,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserWithHttpInfoAsync (User body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserWithHttpInfoAsync (User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@@ -236,10 +236,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@@ -248,10 +248,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputWithHttpInfoAsync (List<User> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputWithHttpInfoAsync (List<User> user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@@ -259,10 +259,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@@ -271,10 +271,10 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputWithHttpInfoAsync (List<User> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputWithHttpInfoAsync (List<User> user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@@ -375,10 +375,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task UpdateUserAsync (string username, User body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task UpdateUserAsync (string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
@@ -388,10 +388,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserWithHttpInfoAsync (string username, User body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserWithHttpInfoAsync (string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@@ -516,28 +516,29 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUser (User body)
|
||||
public void CreateUser (User user)
|
||||
{
|
||||
CreateUserWithHttpInfo(body);
|
||||
CreateUserWithHttpInfo(user);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUserWithHttpInfo (User body)
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUserWithHttpInfo (User user)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -550,7 +551,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -569,31 +570,32 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUserAsync (User body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task CreateUserAsync (User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await CreateUserWithHttpInfoAsync(body, cancellationToken);
|
||||
await CreateUserWithHttpInfoAsync(user, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUserWithHttpInfoAsync (User body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUserWithHttpInfoAsync (User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -607,7 +609,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -627,28 +629,29 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithArrayInput (List<User> body)
|
||||
public void CreateUsersWithArrayInput (List<User> user)
|
||||
{
|
||||
CreateUsersWithArrayInputWithHttpInfo(body);
|
||||
CreateUsersWithArrayInputWithHttpInfo(user);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body)
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -661,7 +664,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -680,31 +683,32 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await CreateUsersWithArrayInputWithHttpInfoAsync(body, cancellationToken);
|
||||
await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUsersWithArrayInputWithHttpInfoAsync (List<User> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUsersWithArrayInputWithHttpInfoAsync (List<User> user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -718,7 +722,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -738,28 +742,29 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithListInput (List<User> body)
|
||||
public void CreateUsersWithListInput (List<User> user)
|
||||
{
|
||||
CreateUsersWithListInputWithHttpInfo(body);
|
||||
CreateUsersWithListInputWithHttpInfo(user);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body)
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -772,7 +777,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -791,31 +796,32 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await CreateUsersWithListInputWithHttpInfoAsync(body, cancellationToken);
|
||||
await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUsersWithListInputWithHttpInfoAsync (List<User> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> CreateUsersWithListInputWithHttpInfoAsync (List<User> user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -829,7 +835,7 @@ namespace Org.OpenAPITools.Api
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -1306,11 +1312,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
public void UpdateUser (string username, User body)
|
||||
public void UpdateUser (string username, User user)
|
||||
{
|
||||
UpdateUserWithHttpInfo(username, body);
|
||||
UpdateUserWithHttpInfo(username, user);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1318,21 +1324,22 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body)
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -1346,7 +1353,7 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
@@ -1366,12 +1373,12 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await UpdateUserWithHttpInfoAsync(username, body, cancellationToken);
|
||||
await UpdateUserWithHttpInfoAsync(username, user, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1379,23 +1386,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> UpdateUserWithHttpInfoAsync (string username, User body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> UpdateUserWithHttpInfoAsync (string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
@@ -1410,7 +1418,7 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = body;
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
@@ -35,97 +35,25 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
|
||||
/// </summary>
|
||||
/// <param name="mapString">mapString.</param>
|
||||
/// <param name="mapNumber">mapNumber.</param>
|
||||
/// <param name="mapInteger">mapInteger.</param>
|
||||
/// <param name="mapBoolean">mapBoolean.</param>
|
||||
/// <param name="mapArrayInteger">mapArrayInteger.</param>
|
||||
/// <param name="mapArrayAnytype">mapArrayAnytype.</param>
|
||||
/// <param name="mapMapString">mapMapString.</param>
|
||||
/// <param name="mapMapAnytype">mapMapAnytype.</param>
|
||||
/// <param name="anytype1">anytype1.</param>
|
||||
/// <param name="anytype2">anytype2.</param>
|
||||
/// <param name="anytype3">anytype3.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> mapString = default(Dictionary<string, string>), Dictionary<string, decimal> mapNumber = default(Dictionary<string, decimal>), Dictionary<string, int> mapInteger = default(Dictionary<string, int>), Dictionary<string, bool> mapBoolean = default(Dictionary<string, bool>), Dictionary<string, List<int>> mapArrayInteger = default(Dictionary<string, List<int>>), Dictionary<string, List<Object>> mapArrayAnytype = default(Dictionary<string, List<Object>>), Dictionary<string, Dictionary<string, string>> mapMapString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, Dictionary<string, Object>> mapMapAnytype = default(Dictionary<string, Dictionary<string, Object>>), Object anytype1 = default(Object), Object anytype2 = default(Object), Object anytype3 = default(Object))
|
||||
/// <param name="mapProperty">mapProperty.</param>
|
||||
/// <param name="mapOfMapProperty">mapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
{
|
||||
this.MapString = mapString;
|
||||
this.MapNumber = mapNumber;
|
||||
this.MapInteger = mapInteger;
|
||||
this.MapBoolean = mapBoolean;
|
||||
this.MapArrayInteger = mapArrayInteger;
|
||||
this.MapArrayAnytype = mapArrayAnytype;
|
||||
this.MapMapString = mapMapString;
|
||||
this.MapMapAnytype = mapMapAnytype;
|
||||
this.Anytype1 = anytype1;
|
||||
this.Anytype2 = anytype2;
|
||||
this.Anytype3 = anytype3;
|
||||
this.MapProperty = mapProperty;
|
||||
this.MapOfMapProperty = mapOfMapProperty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapString
|
||||
/// Gets or Sets MapProperty
|
||||
/// </summary>
|
||||
[DataMember(Name="map_string", EmitDefaultValue=false)]
|
||||
public Dictionary<string, string> MapString { get; set; }
|
||||
[DataMember(Name="map_property", EmitDefaultValue=false)]
|
||||
public Dictionary<string, string> MapProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapNumber
|
||||
/// Gets or Sets MapOfMapProperty
|
||||
/// </summary>
|
||||
[DataMember(Name="map_number", EmitDefaultValue=false)]
|
||||
public Dictionary<string, decimal> MapNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="map_integer", EmitDefaultValue=false)]
|
||||
public Dictionary<string, int> MapInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapBoolean
|
||||
/// </summary>
|
||||
[DataMember(Name="map_boolean", EmitDefaultValue=false)]
|
||||
public Dictionary<string, bool> MapBoolean { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapArrayInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="map_array_integer", EmitDefaultValue=false)]
|
||||
public Dictionary<string, List<int>> MapArrayInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapArrayAnytype
|
||||
/// </summary>
|
||||
[DataMember(Name="map_array_anytype", EmitDefaultValue=false)]
|
||||
public Dictionary<string, List<Object>> MapArrayAnytype { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapMapString
|
||||
/// </summary>
|
||||
[DataMember(Name="map_map_string", EmitDefaultValue=false)]
|
||||
public Dictionary<string, Dictionary<string, string>> MapMapString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapMapAnytype
|
||||
/// </summary>
|
||||
[DataMember(Name="map_map_anytype", EmitDefaultValue=false)]
|
||||
public Dictionary<string, Dictionary<string, Object>> MapMapAnytype { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Anytype1
|
||||
/// </summary>
|
||||
[DataMember(Name="anytype_1", EmitDefaultValue=false)]
|
||||
public Object Anytype1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Anytype2
|
||||
/// </summary>
|
||||
[DataMember(Name="anytype_2", EmitDefaultValue=false)]
|
||||
public Object Anytype2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Anytype3
|
||||
/// </summary>
|
||||
[DataMember(Name="anytype_3", EmitDefaultValue=false)]
|
||||
public Object Anytype3 { get; set; }
|
||||
[DataMember(Name="map_of_map_property", EmitDefaultValue=false)]
|
||||
public Dictionary<string, Dictionary<string, string>> MapOfMapProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
@@ -135,17 +63,8 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class AdditionalPropertiesClass {\n");
|
||||
sb.Append(" MapString: ").Append(MapString).Append("\n");
|
||||
sb.Append(" MapNumber: ").Append(MapNumber).Append("\n");
|
||||
sb.Append(" MapInteger: ").Append(MapInteger).Append("\n");
|
||||
sb.Append(" MapBoolean: ").Append(MapBoolean).Append("\n");
|
||||
sb.Append(" MapArrayInteger: ").Append(MapArrayInteger).Append("\n");
|
||||
sb.Append(" MapArrayAnytype: ").Append(MapArrayAnytype).Append("\n");
|
||||
sb.Append(" MapMapString: ").Append(MapMapString).Append("\n");
|
||||
sb.Append(" MapMapAnytype: ").Append(MapMapAnytype).Append("\n");
|
||||
sb.Append(" Anytype1: ").Append(Anytype1).Append("\n");
|
||||
sb.Append(" Anytype2: ").Append(Anytype2).Append("\n");
|
||||
sb.Append(" Anytype3: ").Append(Anytype3).Append("\n");
|
||||
sb.Append(" MapProperty: ").Append(MapProperty).Append("\n");
|
||||
sb.Append(" MapOfMapProperty: ").Append(MapOfMapProperty).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -188,28 +107,10 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.MapString != null)
|
||||
hashCode = hashCode * 59 + this.MapString.GetHashCode();
|
||||
if (this.MapNumber != null)
|
||||
hashCode = hashCode * 59 + this.MapNumber.GetHashCode();
|
||||
if (this.MapInteger != null)
|
||||
hashCode = hashCode * 59 + this.MapInteger.GetHashCode();
|
||||
if (this.MapBoolean != null)
|
||||
hashCode = hashCode * 59 + this.MapBoolean.GetHashCode();
|
||||
if (this.MapArrayInteger != null)
|
||||
hashCode = hashCode * 59 + this.MapArrayInteger.GetHashCode();
|
||||
if (this.MapArrayAnytype != null)
|
||||
hashCode = hashCode * 59 + this.MapArrayAnytype.GetHashCode();
|
||||
if (this.MapMapString != null)
|
||||
hashCode = hashCode * 59 + this.MapMapString.GetHashCode();
|
||||
if (this.MapMapAnytype != null)
|
||||
hashCode = hashCode * 59 + this.MapMapAnytype.GetHashCode();
|
||||
if (this.Anytype1 != null)
|
||||
hashCode = hashCode * 59 + this.Anytype1.GetHashCode();
|
||||
if (this.Anytype2 != null)
|
||||
hashCode = hashCode * 59 + this.Anytype2.GetHashCode();
|
||||
if (this.Anytype3 != null)
|
||||
hashCode = hashCode * 59 + this.Anytype3.GetHashCode();
|
||||
if (this.MapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||
if (this.MapOfMapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,10 +34,8 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
||||
[JsonSubtypes.KnownSubType(typeof(BigCat), "BigCat")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
||||
[JsonSubtypes.KnownSubType(typeof(BigCat), "BigCat")]
|
||||
public partial class Animal : IEquatable<Animal>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -144,9 +144,24 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=true)]
|
||||
public OuterEnum? OuterEnum { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnumInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnumInteger", EmitDefaultValue=false)]
|
||||
public OuterEnumInteger? OuterEnumInteger { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnumDefaultValue
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnumDefaultValue", EmitDefaultValue=false)]
|
||||
public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnumIntegerDefaultValue
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnumIntegerDefaultValue", EmitDefaultValue=false)]
|
||||
public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
@@ -159,13 +174,19 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="enumInteger">enumInteger.</param>
|
||||
/// <param name="enumNumber">enumNumber.</param>
|
||||
/// <param name="outerEnum">outerEnum.</param>
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?))
|
||||
/// <param name="outerEnumInteger">outerEnumInteger.</param>
|
||||
/// <param name="outerEnumDefaultValue">outerEnumDefaultValue.</param>
|
||||
/// <param name="outerEnumIntegerDefaultValue">outerEnumIntegerDefaultValue.</param>
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?), OuterEnumInteger? outerEnumInteger = default(OuterEnumInteger?), OuterEnumDefaultValue? outerEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue = default(OuterEnumIntegerDefaultValue?))
|
||||
{
|
||||
this.EnumStringRequired = enumStringRequired;
|
||||
this.EnumString = enumString;
|
||||
this.EnumInteger = enumInteger;
|
||||
this.EnumNumber = enumNumber;
|
||||
this.OuterEnum = outerEnum;
|
||||
this.OuterEnumInteger = outerEnumInteger;
|
||||
this.OuterEnumDefaultValue = outerEnumDefaultValue;
|
||||
this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -181,6 +202,9 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" EnumInteger: ").Append(EnumInteger).Append("\n");
|
||||
sb.Append(" EnumNumber: ").Append(EnumNumber).Append("\n");
|
||||
sb.Append(" OuterEnum: ").Append(OuterEnum).Append("\n");
|
||||
sb.Append(" OuterEnumInteger: ").Append(OuterEnumInteger).Append("\n");
|
||||
sb.Append(" OuterEnumDefaultValue: ").Append(OuterEnumDefaultValue).Append("\n");
|
||||
sb.Append(" OuterEnumIntegerDefaultValue: ").Append(OuterEnumIntegerDefaultValue).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -228,6 +252,9 @@ namespace Org.OpenAPITools.Model
|
||||
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnum.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumInteger.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumDefaultValue.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumIntegerDefaultValue.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Foo
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Foo : IEquatable<Foo>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Foo" /> class.
|
||||
/// </summary>
|
||||
/// <param name="bar">bar (default to "bar").</param>
|
||||
public Foo(string bar = "bar")
|
||||
{
|
||||
// use default value if no "bar" provided
|
||||
this.Bar = bar ?? "bar";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Bar
|
||||
/// </summary>
|
||||
[DataMember(Name="bar", EmitDefaultValue=false)]
|
||||
public string Bar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Foo {\n");
|
||||
sb.Append(" Bar: ").Append(Bar).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as Foo).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Foo instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Foo to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Foo input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Bar != null)
|
||||
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -53,8 +53,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="password">password (required).</param>
|
||||
/// <param name="bigDecimal">bigDecimal.</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), decimal bigDecimal = default(decimal))
|
||||
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</param>
|
||||
/// <param name="patternWithDigitsAndDelimiter">A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01..</param>
|
||||
public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
@@ -71,7 +72,8 @@ namespace Org.OpenAPITools.Model
|
||||
this.Binary = binary;
|
||||
this.DateTime = dateTime;
|
||||
this.Uuid = uuid;
|
||||
this.BigDecimal = bigDecimal;
|
||||
this.PatternWithDigits = patternWithDigits;
|
||||
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -154,10 +156,18 @@ namespace Org.OpenAPITools.Model
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BigDecimal
|
||||
/// A string that is a 10 digit number. Can have leading zeros.
|
||||
/// </summary>
|
||||
[DataMember(Name="BigDecimal", EmitDefaultValue=false)]
|
||||
public decimal BigDecimal { get; set; }
|
||||
/// <value>A string that is a 10 digit number. Can have leading zeros.</value>
|
||||
[DataMember(Name="pattern_with_digits", EmitDefaultValue=false)]
|
||||
public string PatternWithDigits { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.
|
||||
/// </summary>
|
||||
/// <value>A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.</value>
|
||||
[DataMember(Name="pattern_with_digits_and_delimiter", EmitDefaultValue=false)]
|
||||
public string PatternWithDigitsAndDelimiter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
@@ -180,7 +190,8 @@ namespace Org.OpenAPITools.Model
|
||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||
sb.Append(" BigDecimal: ").Append(BigDecimal).Append("\n");
|
||||
sb.Append(" PatternWithDigits: ").Append(PatternWithDigits).Append("\n");
|
||||
sb.Append(" PatternWithDigitsAndDelimiter: ").Append(PatternWithDigitsAndDelimiter).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@@ -243,7 +254,10 @@ namespace Org.OpenAPITools.Model
|
||||
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||
if (this.Password != null)
|
||||
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.BigDecimal.GetHashCode();
|
||||
if (this.PatternWithDigits != null)
|
||||
hashCode = hashCode * 59 + this.PatternWithDigits.GetHashCode();
|
||||
if (this.PatternWithDigitsAndDelimiter != null)
|
||||
hashCode = hashCode * 59 + this.PatternWithDigitsAndDelimiter.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -334,6 +348,20 @@ namespace Org.OpenAPITools.Model
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be greater than 10.", new [] { "Password" });
|
||||
}
|
||||
|
||||
// PatternWithDigits (string) pattern
|
||||
Regex regexPatternWithDigits = new Regex(@"^\\d{10}$", RegexOptions.CultureInvariant);
|
||||
if (false == regexPatternWithDigits.Match(this.PatternWithDigits).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" });
|
||||
}
|
||||
|
||||
// PatternWithDigitsAndDelimiter (string) pattern
|
||||
Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
|
||||
if (false == regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class HealthCheckResult : IEquatable<HealthCheckResult>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="HealthCheckResult" /> class.
|
||||
/// </summary>
|
||||
/// <param name="nullableMessage">nullableMessage.</param>
|
||||
public HealthCheckResult(string nullableMessage = default(string))
|
||||
{
|
||||
this.NullableMessage = nullableMessage;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NullableMessage
|
||||
/// </summary>
|
||||
[DataMember(Name="NullableMessage", EmitDefaultValue=true)]
|
||||
public string NullableMessage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class HealthCheckResult {\n");
|
||||
sb.Append(" NullableMessage: ").Append(NullableMessage).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as HealthCheckResult).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if HealthCheckResult instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of HealthCheckResult to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(HealthCheckResult input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.NullableMessage != null)
|
||||
hashCode = hashCode * 59 + this.NullableMessage.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// InlineObject
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class InlineObject : IEquatable<InlineObject>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject" /> class.
|
||||
/// </summary>
|
||||
/// <param name="name">Updated name of the pet.</param>
|
||||
/// <param name="status">Updated status of the pet.</param>
|
||||
public InlineObject(string name = default(string), string status = default(string))
|
||||
{
|
||||
this.Name = name;
|
||||
this.Status = status;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updated name of the pet
|
||||
/// </summary>
|
||||
/// <value>Updated name of the pet</value>
|
||||
[DataMember(Name="name", EmitDefaultValue=false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Updated status of the pet
|
||||
/// </summary>
|
||||
/// <value>Updated status of the pet</value>
|
||||
[DataMember(Name="status", EmitDefaultValue=false)]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class InlineObject {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if InlineObject instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of InlineObject to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(InlineObject input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
if (this.Status != null)
|
||||
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// InlineObject1
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class InlineObject1 : IEquatable<InlineObject1>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject1" /> class.
|
||||
/// </summary>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server.</param>
|
||||
/// <param name="file">file to upload.</param>
|
||||
public InlineObject1(string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
|
||||
{
|
||||
this.AdditionalMetadata = additionalMetadata;
|
||||
this.File = file;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Additional data to pass to server
|
||||
/// </summary>
|
||||
/// <value>Additional data to pass to server</value>
|
||||
[DataMember(Name="additionalMetadata", EmitDefaultValue=false)]
|
||||
public string AdditionalMetadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// file to upload
|
||||
/// </summary>
|
||||
/// <value>file to upload</value>
|
||||
[DataMember(Name="file", EmitDefaultValue=false)]
|
||||
public System.IO.Stream File { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class InlineObject1 {\n");
|
||||
sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n");
|
||||
sb.Append(" File: ").Append(File).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject1).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if InlineObject1 instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of InlineObject1 to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(InlineObject1 input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.AdditionalMetadata != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalMetadata.GetHashCode();
|
||||
if (this.File != null)
|
||||
hashCode = hashCode * 59 + this.File.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// InlineObject2
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class InlineObject2 : IEquatable<InlineObject2>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines EnumFormStringArray
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum EnumFormStringArrayEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum GreaterThan for value: >
|
||||
/// </summary>
|
||||
[EnumMember(Value = ">")]
|
||||
GreaterThan = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Dollar for value: $
|
||||
/// </summary>
|
||||
[EnumMember(Value = "$")]
|
||||
Dollar = 2
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Form parameter enum test (string array)
|
||||
/// </summary>
|
||||
/// <value>Form parameter enum test (string array)</value>
|
||||
[DataMember(Name="enum_form_string_array", EmitDefaultValue=false)]
|
||||
public List<EnumFormStringArrayEnum> EnumFormStringArray { get; set; }
|
||||
/// <summary>
|
||||
/// Form parameter enum test (string)
|
||||
/// </summary>
|
||||
/// <value>Form parameter enum test (string)</value>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum EnumFormStringEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Abc for value: _abc
|
||||
/// </summary>
|
||||
[EnumMember(Value = "_abc")]
|
||||
Abc = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Efg for value: -efg
|
||||
/// </summary>
|
||||
[EnumMember(Value = "-efg")]
|
||||
Efg = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Xyz for value: (xyz)
|
||||
/// </summary>
|
||||
[EnumMember(Value = "(xyz)")]
|
||||
Xyz = 3
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Form parameter enum test (string)
|
||||
/// </summary>
|
||||
/// <value>Form parameter enum test (string)</value>
|
||||
[DataMember(Name="enum_form_string", EmitDefaultValue=false)]
|
||||
public EnumFormStringEnum? EnumFormString { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject2" /> class.
|
||||
/// </summary>
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array).</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (default to EnumFormStringEnum.Efg).</param>
|
||||
public InlineObject2(List<EnumFormStringArrayEnum> enumFormStringArray = default(List<EnumFormStringArrayEnum>), EnumFormStringEnum? enumFormString = EnumFormStringEnum.Efg)
|
||||
{
|
||||
this.EnumFormStringArray = enumFormStringArray;
|
||||
this.EnumFormString = enumFormString;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class InlineObject2 {\n");
|
||||
sb.Append(" EnumFormStringArray: ").Append(EnumFormStringArray).Append("\n");
|
||||
sb.Append(" EnumFormString: ").Append(EnumFormString).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject2).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if InlineObject2 instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of InlineObject2 to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(InlineObject2 input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.EnumFormStringArray.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumFormString.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,357 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// InlineObject3
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class InlineObject3 : IEquatable<InlineObject3>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject3" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected InlineObject3() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject3" /> class.
|
||||
/// </summary>
|
||||
/// <param name="integer">None.</param>
|
||||
/// <param name="int32">None.</param>
|
||||
/// <param name="int64">None.</param>
|
||||
/// <param name="number">None (required).</param>
|
||||
/// <param name="_float">None.</param>
|
||||
/// <param name="_double">None (required).</param>
|
||||
/// <param name="_string">None.</param>
|
||||
/// <param name="patternWithoutDelimiter">None (required).</param>
|
||||
/// <param name="_byte">None (required).</param>
|
||||
/// <param name="binary">None.</param>
|
||||
/// <param name="date">None.</param>
|
||||
/// <param name="dateTime">None.</param>
|
||||
/// <param name="password">None.</param>
|
||||
/// <param name="callback">None.</param>
|
||||
public InlineObject3(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), string _string = default(string), string patternWithoutDelimiter = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
|
||||
{
|
||||
this.Number = number;
|
||||
this.Double = _double;
|
||||
// to ensure "patternWithoutDelimiter" is required (not null)
|
||||
this.PatternWithoutDelimiter = patternWithoutDelimiter ?? throw new ArgumentNullException("patternWithoutDelimiter is a required property for InlineObject3 and cannot be null");
|
||||
// to ensure "_byte" is required (not null)
|
||||
this.Byte = _byte ?? throw new ArgumentNullException("_byte is a required property for InlineObject3 and cannot be null");
|
||||
this.Integer = integer;
|
||||
this.Int32 = int32;
|
||||
this.Int64 = int64;
|
||||
this.Float = _float;
|
||||
this.String = _string;
|
||||
this.Binary = binary;
|
||||
this.Date = date;
|
||||
this.DateTime = dateTime;
|
||||
this.Password = password;
|
||||
this.Callback = callback;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="integer", EmitDefaultValue=false)]
|
||||
public int Integer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="int32", EmitDefaultValue=false)]
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="int64", EmitDefaultValue=false)]
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="number", EmitDefaultValue=false)]
|
||||
public decimal Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="float", EmitDefaultValue=false)]
|
||||
public float Float { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="double", EmitDefaultValue=false)]
|
||||
public double Double { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="string", EmitDefaultValue=false)]
|
||||
public string String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="pattern_without_delimiter", EmitDefaultValue=false)]
|
||||
public string PatternWithoutDelimiter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="byte", EmitDefaultValue=false)]
|
||||
public byte[] Byte { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="binary", EmitDefaultValue=false)]
|
||||
public System.IO.Stream Binary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="date", EmitDefaultValue=false)]
|
||||
[JsonConverter(typeof(OpenAPIDateConverter))]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="dateTime", EmitDefaultValue=false)]
|
||||
public DateTime DateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="password", EmitDefaultValue=false)]
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// None
|
||||
/// </summary>
|
||||
/// <value>None</value>
|
||||
[DataMember(Name="callback", EmitDefaultValue=false)]
|
||||
public string Callback { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class InlineObject3 {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" Float: ").Append(Float).Append("\n");
|
||||
sb.Append(" Double: ").Append(Double).Append("\n");
|
||||
sb.Append(" String: ").Append(String).Append("\n");
|
||||
sb.Append(" PatternWithoutDelimiter: ").Append(PatternWithoutDelimiter).Append("\n");
|
||||
sb.Append(" Byte: ").Append(Byte).Append("\n");
|
||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||
sb.Append(" Callback: ").Append(Callback).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject3).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if InlineObject3 instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of InlineObject3 to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(InlineObject3 input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Integer.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Int32.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Int64.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Number.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Float.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Double.GetHashCode();
|
||||
if (this.String != null)
|
||||
hashCode = hashCode * 59 + this.String.GetHashCode();
|
||||
if (this.PatternWithoutDelimiter != null)
|
||||
hashCode = hashCode * 59 + this.PatternWithoutDelimiter.GetHashCode();
|
||||
if (this.Byte != null)
|
||||
hashCode = hashCode * 59 + this.Byte.GetHashCode();
|
||||
if (this.Binary != null)
|
||||
hashCode = hashCode * 59 + this.Binary.GetHashCode();
|
||||
if (this.Date != null)
|
||||
hashCode = hashCode * 59 + this.Date.GetHashCode();
|
||||
if (this.DateTime != null)
|
||||
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||
if (this.Password != null)
|
||||
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||
if (this.Callback != null)
|
||||
hashCode = hashCode * 59 + this.Callback.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Integer (int) maximum
|
||||
if(this.Integer > (int)100)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" });
|
||||
}
|
||||
|
||||
// Integer (int) minimum
|
||||
if(this.Integer < (int)10)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" });
|
||||
}
|
||||
|
||||
// Int32 (int) maximum
|
||||
if(this.Int32 > (int)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// Int32 (int) minimum
|
||||
if(this.Int32 < (int)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if(this.Number > (decimal)543.2)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" });
|
||||
}
|
||||
|
||||
// Number (decimal) minimum
|
||||
if(this.Number < (decimal)32.1)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" });
|
||||
}
|
||||
|
||||
// Float (float) maximum
|
||||
if(this.Float > (float)987.6)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" });
|
||||
}
|
||||
|
||||
// Double (double) maximum
|
||||
if(this.Double > (double)123.4)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" });
|
||||
}
|
||||
|
||||
// Double (double) minimum
|
||||
if(this.Double < (double)67.8)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" });
|
||||
}
|
||||
|
||||
// String (string) pattern
|
||||
Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
|
||||
if (false == regexString.Match(this.String).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" });
|
||||
}
|
||||
|
||||
// PatternWithoutDelimiter (string) pattern
|
||||
Regex regexPatternWithoutDelimiter = new Regex(@"^[A-Z].*", RegexOptions.CultureInvariant);
|
||||
if (false == regexPatternWithoutDelimiter.Match(this.PatternWithoutDelimiter).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithoutDelimiter, must match a pattern of " + regexPatternWithoutDelimiter, new [] { "PatternWithoutDelimiter" });
|
||||
}
|
||||
|
||||
// Password (string) maxLength
|
||||
if(this.Password != null && this.Password.Length > 64)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be less than 64.", new [] { "Password" });
|
||||
}
|
||||
|
||||
// Password (string) minLength
|
||||
if(this.Password != null && this.Password.Length < 10)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be greater than 10.", new [] { "Password" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// InlineObject4
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class InlineObject4 : IEquatable<InlineObject4>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject4" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected InlineObject4() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject4" /> class.
|
||||
/// </summary>
|
||||
/// <param name="param">field1 (required).</param>
|
||||
/// <param name="param2">field2 (required).</param>
|
||||
public InlineObject4(string param = default(string), string param2 = default(string))
|
||||
{
|
||||
// to ensure "param" is required (not null)
|
||||
this.Param = param ?? throw new ArgumentNullException("param is a required property for InlineObject4 and cannot be null");
|
||||
// to ensure "param2" is required (not null)
|
||||
this.Param2 = param2 ?? throw new ArgumentNullException("param2 is a required property for InlineObject4 and cannot be null");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// field1
|
||||
/// </summary>
|
||||
/// <value>field1</value>
|
||||
[DataMember(Name="param", EmitDefaultValue=false)]
|
||||
public string Param { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// field2
|
||||
/// </summary>
|
||||
/// <value>field2</value>
|
||||
[DataMember(Name="param2", EmitDefaultValue=false)]
|
||||
public string Param2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class InlineObject4 {\n");
|
||||
sb.Append(" Param: ").Append(Param).Append("\n");
|
||||
sb.Append(" Param2: ").Append(Param2).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject4).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if InlineObject4 instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of InlineObject4 to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(InlineObject4 input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Param != null)
|
||||
hashCode = hashCode * 59 + this.Param.GetHashCode();
|
||||
if (this.Param2 != null)
|
||||
hashCode = hashCode * 59 + this.Param2.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// InlineObject5
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class InlineObject5 : IEquatable<InlineObject5>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject5" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected InlineObject5() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineObject5" /> class.
|
||||
/// </summary>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server.</param>
|
||||
/// <param name="requiredFile">file to upload (required).</param>
|
||||
public InlineObject5(string additionalMetadata = default(string), System.IO.Stream requiredFile = default(System.IO.Stream))
|
||||
{
|
||||
// to ensure "requiredFile" is required (not null)
|
||||
this.RequiredFile = requiredFile ?? throw new ArgumentNullException("requiredFile is a required property for InlineObject5 and cannot be null");
|
||||
this.AdditionalMetadata = additionalMetadata;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Additional data to pass to server
|
||||
/// </summary>
|
||||
/// <value>Additional data to pass to server</value>
|
||||
[DataMember(Name="additionalMetadata", EmitDefaultValue=false)]
|
||||
public string AdditionalMetadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// file to upload
|
||||
/// </summary>
|
||||
/// <value>file to upload</value>
|
||||
[DataMember(Name="requiredFile", EmitDefaultValue=false)]
|
||||
public System.IO.Stream RequiredFile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class InlineObject5 {\n");
|
||||
sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n");
|
||||
sb.Append(" RequiredFile: ").Append(RequiredFile).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineObject5).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if InlineObject5 instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of InlineObject5 to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(InlineObject5 input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.AdditionalMetadata != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalMetadata.GetHashCode();
|
||||
if (this.RequiredFile != null)
|
||||
hashCode = hashCode * 59 + this.RequiredFile.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// InlineResponseDefault
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class InlineResponseDefault : IEquatable<InlineResponseDefault>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InlineResponseDefault" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_string">_string.</param>
|
||||
public InlineResponseDefault(Foo _string = default(Foo))
|
||||
{
|
||||
this.String = _string;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets String
|
||||
/// </summary>
|
||||
[DataMember(Name="string", EmitDefaultValue=false)]
|
||||
public Foo String { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class InlineResponseDefault {\n");
|
||||
sb.Append(" String: ").Append(String).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as InlineResponseDefault).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if InlineResponseDefault instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of InlineResponseDefault to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(InlineResponseDefault input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.String != null)
|
||||
hashCode = hashCode * 59 + this.String.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
/// </summary>
|
||||
/// <param name="integerProp">integerProp.</param>
|
||||
/// <param name="numberProp">numberProp.</param>
|
||||
/// <param name="booleanProp">booleanProp.</param>
|
||||
/// <param name="stringProp">stringProp.</param>
|
||||
/// <param name="dateProp">dateProp.</param>
|
||||
/// <param name="datetimeProp">datetimeProp.</param>
|
||||
/// <param name="arrayNullableProp">arrayNullableProp.</param>
|
||||
/// <param name="arrayAndItemsNullableProp">arrayAndItemsNullableProp.</param>
|
||||
/// <param name="arrayItemsNullable">arrayItemsNullable.</param>
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
public NullableClass(int? integerProp = default(int?), decimal? numberProp = default(decimal?), bool? booleanProp = default(bool?), string stringProp = default(string), DateTime? dateProp = default(DateTime?), DateTime? datetimeProp = default(DateTime?), List<Object> arrayNullableProp = default(List<Object>), List<Object> arrayAndItemsNullableProp = default(List<Object>), List<Object> arrayItemsNullable = default(List<Object>), Dictionary<string, Object> objectNullableProp = default(Dictionary<string, Object>), Dictionary<string, Object> objectAndItemsNullableProp = default(Dictionary<string, Object>), Dictionary<string, Object> objectItemsNullable = default(Dictionary<string, Object>)) : base()
|
||||
{
|
||||
this.IntegerProp = integerProp;
|
||||
this.NumberProp = numberProp;
|
||||
this.BooleanProp = booleanProp;
|
||||
this.StringProp = stringProp;
|
||||
this.DateProp = dateProp;
|
||||
this.DatetimeProp = datetimeProp;
|
||||
this.ArrayNullableProp = arrayNullableProp;
|
||||
this.ArrayAndItemsNullableProp = arrayAndItemsNullableProp;
|
||||
this.ArrayItemsNullable = arrayItemsNullable;
|
||||
this.ObjectNullableProp = objectNullableProp;
|
||||
this.ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
this.ObjectItemsNullable = objectItemsNullable;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets IntegerProp
|
||||
/// </summary>
|
||||
[DataMember(Name="integer_prop", EmitDefaultValue=true)]
|
||||
public int? IntegerProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NumberProp
|
||||
/// </summary>
|
||||
[DataMember(Name="number_prop", EmitDefaultValue=true)]
|
||||
public decimal? NumberProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BooleanProp
|
||||
/// </summary>
|
||||
[DataMember(Name="boolean_prop", EmitDefaultValue=true)]
|
||||
public bool? BooleanProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StringProp
|
||||
/// </summary>
|
||||
[DataMember(Name="string_prop", EmitDefaultValue=true)]
|
||||
public string StringProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DateProp
|
||||
/// </summary>
|
||||
[DataMember(Name="date_prop", EmitDefaultValue=true)]
|
||||
[JsonConverter(typeof(OpenAPIDateConverter))]
|
||||
public DateTime? DateProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DatetimeProp
|
||||
/// </summary>
|
||||
[DataMember(Name="datetime_prop", EmitDefaultValue=true)]
|
||||
public DateTime? DatetimeProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ArrayNullableProp
|
||||
/// </summary>
|
||||
[DataMember(Name="array_nullable_prop", EmitDefaultValue=true)]
|
||||
public List<Object> ArrayNullableProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ArrayAndItemsNullableProp
|
||||
/// </summary>
|
||||
[DataMember(Name="array_and_items_nullable_prop", EmitDefaultValue=true)]
|
||||
public List<Object> ArrayAndItemsNullableProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ArrayItemsNullable
|
||||
/// </summary>
|
||||
[DataMember(Name="array_items_nullable", EmitDefaultValue=false)]
|
||||
public List<Object> ArrayItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ObjectNullableProp
|
||||
/// </summary>
|
||||
[DataMember(Name="object_nullable_prop", EmitDefaultValue=true)]
|
||||
public Dictionary<string, Object> ObjectNullableProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ObjectAndItemsNullableProp
|
||||
/// </summary>
|
||||
[DataMember(Name="object_and_items_nullable_prop", EmitDefaultValue=true)]
|
||||
public Dictionary<string, Object> ObjectAndItemsNullableProp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ObjectItemsNullable
|
||||
/// </summary>
|
||||
[DataMember(Name="object_items_nullable", EmitDefaultValue=false)]
|
||||
public Dictionary<string, Object> ObjectItemsNullable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
sb.Append(" StringProp: ").Append(StringProp).Append("\n");
|
||||
sb.Append(" DateProp: ").Append(DateProp).Append("\n");
|
||||
sb.Append(" DatetimeProp: ").Append(DatetimeProp).Append("\n");
|
||||
sb.Append(" ArrayNullableProp: ").Append(ArrayNullableProp).Append("\n");
|
||||
sb.Append(" ArrayAndItemsNullableProp: ").Append(ArrayAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ArrayItemsNullable: ").Append(ArrayItemsNullable).Append("\n");
|
||||
sb.Append(" ObjectNullableProp: ").Append(ObjectNullableProp).Append("\n");
|
||||
sb.Append(" ObjectAndItemsNullableProp: ").Append(ObjectAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ObjectItemsNullable: ").Append(ObjectItemsNullable).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input as NullableClass).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if NullableClass instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of NullableClass to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(NullableClass input)
|
||||
{
|
||||
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.IntegerProp != null)
|
||||
hashCode = hashCode * 59 + this.IntegerProp.GetHashCode();
|
||||
if (this.NumberProp != null)
|
||||
hashCode = hashCode * 59 + this.NumberProp.GetHashCode();
|
||||
if (this.BooleanProp != null)
|
||||
hashCode = hashCode * 59 + this.BooleanProp.GetHashCode();
|
||||
if (this.StringProp != null)
|
||||
hashCode = hashCode * 59 + this.StringProp.GetHashCode();
|
||||
if (this.DateProp != null)
|
||||
hashCode = hashCode * 59 + this.DateProp.GetHashCode();
|
||||
if (this.DatetimeProp != null)
|
||||
hashCode = hashCode * 59 + this.DatetimeProp.GetHashCode();
|
||||
if (this.ArrayNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ArrayNullableProp.GetHashCode();
|
||||
if (this.ArrayAndItemsNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ArrayAndItemsNullableProp.GetHashCode();
|
||||
if (this.ArrayItemsNullable != null)
|
||||
hashCode = hashCode * 59 + this.ArrayItemsNullable.GetHashCode();
|
||||
if (this.ObjectNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ObjectNullableProp.GetHashCode();
|
||||
if (this.ObjectAndItemsNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ObjectAndItemsNullableProp.GetHashCode();
|
||||
if (this.ObjectItemsNullable != null)
|
||||
hashCode = hashCode * 59 + this.ObjectItemsNullable.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines OuterEnumDefaultValue
|
||||
/// </summary>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum OuterEnumDefaultValue
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Placed for value: placed
|
||||
/// </summary>
|
||||
[EnumMember(Value = "placed")]
|
||||
Placed = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Approved for value: approved
|
||||
/// </summary>
|
||||
[EnumMember(Value = "approved")]
|
||||
Approved = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Delivered for value: delivered
|
||||
/// </summary>
|
||||
[EnumMember(Value = "delivered")]
|
||||
Delivered = 3
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines OuterEnumInteger
|
||||
/// </summary>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum OuterEnumInteger
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum NUMBER_0 for value: 0
|
||||
/// </summary>
|
||||
[EnumMember(Value = "0")]
|
||||
NUMBER_0 = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum NUMBER_1 for value: 1
|
||||
/// </summary>
|
||||
[EnumMember(Value = "1")]
|
||||
NUMBER_1 = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum NUMBER_2 for value: 2
|
||||
/// </summary>
|
||||
[EnumMember(Value = "2")]
|
||||
NUMBER_2 = 3
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||
|
||||
namespace Org.OpenAPITools.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines OuterEnumIntegerDefaultValue
|
||||
/// </summary>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum OuterEnumIntegerDefaultValue
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum NUMBER_0 for value: 0
|
||||
/// </summary>
|
||||
[EnumMember(Value = "0")]
|
||||
NUMBER_0 = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum NUMBER_1 for value: 1
|
||||
/// </summary>
|
||||
[EnumMember(Value = "1")]
|
||||
NUMBER_1 = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum NUMBER_2 for value: 2
|
||||
/// </summary>
|
||||
[EnumMember(Value = "2")]
|
||||
NUMBER_2 = 3
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,27 +1,19 @@
|
||||
.gitignore
|
||||
Org.OpenAPITools.sln
|
||||
README.md
|
||||
docs/AdditionalPropertiesAnyType.md
|
||||
docs/AdditionalPropertiesArray.md
|
||||
docs/AdditionalPropertiesBoolean.md
|
||||
docs/AdditionalPropertiesClass.md
|
||||
docs/AdditionalPropertiesInteger.md
|
||||
docs/AdditionalPropertiesNumber.md
|
||||
docs/AdditionalPropertiesObject.md
|
||||
docs/AdditionalPropertiesString.md
|
||||
docs/Animal.md
|
||||
docs/AnotherFakeApi.md
|
||||
docs/ApiResponse.md
|
||||
docs/ArrayOfArrayOfNumberOnly.md
|
||||
docs/ArrayOfNumberOnly.md
|
||||
docs/ArrayTest.md
|
||||
docs/BigCat.md
|
||||
docs/BigCatAllOf.md
|
||||
docs/Capitalization.md
|
||||
docs/Cat.md
|
||||
docs/CatAllOf.md
|
||||
docs/Category.md
|
||||
docs/ClassModel.md
|
||||
docs/DefaultApi.md
|
||||
docs/Dog.md
|
||||
docs/DogAllOf.md
|
||||
docs/EnumArrays.md
|
||||
@@ -31,18 +23,31 @@ docs/FakeApi.md
|
||||
docs/FakeClassnameTags123Api.md
|
||||
docs/File.md
|
||||
docs/FileSchemaTestClass.md
|
||||
docs/Foo.md
|
||||
docs/FormatTest.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/List.md
|
||||
docs/MapTest.md
|
||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||
docs/Model200Response.md
|
||||
docs/ModelClient.md
|
||||
docs/Name.md
|
||||
docs/NullableClass.md
|
||||
docs/NumberOnly.md
|
||||
docs/Order.md
|
||||
docs/OuterComposite.md
|
||||
docs/OuterEnum.md
|
||||
docs/OuterEnumDefaultValue.md
|
||||
docs/OuterEnumInteger.md
|
||||
docs/OuterEnumIntegerDefaultValue.md
|
||||
docs/Pet.md
|
||||
docs/PetApi.md
|
||||
docs/ReadOnlyFirst.md
|
||||
@@ -50,13 +55,11 @@ docs/Return.md
|
||||
docs/SpecialModelName.md
|
||||
docs/StoreApi.md
|
||||
docs/Tag.md
|
||||
docs/TypeHolderDefault.md
|
||||
docs/TypeHolderExample.md
|
||||
docs/User.md
|
||||
docs/UserApi.md
|
||||
docs/XmlItem.md
|
||||
git_push.sh
|
||||
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
||||
src/Org.OpenAPITools/Api/DefaultApi.cs
|
||||
src/Org.OpenAPITools/Api/FakeApi.cs
|
||||
src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
|
||||
src/Org.OpenAPITools/Api/PetApi.cs
|
||||
@@ -77,21 +80,12 @@ src/Org.OpenAPITools/Client/ISynchronousClient.cs
|
||||
src/Org.OpenAPITools/Client/Multimap.cs
|
||||
src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
|
||||
src/Org.OpenAPITools/Client/RequestOptions.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesAnyType.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesArray.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesBoolean.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesInteger.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesNumber.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesObject.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesString.cs
|
||||
src/Org.OpenAPITools/Model/Animal.cs
|
||||
src/Org.OpenAPITools/Model/ApiResponse.cs
|
||||
src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
|
||||
src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
|
||||
src/Org.OpenAPITools/Model/ArrayTest.cs
|
||||
src/Org.OpenAPITools/Model/BigCat.cs
|
||||
src/Org.OpenAPITools/Model/BigCatAllOf.cs
|
||||
src/Org.OpenAPITools/Model/Capitalization.cs
|
||||
src/Org.OpenAPITools/Model/Cat.cs
|
||||
src/Org.OpenAPITools/Model/CatAllOf.cs
|
||||
@@ -104,25 +98,35 @@ src/Org.OpenAPITools/Model/EnumClass.cs
|
||||
src/Org.OpenAPITools/Model/EnumTest.cs
|
||||
src/Org.OpenAPITools/Model/File.cs
|
||||
src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
|
||||
src/Org.OpenAPITools/Model/Foo.cs
|
||||
src/Org.OpenAPITools/Model/FormatTest.cs
|
||||
src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
|
||||
src/Org.OpenAPITools/Model/HealthCheckResult.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject1.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject2.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject3.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject4.cs
|
||||
src/Org.OpenAPITools/Model/InlineObject5.cs
|
||||
src/Org.OpenAPITools/Model/InlineResponseDefault.cs
|
||||
src/Org.OpenAPITools/Model/List.cs
|
||||
src/Org.OpenAPITools/Model/MapTest.cs
|
||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||
src/Org.OpenAPITools/Model/Model200Response.cs
|
||||
src/Org.OpenAPITools/Model/ModelClient.cs
|
||||
src/Org.OpenAPITools/Model/Name.cs
|
||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||
src/Org.OpenAPITools/Model/Order.cs
|
||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||
src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs
|
||||
src/Org.OpenAPITools/Model/OuterEnumInteger.cs
|
||||
src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs
|
||||
src/Org.OpenAPITools/Model/Pet.cs
|
||||
src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
|
||||
src/Org.OpenAPITools/Model/Return.cs
|
||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||
src/Org.OpenAPITools/Model/Tag.cs
|
||||
src/Org.OpenAPITools/Model/TypeHolderDefault.cs
|
||||
src/Org.OpenAPITools/Model/TypeHolderExample.cs
|
||||
src/Org.OpenAPITools/Model/User.cs
|
||||
src/Org.OpenAPITools/Model/XmlItem.cs
|
||||
src/Org.OpenAPITools/Org.OpenAPITools.csproj
|
||||
|
||||
@@ -76,12 +76,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new AnotherFakeApi(config);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -104,7 +104,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*AnotherFakeApi* | [**Call123TestSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||
*FakeApi* | [**CreateXmlItem**](docs/FakeApi.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
|
||||
*DefaultApi* | [**FooGet**](docs/DefaultApi.md#fooget) | **GET** /foo |
|
||||
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
*FakeApi* | [**FakeHttpSignatureTest**](docs/FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
@@ -112,7 +114,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**TestBodyWithFileSchema**](docs/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
*FakeApi* | [**TestBodyWithQueryParams**](docs/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
*FakeApi* | [**TestClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*FakeApi* | [**TestEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||
*FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
@@ -145,21 +147,12 @@ Class | Method | HTTP request | Description
|
||||
<a name="documentation-for-models"></a>
|
||||
## Documentation for Models
|
||||
|
||||
- [Model.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
||||
- [Model.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
||||
- [Model.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
||||
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [Model.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
|
||||
- [Model.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
|
||||
- [Model.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
|
||||
- [Model.AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
|
||||
- [Model.Animal](docs/Animal.md)
|
||||
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
- [Model.ArrayTest](docs/ArrayTest.md)
|
||||
- [Model.BigCat](docs/BigCat.md)
|
||||
- [Model.BigCatAllOf](docs/BigCatAllOf.md)
|
||||
- [Model.Capitalization](docs/Capitalization.md)
|
||||
- [Model.Cat](docs/Cat.md)
|
||||
- [Model.CatAllOf](docs/CatAllOf.md)
|
||||
@@ -172,27 +165,37 @@ Class | Method | HTTP request | Description
|
||||
- [Model.EnumTest](docs/EnumTest.md)
|
||||
- [Model.File](docs/File.md)
|
||||
- [Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||
- [Model.Foo](docs/Foo.md)
|
||||
- [Model.FormatTest](docs/FormatTest.md)
|
||||
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [Model.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [Model.InlineObject](docs/InlineObject.md)
|
||||
- [Model.InlineObject1](docs/InlineObject1.md)
|
||||
- [Model.InlineObject2](docs/InlineObject2.md)
|
||||
- [Model.InlineObject3](docs/InlineObject3.md)
|
||||
- [Model.InlineObject4](docs/InlineObject4.md)
|
||||
- [Model.InlineObject5](docs/InlineObject5.md)
|
||||
- [Model.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [Model.List](docs/List.md)
|
||||
- [Model.MapTest](docs/MapTest.md)
|
||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model.Model200Response](docs/Model200Response.md)
|
||||
- [Model.ModelClient](docs/ModelClient.md)
|
||||
- [Model.Name](docs/Name.md)
|
||||
- [Model.NullableClass](docs/NullableClass.md)
|
||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||
- [Model.Order](docs/Order.md)
|
||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||
- [Model.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
|
||||
- [Model.OuterEnumInteger](docs/OuterEnumInteger.md)
|
||||
- [Model.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
|
||||
- [Model.Pet](docs/Pet.md)
|
||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [Model.Return](docs/Return.md)
|
||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||
- [Model.Tag](docs/Tag.md)
|
||||
- [Model.TypeHolderDefault](docs/TypeHolderDefault.md)
|
||||
- [Model.TypeHolderExample](docs/TypeHolderExample.md)
|
||||
- [Model.User](docs/User.md)
|
||||
- [Model.XmlItem](docs/XmlItem.md)
|
||||
|
||||
|
||||
<a name="documentation-for-authorization"></a>
|
||||
@@ -212,11 +215,20 @@ Class | Method | HTTP request | Description
|
||||
- **API key parameter name**: api_key_query
|
||||
- **Location**: URL query string
|
||||
|
||||
<a name="bearer_test"></a>
|
||||
### bearer_test
|
||||
|
||||
- **Type**: Bearer Authentication
|
||||
|
||||
<a name="http_basic_test"></a>
|
||||
### http_basic_test
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
|
||||
<a name="http_signature_test"></a>
|
||||
### http_signature_test
|
||||
|
||||
|
||||
<a name="petstore_auth"></a>
|
||||
### petstore_auth
|
||||
|
||||
|
||||
@@ -3,17 +3,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MapString** | **Dictionary<string, string>** | | [optional]
|
||||
**MapNumber** | **Dictionary<string, decimal>** | | [optional]
|
||||
**MapInteger** | **Dictionary<string, int>** | | [optional]
|
||||
**MapBoolean** | **Dictionary<string, bool>** | | [optional]
|
||||
**MapArrayInteger** | **Dictionary<string, List<int>>** | | [optional]
|
||||
**MapArrayAnytype** | **Dictionary<string, List<Object>>** | | [optional]
|
||||
**MapMapString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
**MapMapAnytype** | **Dictionary<string, Dictionary<string, Object>>** | | [optional]
|
||||
**Anytype1** | **Object** | | [optional]
|
||||
**Anytype2** | **Object** | | [optional]
|
||||
**Anytype3** | **Object** | | [optional]
|
||||
**MapProperty** | **Dictionary<string, string>** | | [optional]
|
||||
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testspecialtags"></a>
|
||||
# **Call123TestSpecialTags**
|
||||
> ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
|
||||
To test special tags
|
||||
|
||||
@@ -32,12 +32,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new AnotherFakeApi(config);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -55,7 +55,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
# Org.OpenAPITools.Api.DefaultApi
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**FooGet**](DefaultApi.md#fooget) | **GET** /foo |
|
||||
|
||||
|
||||
<a name="fooget"></a>
|
||||
# **FooGet**
|
||||
> InlineResponseDefault FooGet ()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class FooGetExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new DefaultApi(config);
|
||||
|
||||
try
|
||||
{
|
||||
InlineResponseDefault result = apiInstance.FooGet();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling DefaultApi.FooGet: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponseDefault**](InlineResponseDefault.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **0** | response | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
@@ -8,6 +8,9 @@ Name | Type | Description | Notes
|
||||
**EnumInteger** | **int** | | [optional]
|
||||
**EnumNumber** | **double** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
**OuterEnumInteger** | **OuterEnumInteger** | | [optional]
|
||||
**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
|
||||
**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**CreateXmlItem**](FakeApi.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
|
||||
[**FakeHealthGet**](FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
[**FakeHttpSignatureTest**](FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
[**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
@@ -12,7 +13,7 @@ Method | HTTP request | Description
|
||||
[**TestBodyWithFileSchema**](FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
[**TestBodyWithQueryParams**](FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
[**TestClientModel**](FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
[**TestEnumParameters**](FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||
[**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
[**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
@@ -20,13 +21,11 @@ Method | HTTP request | Description
|
||||
[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
|
||||
|
||||
<a name="createxmlitem"></a>
|
||||
# **CreateXmlItem**
|
||||
> void CreateXmlItem (XmlItem xmlItem)
|
||||
<a name="fakehealthget"></a>
|
||||
# **FakeHealthGet**
|
||||
> HealthCheckResult FakeHealthGet ()
|
||||
|
||||
creates an XmlItem
|
||||
|
||||
this route creates an XmlItem
|
||||
Health check endpoint
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
@@ -38,23 +37,90 @@ using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class CreateXmlItemExample
|
||||
public class FakeHealthGetExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var xmlItem = new XmlItem(); // XmlItem | XmlItem Body
|
||||
|
||||
try
|
||||
{
|
||||
// creates an XmlItem
|
||||
apiInstance.CreateXmlItem(xmlItem);
|
||||
// Health check endpoint
|
||||
HealthCheckResult result = apiInstance.FakeHealthGet();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.CreateXmlItem: " + e.Message );
|
||||
Debug.Print("Exception when calling FakeApi.FakeHealthGet: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**HealthCheckResult**](HealthCheckResult.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | The instance started successfully | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
<a name="fakehttpsignaturetest"></a>
|
||||
# **FakeHttpSignatureTest**
|
||||
> void FakeHttpSignatureTest (Pet pet, string query1 = null, string header1 = null)
|
||||
|
||||
test http signature authentication
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public class FakeHttpSignatureTestExample
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
|
||||
var apiInstance = new FakeApi(config);
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var query1 = query1_example; // string | query parameter (optional)
|
||||
var header1 = header1_example; // string | header parameter (optional)
|
||||
|
||||
try
|
||||
{
|
||||
// test http signature authentication
|
||||
apiInstance.FakeHttpSignatureTest(pet, query1, header1);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.FakeHttpSignatureTest: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
@@ -67,7 +133,9 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body |
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**query1** | **string**| query parameter | [optional]
|
||||
**header1** | **string**| header parameter | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -75,17 +143,17 @@ void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[http_signature_test](../README.md#http_signature_test)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
|
||||
- **Content-Type**: application/json, application/xml
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **200** | The instance started successfully | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
@@ -148,7 +216,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
@@ -160,7 +228,7 @@ No authorization required
|
||||
|
||||
<a name="fakeoutercompositeserialize"></a>
|
||||
# **FakeOuterCompositeSerialize**
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
|
||||
|
||||
|
||||
@@ -183,11 +251,11 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -205,7 +273,7 @@ namespace Example
|
||||
|
||||
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
|
||||
|
||||
@@ -217,7 +285,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
@@ -286,7 +354,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
@@ -355,7 +423,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
@@ -367,7 +435,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithfileschema"></a>
|
||||
# **TestBodyWithFileSchema**
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
|
||||
|
||||
|
||||
@@ -390,11 +458,11 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithFileSchema(body);
|
||||
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -411,7 +479,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -435,7 +503,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithqueryparams"></a>
|
||||
# **TestBodyWithQueryParams**
|
||||
> void TestBodyWithQueryParams (string query, User body)
|
||||
> void TestBodyWithQueryParams (string query, User user)
|
||||
|
||||
|
||||
|
||||
@@ -457,11 +525,11 @@ namespace Example
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var query = query_example; // string |
|
||||
var body = new User(); // User |
|
||||
var user = new User(); // User |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParams(query, body);
|
||||
apiInstance.TestBodyWithQueryParams(query, user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -479,7 +547,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **string**| |
|
||||
**body** | [**User**](User.md)| |
|
||||
**user** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -503,7 +571,7 @@ No authorization required
|
||||
|
||||
<a name="testclientmodel"></a>
|
||||
# **TestClientModel**
|
||||
> ModelClient TestClientModel (ModelClient body)
|
||||
> ModelClient TestClientModel (ModelClient modelClient)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@@ -526,12 +594,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test \"client\" model
|
||||
ModelClient result = apiInstance.TestClientModel(body);
|
||||
ModelClient result = apiInstance.TestClientModel(modelClient);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -549,7 +617,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -575,9 +643,9 @@ No authorization required
|
||||
# **TestEndpointParameters**
|
||||
> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
### Example
|
||||
```csharp
|
||||
@@ -617,7 +685,7 @@ namespace Example
|
||||
|
||||
try
|
||||
{
|
||||
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -779,6 +847,9 @@ namespace Example
|
||||
{
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure Bearer token for authorization: bearer_test
|
||||
config.AccessToken = "YOUR_BEARER_TOKEN";
|
||||
|
||||
var apiInstance = new FakeApi(config);
|
||||
var requiredStringGroup = 56; // int | Required String in group parameters
|
||||
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
||||
@@ -820,7 +891,7 @@ void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[bearer_test](../README.md#bearer_test)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -836,7 +907,7 @@ No authorization required
|
||||
|
||||
<a name="testinlineadditionalproperties"></a>
|
||||
# **TestInlineAdditionalProperties**
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@@ -857,12 +928,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
|
||||
try
|
||||
{
|
||||
// test inline additionalProperties
|
||||
apiInstance.TestInlineAdditionalProperties(param);
|
||||
apiInstance.TestInlineAdditionalProperties(requestBody);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -879,7 +950,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**param** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
**requestBody** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testclassname"></a>
|
||||
# **TestClassname**
|
||||
> ModelClient TestClassname (ModelClient body)
|
||||
> ModelClient TestClassname (ModelClient modelClient)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@@ -37,12 +37,12 @@ namespace Example
|
||||
// config.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||
|
||||
var apiInstance = new FakeClassnameTags123Api(config);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test class name in snake case
|
||||
ModelClient result = apiInstance.TestClassname(body);
|
||||
ModelClient result = apiInstance.TestClassname(modelClient);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -60,7 +60,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.Foo
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Bar** | **string** | | [optional] [default to "bar"]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -16,7 +16,8 @@ Name | Type | Description | Notes
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**Password** | **string** | |
|
||||
**BigDecimal** | **decimal** | | [optional]
|
||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
|
||||
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.HealthCheckResult
|
||||
Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**NullableMessage** | **string** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | **string** | Updated name of the pet | [optional]
|
||||
**Status** | **string** | Updated status of the pet | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject1
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
|
||||
**File** | **System.IO.Stream** | file to upload | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject2
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**EnumFormStringArray** | **List<string>** | Form parameter enum test (string array) | [optional]
|
||||
**EnumFormString** | **string** | Form parameter enum test (string) | [optional] [default to EnumFormStringEnum.Efg]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# Org.OpenAPITools.Model.InlineObject3
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int** | None | [optional]
|
||||
**Int32** | **int** | None | [optional]
|
||||
**Int64** | **long** | None | [optional]
|
||||
**Number** | **decimal** | None |
|
||||
**Float** | **float** | None | [optional]
|
||||
**Double** | **double** | None |
|
||||
**String** | **string** | None | [optional]
|
||||
**PatternWithoutDelimiter** | **string** | None |
|
||||
**Byte** | **byte[]** | None |
|
||||
**Binary** | **System.IO.Stream** | None | [optional]
|
||||
**Date** | **DateTime** | None | [optional]
|
||||
**DateTime** | **DateTime** | None | [optional]
|
||||
**Password** | **string** | None | [optional]
|
||||
**Callback** | **string** | None | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject4
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Param** | **string** | field1 |
|
||||
**Param2** | **string** | field2 |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Org.OpenAPITools.Model.InlineObject5
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
|
||||
**RequiredFile** | **System.IO.Stream** | file to upload |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Org.OpenAPITools.Model.InlineResponseDefault
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**String** | [**Foo**](Foo.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# Org.OpenAPITools.Model.NullableClass
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**IntegerProp** | **int?** | | [optional]
|
||||
**NumberProp** | **decimal?** | | [optional]
|
||||
**BooleanProp** | **bool?** | | [optional]
|
||||
**StringProp** | **string** | | [optional]
|
||||
**DateProp** | **DateTime?** | | [optional]
|
||||
**DatetimeProp** | **DateTime?** | | [optional]
|
||||
**ArrayNullableProp** | **List<Object>** | | [optional]
|
||||
**ArrayAndItemsNullableProp** | **List<Object>** | | [optional]
|
||||
**ArrayItemsNullable** | **List<Object>** | | [optional]
|
||||
**ObjectNullableProp** | **Dictionary<string, Object>** | | [optional]
|
||||
**ObjectAndItemsNullableProp** | **Dictionary<string, Object>** | | [optional]
|
||||
**ObjectItemsNullable** | **Dictionary<string, Object>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Org.OpenAPITools.Model.OuterEnumDefaultValue
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Org.OpenAPITools.Model.OuterEnumInteger
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Org.OpenAPITools.Model.OuterEnumIntegerDefaultValue
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addpet"></a>
|
||||
# **AddPet**
|
||||
> void AddPet (Pet body)
|
||||
> void AddPet (Pet pet)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@@ -41,12 +41,12 @@ namespace Example
|
||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(config);
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(body);
|
||||
apiInstance.AddPet(pet);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ namespace Example
|
||||
|
||||
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
|
||||
|
||||
@@ -81,7 +81,6 @@ void (empty response body)
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **405** | Invalid input | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
@@ -154,7 +153,6 @@ void (empty response body)
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid pet value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
@@ -386,7 +384,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatepet"></a>
|
||||
# **UpdatePet**
|
||||
> void UpdatePet (Pet body)
|
||||
> void UpdatePet (Pet pet)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@@ -410,12 +408,12 @@ namespace Example
|
||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(config);
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Update an existing pet
|
||||
apiInstance.UpdatePet(body);
|
||||
apiInstance.UpdatePet(pet);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -432,7 +430,7 @@ namespace Example
|
||||
|
||||
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
|
||||
|
||||
@@ -450,7 +448,6 @@ void (empty response body)
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid ID supplied | - |
|
||||
| **404** | Pet not found | - |
|
||||
| **405** | Validation exception | - |
|
||||
|
||||
@@ -225,7 +225,7 @@ No authorization required
|
||||
|
||||
<a name="placeorder"></a>
|
||||
# **PlaceOrder**
|
||||
> Order PlaceOrder (Order body)
|
||||
> Order PlaceOrder (Order order)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@@ -246,12 +246,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new StoreApi(config);
|
||||
var body = new Order(); // Order | order placed for purchasing the pet
|
||||
var order = new Order(); // Order | order placed for purchasing the pet
|
||||
|
||||
try
|
||||
{
|
||||
// Place an order for a pet
|
||||
Order result = apiInstance.PlaceOrder(body);
|
||||
Order result = apiInstance.PlaceOrder(order);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -269,7 +269,7 @@ namespace Example
|
||||
|
||||
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
|
||||
|
||||
@@ -281,7 +281,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
### HTTP response details
|
||||
|
||||
@@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="createuser"></a>
|
||||
# **CreateUser**
|
||||
> void CreateUser (User body)
|
||||
> void CreateUser (User user)
|
||||
|
||||
Create user
|
||||
|
||||
@@ -39,12 +39,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var body = new User(); // User | Created user object
|
||||
var user = new User(); // User | Created user object
|
||||
|
||||
try
|
||||
{
|
||||
// Create user
|
||||
apiInstance.CreateUser(body);
|
||||
apiInstance.CreateUser(user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -73,7 +73,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
@@ -85,7 +85,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswitharrayinput"></a>
|
||||
# **CreateUsersWithArrayInput**
|
||||
> void CreateUsersWithArrayInput (List<User> body)
|
||||
> void CreateUsersWithArrayInput (List<User> user)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@@ -106,12 +106,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithArrayInput(body);
|
||||
apiInstance.CreateUsersWithArrayInput(user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -128,7 +128,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
**user** | [**List<User>**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -140,7 +140,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
@@ -152,7 +152,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswithlistinput"></a>
|
||||
# **CreateUsersWithListInput**
|
||||
> void CreateUsersWithListInput (List<User> body)
|
||||
> void CreateUsersWithListInput (List<User> user)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@@ -173,12 +173,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithListInput(body);
|
||||
apiInstance.CreateUsersWithListInput(user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -195,7 +195,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
**user** | [**List<User>**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -207,7 +207,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
@@ -493,7 +493,7 @@ No authorization required
|
||||
|
||||
<a name="updateuser"></a>
|
||||
# **UpdateUser**
|
||||
> void UpdateUser (string username, User body)
|
||||
> void UpdateUser (string username, User user)
|
||||
|
||||
Updated user
|
||||
|
||||
@@ -517,12 +517,12 @@ namespace Example
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var username = username_example; // string | name that need to be deleted
|
||||
var body = new User(); // User | Updated user object
|
||||
var user = new User(); // User | Updated user object
|
||||
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUser(username, body);
|
||||
apiInstance.UpdateUser(username, user);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -540,7 +540,7 @@ namespace Example
|
||||
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
|
||||
|
||||
@@ -552,7 +552,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using RestSharp;
|
||||
using Xunit;
|
||||
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing DefaultApi
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the API endpoint.
|
||||
/// </remarks>
|
||||
public class DefaultApiTests : IDisposable
|
||||
{
|
||||
private DefaultApi instance;
|
||||
|
||||
public DefaultApiTests()
|
||||
{
|
||||
instance = new DefaultApi();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of DefaultApi
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test 'IsInstanceOfType' DefaultApi
|
||||
//Assert.IsType(typeof(DefaultApi), instance, "instance is a DefaultApi");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test FooGet
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FooGetTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//var response = instance.FooGet();
|
||||
//Assert.IsType<InlineResponseDefault> (response, "response is InlineResponseDefault");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing Foo
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class FooTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for Foo
|
||||
//private Foo instance;
|
||||
|
||||
public FooTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of Foo
|
||||
//instance = new Foo();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of Foo
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FooInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" Foo
|
||||
//Assert.IsInstanceOfType<Foo> (instance, "variable 'instance' is a Foo");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Bar'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BarTest()
|
||||
{
|
||||
// TODO unit test for the property 'Bar'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing HealthCheckResult
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class HealthCheckResultTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for HealthCheckResult
|
||||
//private HealthCheckResult instance;
|
||||
|
||||
public HealthCheckResultTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of HealthCheckResult
|
||||
//instance = new HealthCheckResult();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of HealthCheckResult
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void HealthCheckResultInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" HealthCheckResult
|
||||
//Assert.IsInstanceOfType<HealthCheckResult> (instance, "variable 'instance' is a HealthCheckResult");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'NullableMessage'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NullableMessageTest()
|
||||
{
|
||||
// TODO unit test for the property 'NullableMessage'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject1
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject1Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject1
|
||||
//private InlineObject1 instance;
|
||||
|
||||
public InlineObject1Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject1
|
||||
//instance = new InlineObject1();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject1
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject1InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject1
|
||||
//Assert.IsInstanceOfType<InlineObject1> (instance, "variable 'instance' is a InlineObject1");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'AdditionalMetadata'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AdditionalMetadataTest()
|
||||
{
|
||||
// TODO unit test for the property 'AdditionalMetadata'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'File'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FileTest()
|
||||
{
|
||||
// TODO unit test for the property 'File'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject2
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject2Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject2
|
||||
//private InlineObject2 instance;
|
||||
|
||||
public InlineObject2Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject2
|
||||
//instance = new InlineObject2();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject2
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject2InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject2
|
||||
//Assert.IsInstanceOfType<InlineObject2> (instance, "variable 'instance' is a InlineObject2");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'EnumFormStringArray'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void EnumFormStringArrayTest()
|
||||
{
|
||||
// TODO unit test for the property 'EnumFormStringArray'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'EnumFormString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void EnumFormStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'EnumFormString'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject3
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject3Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject3
|
||||
//private InlineObject3 instance;
|
||||
|
||||
public InlineObject3Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject3
|
||||
//instance = new InlineObject3();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject3
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject3InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject3
|
||||
//Assert.IsInstanceOfType<InlineObject3> (instance, "variable 'instance' is a InlineObject3");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Integer'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IntegerTest()
|
||||
{
|
||||
// TODO unit test for the property 'Integer'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int32'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Int32Test()
|
||||
{
|
||||
// TODO unit test for the property 'Int32'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int64'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Int64Test()
|
||||
{
|
||||
// TODO unit test for the property 'Int64'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Number'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NumberTest()
|
||||
{
|
||||
// TODO unit test for the property 'Number'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Float'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FloatTest()
|
||||
{
|
||||
// TODO unit test for the property 'Float'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Double'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DoubleTest()
|
||||
{
|
||||
// TODO unit test for the property 'Double'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'String'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringTest()
|
||||
{
|
||||
// TODO unit test for the property 'String'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'PatternWithoutDelimiter'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PatternWithoutDelimiterTest()
|
||||
{
|
||||
// TODO unit test for the property 'PatternWithoutDelimiter'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Byte'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ByteTest()
|
||||
{
|
||||
// TODO unit test for the property 'Byte'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Binary'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BinaryTest()
|
||||
{
|
||||
// TODO unit test for the property 'Binary'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Date'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DateTest()
|
||||
{
|
||||
// TODO unit test for the property 'Date'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DateTime'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DateTimeTest()
|
||||
{
|
||||
// TODO unit test for the property 'DateTime'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Password'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PasswordTest()
|
||||
{
|
||||
// TODO unit test for the property 'Password'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Callback'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CallbackTest()
|
||||
{
|
||||
// TODO unit test for the property 'Callback'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject4
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject4Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject4
|
||||
//private InlineObject4 instance;
|
||||
|
||||
public InlineObject4Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject4
|
||||
//instance = new InlineObject4();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject4
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject4InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject4
|
||||
//Assert.IsInstanceOfType<InlineObject4> (instance, "variable 'instance' is a InlineObject4");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Param'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ParamTest()
|
||||
{
|
||||
// TODO unit test for the property 'Param'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Param2'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Param2Test()
|
||||
{
|
||||
// TODO unit test for the property 'Param2'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject5
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObject5Tests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject5
|
||||
//private InlineObject5 instance;
|
||||
|
||||
public InlineObject5Tests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject5
|
||||
//instance = new InlineObject5();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject5
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObject5InstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject5
|
||||
//Assert.IsInstanceOfType<InlineObject5> (instance, "variable 'instance' is a InlineObject5");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'AdditionalMetadata'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AdditionalMetadataTest()
|
||||
{
|
||||
// TODO unit test for the property 'AdditionalMetadata'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'RequiredFile'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void RequiredFileTest()
|
||||
{
|
||||
// TODO unit test for the property 'RequiredFile'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineObject
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineObjectTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineObject
|
||||
//private InlineObject instance;
|
||||
|
||||
public InlineObjectTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineObject
|
||||
//instance = new InlineObject();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineObject
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineObjectInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineObject
|
||||
//Assert.IsInstanceOfType<InlineObject> (instance, "variable 'instance' is a InlineObject");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NameTest()
|
||||
{
|
||||
// TODO unit test for the property 'Name'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Status'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StatusTest()
|
||||
{
|
||||
// TODO unit test for the property 'Status'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing InlineResponseDefault
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class InlineResponseDefaultTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for InlineResponseDefault
|
||||
//private InlineResponseDefault instance;
|
||||
|
||||
public InlineResponseDefaultTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of InlineResponseDefault
|
||||
//instance = new InlineResponseDefault();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of InlineResponseDefault
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void InlineResponseDefaultInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" InlineResponseDefault
|
||||
//Assert.IsInstanceOfType<InlineResponseDefault> (instance, "variable 'instance' is a InlineResponseDefault");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'String'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringTest()
|
||||
{
|
||||
// TODO unit test for the property 'String'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing NullableClass
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class NullableClassTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for NullableClass
|
||||
//private NullableClass instance;
|
||||
|
||||
public NullableClassTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of NullableClass
|
||||
//instance = new NullableClass();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of NullableClass
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NullableClassInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" NullableClass
|
||||
//Assert.IsInstanceOfType<NullableClass> (instance, "variable 'instance' is a NullableClass");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'IntegerProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IntegerPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'IntegerProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'NumberProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NumberPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'NumberProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'BooleanProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BooleanPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'BooleanProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'StringProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'StringProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DateProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DatePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'DateProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DatetimeProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DatetimePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'DatetimeProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayAndItemsNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayAndItemsNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayAndItemsNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayItemsNullable'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayItemsNullableTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayItemsNullable'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ObjectNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ObjectNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectAndItemsNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ObjectAndItemsNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ObjectAndItemsNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectItemsNullable'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ObjectItemsNullableTest()
|
||||
{
|
||||
// TODO unit test for the property 'ObjectItemsNullable'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Xunit;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing OuterEnumDefaultValue
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
public class OuterEnumDefaultValueTests : IDisposable
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for OuterEnumDefaultValue
|
||||
//private OuterEnumDefaultValue instance;
|
||||
|
||||
public OuterEnumDefaultValueTests()
|
||||
{
|
||||
// TODO uncomment below to create an instance of OuterEnumDefaultValue
|
||||
//instance = new OuterEnumDefaultValue();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// Cleanup when everything is done.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of OuterEnumDefaultValue
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OuterEnumDefaultValueInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" OuterEnumDefaultValue
|
||||
//Assert.IsInstanceOfType<OuterEnumDefaultValue> (instance, "variable 'instance' is a OuterEnumDefaultValue");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user