diff --git a/bin/configs/csharp-OpenAPIClient.yaml b/bin/configs/csharp-OpenAPIClient.yaml
index 64800f8f78c5..23b32d3c9fc1 100644
--- a/bin/configs/csharp-OpenAPIClient.yaml
+++ b/bin/configs/csharp-OpenAPIClient.yaml
@@ -1,5 +1,5 @@
generatorName: csharp
outputDir: samples/client/petstore/csharp/OpenAPIClient
-inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
additionalProperties:
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
diff --git a/bin/configs/csharp-netcore-OpenAPIClient.yaml b/bin/configs/csharp-netcore-OpenAPIClient.yaml
index 0f2daf28a283..22734fef4542 100644
--- a/bin/configs/csharp-netcore-OpenAPIClient.yaml
+++ b/bin/configs/csharp-netcore-OpenAPIClient.yaml
@@ -1,6 +1,6 @@
generatorName: csharp-netcore
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient
-inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
additionalProperties:
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
diff --git a/bin/configs/csharp-netcore-OpenAPIClientCore.yaml b/bin/configs/csharp-netcore-OpenAPIClientCore.yaml
index 1d710bbf20c9..51cc97755d86 100644
--- a/bin/configs/csharp-netcore-OpenAPIClientCore.yaml
+++ b/bin/configs/csharp-netcore-OpenAPIClientCore.yaml
@@ -1,6 +1,6 @@
generatorName: csharp-netcore
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClientCore
-inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
additionalProperties:
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/FILES
index 204de9da92aa..9c04f2ea9cc1 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/FILES
@@ -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
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/README.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/README.md
index 50f8cc42c91e..395d72b2dd67 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/README.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/README.md
@@ -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
## 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)
@@ -200,11 +203,20 @@ Class | Method | HTTP request | Description
- **API key parameter name**: api_key_query
- **Location**: URL query string
+
+### bearer_test
+
+- **Type**: Bearer Authentication
+
### http_basic_test
- **Type**: HTTP basic authentication
+
+### http_signature_test
+
+
### petstore_auth
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesClass.md
index d5e48bf9a628..057f5bd65dfc 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AdditionalPropertiesClass.md
@@ -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)
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AnotherFakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AnotherFakeApi.md
index 838b304529fb..494fe14c5e68 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/AnotherFakeApi.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **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
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/DefaultApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/DefaultApi.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/DefaultApi.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/DefaultApi.md
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/EnumTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/EnumTest.md
index 8bb7c4bab6fa..5a6544a5172a 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/EnumTest.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/EnumTest.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)
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeApi.md
index e1fcf6539731..6977efae528f 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeApi.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeApi.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,75 @@ Method | HTTP request | Description
[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
-
-# **CreateXmlItem**
-> void CreateXmlItem (XmlItem xmlItem)
+
+# **FakeHealthGet**
+> HealthCheckResult FakeHealthGet ()
-creates an XmlItem
+Health check endpoint
-this route creates an XmlItem
+### 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 FakeHealthGetExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new FakeApi(config);
+
+ try
+ {
+ // Health check endpoint
+ HealthCheckResult result = apiInstance.FakeHealthGet();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ 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)
+
+
+# **FakeHttpSignatureTest**
+> void FakeHttpSignatureTest (Pet pet, string query1 = null, string header1 = null)
+
+test http signature authentication
### Example
```csharp
@@ -38,23 +101,26 @@ using Org.OpenAPITools.Model;
namespace Example
{
- public class CreateXmlItemExample
+ 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 xmlItem = new XmlItem(); // XmlItem | XmlItem Body
+ 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
{
- // creates an XmlItem
- apiInstance.CreateXmlItem(xmlItem);
+ // test http signature authentication
+ apiInstance.FakeHttpSignatureTest(pet, query1, header1);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling FakeApi.CreateXmlItem: " + e.Message );
+ 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
# **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
# **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
# **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
# **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
# **TestInlineAdditionalProperties**
-> void TestInlineAdditionalProperties (Dictionary param)
+> void TestInlineAdditionalProperties (Dictionary 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(); // Dictionary | request body
+ var requestBody = new Dictionary(); // Dictionary | 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
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeClassnameTags123Api.md
index 0eb3b10acec4..2a148644cc5b 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FakeClassnameTags123Api.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **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
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/Foo.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Foo.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/Foo.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/Foo.md
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FormatTest.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FormatTest.md
index 8a7a6a7793d2..e996de5ab6b4 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FormatTest.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/FormatTest.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)
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/HealthCheckResult.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/HealthCheckResult.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/HealthCheckResult.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/HealthCheckResult.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject1.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject1.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject1.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject1.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject2.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject2.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject2.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject2.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject3.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject3.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject3.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject3.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject4.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject4.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject4.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject4.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject5.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject5.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject5.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineObject5.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineResponseDefault.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineResponseDefault.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineResponseDefault.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/InlineResponseDefault.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/NullableClass.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/NullableClass.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/NullableClass.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/NullableClass.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumDefaultValue.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumDefaultValue.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumDefaultValue.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumDefaultValue.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumInteger.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumInteger.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumInteger.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumInteger.md
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumIntegerDefaultValue.md
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumIntegerDefaultValue.md
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/docs/OuterEnumIntegerDefaultValue.md
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/PetApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/PetApi.md
index 23ccf5ec90fa..70e0df04f4e9 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/PetApi.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/PetApi.md
@@ -17,7 +17,7 @@ Method | HTTP request | Description
# **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
# **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 | - |
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/StoreApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/StoreApi.md
index 8be6beb2be6e..c0ed9ea43800 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/StoreApi.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/StoreApi.md
@@ -225,7 +225,7 @@ No authorization required
# **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
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/UserApi.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/UserApi.md
index b546df8686d0..73b2c545a543 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/UserApi.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/UserApi.md
@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **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
# **CreateUsersWithArrayInput**
-> void CreateUsersWithArrayInput (List body)
+> void CreateUsersWithArrayInput (List 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(); // List | List of user object
+ var user = new List(); // List | 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
# **CreateUsersWithListInput**
-> void CreateUsersWithListInput (List body)
+> void CreateUsersWithListInput (List 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(); // List | List of user object
+ var user = new List(); // List | 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
# **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
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FooTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FooTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/FooTests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject3Tests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject4Tests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObject5Tests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/InlineResponseDefaultTests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs
similarity index 100%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
index f257655f2f67..ae1fc5be704c 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
@@ -34,9 +34,9 @@ public interface IAnotherFakeApiSync : IApiAccessor
/// To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ModelClient
- ModelClient Call123TestSpecialTags (ModelClient body);
+ ModelClient Call123TestSpecialTags (ModelClient modelClient);
///
/// To test special tags
@@ -45,9 +45,9 @@ public interface IAnotherFakeApiSync : IApiAccessor
/// To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ApiResponse of ModelClient
- ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient body);
+ ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient);
#endregion Synchronous Operations
}
@@ -64,10 +64,10 @@ public interface IAnotherFakeApiAsync : IApiAccessor
/// To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Cancellation Token to cancel the request.
/// Task of ModelClient
- System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// To test special tags
@@ -76,10 +76,10 @@ public interface IAnotherFakeApiAsync : IApiAccessor
/// To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (ModelClient)
- System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -204,11 +204,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory
/// To test special tags To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ModelClient
- public ModelClient Call123TestSpecialTags (ModelClient body)
+ public ModelClient Call123TestSpecialTags (ModelClient modelClient)
{
- Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(body);
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient);
return localVarResponse.Data;
}
@@ -216,13 +216,13 @@ public ModelClient Call123TestSpecialTags (ModelClient body)
/// To test special tags To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ApiResponse of ModelClient
- 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 @@ public Org.OpenAPITools.Client.ApiResponse< ModelClient > Call123TestSpecialTags
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 @@ public Org.OpenAPITools.Client.ApiResponse< ModelClient > Call123TestSpecialTags
/// To test special tags To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Cancellation Token to cancel the request.
/// Task of ModelClient
- public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(body, cancellationToken);
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken);
return localVarResponse.Data;
}
@@ -273,14 +273,14 @@ public Org.OpenAPITools.Client.ApiResponse< ModelClient > Call123TestSpecialTags
/// To test special tags To test special tags and operation ID starting with number
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (ModelClient)
- public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync (ModelClient body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> 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 @@ public Org.OpenAPITools.Client.ApiResponse< ModelClient > Call123TestSpecialTags
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
diff --git a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs
similarity index 88%
rename from samples/openapi3/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs
rename to samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs
index 96611d8d8e60..9c5a50fe07cd 100644
--- a/samples/openapi3/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -62,8 +62,9 @@ public interface IDefaultApiAsync : IApiAccessor
///
///
/// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
/// Task of InlineResponseDefault
- System.Threading.Tasks.Task FooGetAsync ();
+ System.Threading.Tasks.Task FooGetAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
///
@@ -72,8 +73,9 @@ public interface IDefaultApiAsync : IApiAccessor
///
///
/// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
/// Task of ApiResponse (InlineResponseDefault)
- System.Threading.Tasks.Task> FooGetAsyncWithHttpInfo ();
+ System.Threading.Tasks.Task> FooGetWithHttpInfoAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -246,20 +248,21 @@ public Org.OpenAPITools.Client.ApiResponse< InlineResponseDefault > FooGetWithHt
///
///
/// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
/// Task of InlineResponseDefault
- public async System.Threading.Tasks.Task FooGetAsync ()
+ public async System.Threading.Tasks.Task FooGetAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetAsyncWithHttpInfo();
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken);
return localVarResponse.Data;
-
}
///
///
///
/// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
/// Task of ApiResponse (InlineResponseDefault)
- public async System.Threading.Tasks.Task> FooGetAsyncWithHttpInfo ()
+ public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
@@ -271,18 +274,19 @@ public async System.Threading.Tasks.Task FooGetAsync ()
String[] _accepts = new String[] {
"application/json"
};
-
- foreach (var _contentType in _contentTypes)
- localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
-
- foreach (var _accept in _accepts)
- localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
+
+
+ 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("/foo", localVarRequestOptions, this.Configuration);
+ var localVarResponse = await this.AsynchronousClient.GetAsync("/foo", localVarRequestOptions, this.Configuration, cancellationToken);
if (this.ExceptionFactory != null)
{
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs
index b53adce83460..7e70b15c5af8 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs
@@ -28,26 +28,49 @@ public interface IFakeApiSync : IApiAccessor
{
#region Synchronous Operations
///
- /// creates an XmlItem
+ /// Health check endpoint
///
///
- /// this route creates an XmlItem
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// HealthCheckResult
+ HealthCheckResult FakeHealthGet ();
+
+ ///
+ /// Health check endpoint
+ ///
+ ///
+ ///
///
/// Thrown when fails to make API call
- /// XmlItem Body
+ /// ApiResponse of HealthCheckResult
+ ApiResponse FakeHealthGetWithHttpInfo ();
+ ///
+ /// test http signature authentication
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Pet object that needs to be added to the store
+ /// query parameter (optional)
+ /// header parameter (optional)
///
- void CreateXmlItem (XmlItem xmlItem);
+ void FakeHttpSignatureTest (Pet pet, string query1 = default(string), string header1 = default(string));
///
- /// creates an XmlItem
+ /// test http signature authentication
///
///
- /// this route creates an XmlItem
+ ///
///
/// Thrown when fails to make API call
- /// XmlItem Body
+ /// Pet object that needs to be added to the store
+ /// query parameter (optional)
+ /// header parameter (optional)
/// ApiResponse of Object(void)
- ApiResponse