mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 06:30:52 +00:00
[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:
parent
780b55a518
commit
1ee57ea853
@ -1,5 +1,5 @@
|
|||||||
generatorName: csharp
|
generatorName: csharp
|
||||||
outputDir: samples/client/petstore/csharp/OpenAPIClient
|
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:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
generatorName: csharp-netcore
|
generatorName: csharp-netcore
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient
|
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
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
generatorName: csharp-netcore
|
generatorName: csharp-netcore
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClientCore
|
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
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
@ -1,27 +1,19 @@
|
|||||||
.gitignore
|
.gitignore
|
||||||
Org.OpenAPITools.sln
|
Org.OpenAPITools.sln
|
||||||
README.md
|
README.md
|
||||||
docs/AdditionalPropertiesAnyType.md
|
|
||||||
docs/AdditionalPropertiesArray.md
|
|
||||||
docs/AdditionalPropertiesBoolean.md
|
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/AdditionalPropertiesInteger.md
|
|
||||||
docs/AdditionalPropertiesNumber.md
|
|
||||||
docs/AdditionalPropertiesObject.md
|
|
||||||
docs/AdditionalPropertiesString.md
|
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
docs/AnotherFakeApi.md
|
docs/AnotherFakeApi.md
|
||||||
docs/ApiResponse.md
|
docs/ApiResponse.md
|
||||||
docs/ArrayOfArrayOfNumberOnly.md
|
docs/ArrayOfArrayOfNumberOnly.md
|
||||||
docs/ArrayOfNumberOnly.md
|
docs/ArrayOfNumberOnly.md
|
||||||
docs/ArrayTest.md
|
docs/ArrayTest.md
|
||||||
docs/BigCat.md
|
|
||||||
docs/BigCatAllOf.md
|
|
||||||
docs/Capitalization.md
|
docs/Capitalization.md
|
||||||
docs/Cat.md
|
docs/Cat.md
|
||||||
docs/CatAllOf.md
|
docs/CatAllOf.md
|
||||||
docs/Category.md
|
docs/Category.md
|
||||||
docs/ClassModel.md
|
docs/ClassModel.md
|
||||||
|
docs/DefaultApi.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/EnumArrays.md
|
docs/EnumArrays.md
|
||||||
@ -31,18 +23,31 @@ docs/FakeApi.md
|
|||||||
docs/FakeClassnameTags123Api.md
|
docs/FakeClassnameTags123Api.md
|
||||||
docs/File.md
|
docs/File.md
|
||||||
docs/FileSchemaTestClass.md
|
docs/FileSchemaTestClass.md
|
||||||
|
docs/Foo.md
|
||||||
docs/FormatTest.md
|
docs/FormatTest.md
|
||||||
docs/HasOnlyReadOnly.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/List.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
docs/Model200Response.md
|
docs/Model200Response.md
|
||||||
docs/ModelClient.md
|
docs/ModelClient.md
|
||||||
docs/Name.md
|
docs/Name.md
|
||||||
|
docs/NullableClass.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
|
docs/OuterEnumDefaultValue.md
|
||||||
|
docs/OuterEnumInteger.md
|
||||||
|
docs/OuterEnumIntegerDefaultValue.md
|
||||||
docs/Pet.md
|
docs/Pet.md
|
||||||
docs/PetApi.md
|
docs/PetApi.md
|
||||||
docs/ReadOnlyFirst.md
|
docs/ReadOnlyFirst.md
|
||||||
@ -50,13 +55,11 @@ docs/Return.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
docs/TypeHolderDefault.md
|
|
||||||
docs/TypeHolderExample.md
|
|
||||||
docs/User.md
|
docs/User.md
|
||||||
docs/UserApi.md
|
docs/UserApi.md
|
||||||
docs/XmlItem.md
|
|
||||||
git_push.sh
|
git_push.sh
|
||||||
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
||||||
|
src/Org.OpenAPITools/Api/DefaultApi.cs
|
||||||
src/Org.OpenAPITools/Api/FakeApi.cs
|
src/Org.OpenAPITools/Api/FakeApi.cs
|
||||||
src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
|
src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
|
||||||
src/Org.OpenAPITools/Api/PetApi.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/Multimap.cs
|
||||||
src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
|
src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
|
||||||
src/Org.OpenAPITools/Client/RequestOptions.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/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/Animal.cs
|
||||||
src/Org.OpenAPITools/Model/ApiResponse.cs
|
src/Org.OpenAPITools/Model/ApiResponse.cs
|
||||||
src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
|
src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
|
||||||
src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
|
src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
|
||||||
src/Org.OpenAPITools/Model/ArrayTest.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/Capitalization.cs
|
||||||
src/Org.OpenAPITools/Model/Cat.cs
|
src/Org.OpenAPITools/Model/Cat.cs
|
||||||
src/Org.OpenAPITools/Model/CatAllOf.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/EnumTest.cs
|
||||||
src/Org.OpenAPITools/Model/File.cs
|
src/Org.OpenAPITools/Model/File.cs
|
||||||
src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
|
src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
|
||||||
|
src/Org.OpenAPITools/Model/Foo.cs
|
||||||
src/Org.OpenAPITools/Model/FormatTest.cs
|
src/Org.OpenAPITools/Model/FormatTest.cs
|
||||||
src/Org.OpenAPITools/Model/HasOnlyReadOnly.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/List.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
src/Org.OpenAPITools/Model/Model200Response.cs
|
src/Org.OpenAPITools/Model/Model200Response.cs
|
||||||
src/Org.OpenAPITools/Model/ModelClient.cs
|
src/Org.OpenAPITools/Model/ModelClient.cs
|
||||||
src/Org.OpenAPITools/Model/Name.cs
|
src/Org.OpenAPITools/Model/Name.cs
|
||||||
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.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/Pet.cs
|
||||||
src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
|
src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
|
||||||
src/Org.OpenAPITools/Model/Return.cs
|
src/Org.OpenAPITools/Model/Return.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.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/User.cs
|
||||||
src/Org.OpenAPITools/Model/XmlItem.cs
|
|
||||||
src/Org.OpenAPITools/Org.OpenAPITools.csproj
|
src/Org.OpenAPITools/Org.OpenAPITools.csproj
|
||||||
|
@ -64,12 +64,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new AnotherFakeApi(config);
|
var apiInstance = new AnotherFakeApi(config);
|
||||||
var body = new ModelClient(); // ModelClient | client model
|
var modelClient = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To test special tags
|
// To test special tags
|
||||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -92,7 +92,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
*AnotherFakeApi* | [**Call123TestSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
*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* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||||
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||||
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||||
@ -133,21 +135,12 @@ Class | Method | HTTP request | Description
|
|||||||
<a name="documentation-for-models"></a>
|
<a name="documentation-for-models"></a>
|
||||||
## Documentation for Models
|
## Documentation for Models
|
||||||
|
|
||||||
- [Model.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
|
||||||
- [Model.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
|
||||||
- [Model.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
|
||||||
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.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.Animal](docs/Animal.md)
|
||||||
- [Model.ApiResponse](docs/ApiResponse.md)
|
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
- [Model.ArrayTest](docs/ArrayTest.md)
|
- [Model.ArrayTest](docs/ArrayTest.md)
|
||||||
- [Model.BigCat](docs/BigCat.md)
|
|
||||||
- [Model.BigCatAllOf](docs/BigCatAllOf.md)
|
|
||||||
- [Model.Capitalization](docs/Capitalization.md)
|
- [Model.Capitalization](docs/Capitalization.md)
|
||||||
- [Model.Cat](docs/Cat.md)
|
- [Model.Cat](docs/Cat.md)
|
||||||
- [Model.CatAllOf](docs/CatAllOf.md)
|
- [Model.CatAllOf](docs/CatAllOf.md)
|
||||||
@ -160,27 +153,37 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.EnumTest](docs/EnumTest.md)
|
- [Model.EnumTest](docs/EnumTest.md)
|
||||||
- [Model.File](docs/File.md)
|
- [Model.File](docs/File.md)
|
||||||
- [Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
- [Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||||
|
- [Model.Foo](docs/Foo.md)
|
||||||
- [Model.FormatTest](docs/FormatTest.md)
|
- [Model.FormatTest](docs/FormatTest.md)
|
||||||
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.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.List](docs/List.md)
|
||||||
- [Model.MapTest](docs/MapTest.md)
|
- [Model.MapTest](docs/MapTest.md)
|
||||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
- [Model.Model200Response](docs/Model200Response.md)
|
- [Model.Model200Response](docs/Model200Response.md)
|
||||||
- [Model.ModelClient](docs/ModelClient.md)
|
- [Model.ModelClient](docs/ModelClient.md)
|
||||||
- [Model.Name](docs/Name.md)
|
- [Model.Name](docs/Name.md)
|
||||||
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.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.Pet](docs/Pet.md)
|
||||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
- [Model.Return](docs/Return.md)
|
- [Model.Return](docs/Return.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
- [Model.TypeHolderDefault](docs/TypeHolderDefault.md)
|
|
||||||
- [Model.TypeHolderExample](docs/TypeHolderExample.md)
|
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
- [Model.XmlItem](docs/XmlItem.md)
|
|
||||||
|
|
||||||
|
|
||||||
<a name="documentation-for-authorization"></a>
|
<a name="documentation-for-authorization"></a>
|
||||||
@ -200,11 +203,20 @@ Class | Method | HTTP request | Description
|
|||||||
- **API key parameter name**: api_key_query
|
- **API key parameter name**: api_key_query
|
||||||
- **Location**: URL query string
|
- **Location**: URL query string
|
||||||
|
|
||||||
|
<a name="bearer_test"></a>
|
||||||
|
### bearer_test
|
||||||
|
|
||||||
|
- **Type**: Bearer Authentication
|
||||||
|
|
||||||
<a name="http_basic_test"></a>
|
<a name="http_basic_test"></a>
|
||||||
### http_basic_test
|
### http_basic_test
|
||||||
|
|
||||||
- **Type**: HTTP basic authentication
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
|
<a name="http_signature_test"></a>
|
||||||
|
### http_signature_test
|
||||||
|
|
||||||
|
|
||||||
<a name="petstore_auth"></a>
|
<a name="petstore_auth"></a>
|
||||||
### petstore_auth
|
### petstore_auth
|
||||||
|
|
||||||
|
@ -3,17 +3,8 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**MapString** | **Dictionary<string, string>** | | [optional]
|
**MapProperty** | **Dictionary<string, string>** | | [optional]
|
||||||
**MapNumber** | **Dictionary<string, decimal>** | | [optional]
|
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [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]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[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>
|
<a name="call123testspecialtags"></a>
|
||||||
# **Call123TestSpecialTags**
|
# **Call123TestSpecialTags**
|
||||||
> ModelClient Call123TestSpecialTags (ModelClient body)
|
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@ -32,12 +32,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new AnotherFakeApi(config);
|
var apiInstance = new AnotherFakeApi(config);
|
||||||
var body = new ModelClient(); // ModelClient | client model
|
var modelClient = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To test special tags
|
// To test special tags
|
||||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -55,7 +55,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@ Name | Type | Description | Notes
|
|||||||
**EnumInteger** | **int** | | [optional]
|
**EnumInteger** | **int** | | [optional]
|
||||||
**EnumNumber** | **double** | | [optional]
|
**EnumNumber** | **double** | | [optional]
|
||||||
**OuterEnum** | **OuterEnum** | | [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)
|
[[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
|
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 |
|
[**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||||
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||||
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||||
@ -20,13 +21,11 @@ Method | HTTP request | Description
|
|||||||
[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||||
|
|
||||||
|
|
||||||
<a name="createxmlitem"></a>
|
<a name="fakehealthget"></a>
|
||||||
# **CreateXmlItem**
|
# **FakeHealthGet**
|
||||||
> void CreateXmlItem (XmlItem xmlItem)
|
> HealthCheckResult FakeHealthGet ()
|
||||||
|
|
||||||
creates an XmlItem
|
Health check endpoint
|
||||||
|
|
||||||
this route creates an XmlItem
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```csharp
|
```csharp
|
||||||
@ -38,23 +37,90 @@ using Org.OpenAPITools.Model;
|
|||||||
|
|
||||||
namespace Example
|
namespace Example
|
||||||
{
|
{
|
||||||
public class CreateXmlItemExample
|
public class FakeHealthGetExample
|
||||||
{
|
{
|
||||||
public static void Main()
|
public static void Main()
|
||||||
{
|
{
|
||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
var apiInstance = new FakeApi(config);
|
||||||
var xmlItem = new XmlItem(); // XmlItem | XmlItem Body
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// creates an XmlItem
|
// Health check endpoint
|
||||||
apiInstance.CreateXmlItem(xmlItem);
|
HealthCheckResult result = apiInstance.FakeHealthGet();
|
||||||
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
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("Status Code: "+ e.ErrorCode);
|
||||||
Debug.Print(e.StackTrace);
|
Debug.Print(e.StackTrace);
|
||||||
}
|
}
|
||||||
@ -67,7 +133,9 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
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
|
### Return type
|
||||||
|
|
||||||
@ -75,17 +143,17 @@ void (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[http_signature_test](../README.md#http_signature_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### 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
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| 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)
|
[[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
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -160,7 +228,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="fakeoutercompositeserialize"></a>
|
<a name="fakeoutercompositeserialize"></a>
|
||||||
# **FakeOuterCompositeSerialize**
|
# **FakeOuterCompositeSerialize**
|
||||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -183,11 +251,11 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -205,7 +273,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -217,7 +285,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -286,7 +354,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -355,7 +423,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -367,7 +435,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testbodywithfileschema"></a>
|
<a name="testbodywithfileschema"></a>
|
||||||
# **TestBodyWithFileSchema**
|
# **TestBodyWithFileSchema**
|
||||||
> void TestBodyWithFileSchema (FileSchemaTestClass body)
|
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -390,11 +458,11 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
var apiInstance = new FakeApi(config);
|
||||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
apiInstance.TestBodyWithFileSchema(body);
|
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -411,7 +479,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -435,7 +503,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testbodywithqueryparams"></a>
|
<a name="testbodywithqueryparams"></a>
|
||||||
# **TestBodyWithQueryParams**
|
# **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";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
var apiInstance = new FakeApi(config);
|
||||||
var query = query_example; // string |
|
var query = query_example; // string |
|
||||||
var body = new User(); // User |
|
var user = new User(); // User |
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
apiInstance.TestBodyWithQueryParams(query, body);
|
apiInstance.TestBodyWithQueryParams(query, user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -479,7 +547,7 @@ namespace Example
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**query** | **string**| |
|
**query** | **string**| |
|
||||||
**body** | [**User**](User.md)| |
|
**user** | [**User**](User.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -503,7 +571,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testclientmodel"></a>
|
<a name="testclientmodel"></a>
|
||||||
# **TestClientModel**
|
# **TestClientModel**
|
||||||
> ModelClient TestClientModel (ModelClient body)
|
> ModelClient TestClientModel (ModelClient modelClient)
|
||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
@ -526,12 +594,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
var apiInstance = new FakeApi(config);
|
||||||
var body = new ModelClient(); // ModelClient | client model
|
var modelClient = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To test \"client\" model
|
// To test \"client\" model
|
||||||
ModelClient result = apiInstance.TestClientModel(body);
|
ModelClient result = apiInstance.TestClientModel(modelClient);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -549,7 +617,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -779,6 +847,9 @@ namespace Example
|
|||||||
{
|
{
|
||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
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 apiInstance = new FakeApi(config);
|
||||||
var requiredStringGroup = 56; // int | Required String in group parameters
|
var requiredStringGroup = 56; // int | Required String in group parameters
|
||||||
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
||||||
@ -820,7 +891,7 @@ void (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[bearer_test](../README.md#bearer_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
@ -836,7 +907,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testinlineadditionalproperties"></a>
|
<a name="testinlineadditionalproperties"></a>
|
||||||
# **TestInlineAdditionalProperties**
|
# **TestInlineAdditionalProperties**
|
||||||
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
@ -857,12 +928,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// test inline additionalProperties
|
// test inline additionalProperties
|
||||||
apiInstance.TestInlineAdditionalProperties(param);
|
apiInstance.TestInlineAdditionalProperties(requestBody);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -879,7 +950,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**param** | [**Dictionary<string, string>**](string.md)| request body |
|
**requestBody** | [**Dictionary<string, string>**](string.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="testclassname"></a>
|
<a name="testclassname"></a>
|
||||||
# **TestClassname**
|
# **TestClassname**
|
||||||
> ModelClient TestClassname (ModelClient body)
|
> ModelClient TestClassname (ModelClient modelClient)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
@ -37,12 +37,12 @@ namespace Example
|
|||||||
// config.AddApiKeyPrefix("api_key_query", "Bearer");
|
// config.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||||
|
|
||||||
var apiInstance = new FakeClassnameTags123Api(config);
|
var apiInstance = new FakeClassnameTags123Api(config);
|
||||||
var body = new ModelClient(); // ModelClient | client model
|
var modelClient = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To test class name in snake case
|
// To test class name in snake case
|
||||||
ModelClient result = apiInstance.TestClassname(body);
|
ModelClient result = apiInstance.TestClassname(modelClient);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -60,7 +60,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -16,7 +16,8 @@ Name | Type | Description | Notes
|
|||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
**Password** | **string** | |
|
**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)
|
[[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>
|
<a name="addpet"></a>
|
||||||
# **AddPet**
|
# **AddPet**
|
||||||
> void AddPet (Pet body)
|
> void AddPet (Pet pet)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
@ -41,12 +41,12 @@ namespace Example
|
|||||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||||
|
|
||||||
var apiInstance = new PetApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Add a new pet to the store
|
// Add a new pet to the store
|
||||||
apiInstance.AddPet(body);
|
apiInstance.AddPet(pet);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -81,7 +81,6 @@ void (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
|
||||||
| **405** | Invalid input | - |
|
| **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)
|
[[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
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
|
||||||
| **400** | Invalid pet value | - |
|
| **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)
|
[[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>
|
<a name="updatepet"></a>
|
||||||
# **UpdatePet**
|
# **UpdatePet**
|
||||||
> void UpdatePet (Pet body)
|
> void UpdatePet (Pet pet)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
@ -410,12 +408,12 @@ namespace Example
|
|||||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||||
|
|
||||||
var apiInstance = new PetApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Update an existing pet
|
// Update an existing pet
|
||||||
apiInstance.UpdatePet(body);
|
apiInstance.UpdatePet(pet);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -432,7 +430,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -450,7 +448,6 @@ void (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
|
||||||
| **400** | Invalid ID supplied | - |
|
| **400** | Invalid ID supplied | - |
|
||||||
| **404** | Pet not found | - |
|
| **404** | Pet not found | - |
|
||||||
| **405** | Validation exception | - |
|
| **405** | Validation exception | - |
|
||||||
|
@ -225,7 +225,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="placeorder"></a>
|
<a name="placeorder"></a>
|
||||||
# **PlaceOrder**
|
# **PlaceOrder**
|
||||||
> Order PlaceOrder (Order body)
|
> Order PlaceOrder (Order order)
|
||||||
|
|
||||||
Place an order for a pet
|
Place an order for a pet
|
||||||
|
|
||||||
@ -246,12 +246,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new StoreApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Place an order for a pet
|
// Place an order for a pet
|
||||||
Order result = apiInstance.PlaceOrder(body);
|
Order result = apiInstance.PlaceOrder(order);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -269,7 +269,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="createuser"></a>
|
<a name="createuser"></a>
|
||||||
# **CreateUser**
|
# **CreateUser**
|
||||||
> void CreateUser (User body)
|
> void CreateUser (User user)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -39,12 +39,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new UserApi(config);
|
var apiInstance = new UserApi(config);
|
||||||
var body = new User(); // User | Created user object
|
var user = new User(); // User | Created user object
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Create user
|
// Create user
|
||||||
apiInstance.CreateUser(body);
|
apiInstance.CreateUser(user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -61,7 +61,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**User**](User.md)| Created user object |
|
**user** | [**User**](User.md)| Created user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -85,7 +85,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createuserswitharrayinput"></a>
|
<a name="createuserswitharrayinput"></a>
|
||||||
# **CreateUsersWithArrayInput**
|
# **CreateUsersWithArrayInput**
|
||||||
> void CreateUsersWithArrayInput (List<User> body)
|
> void CreateUsersWithArrayInput (List<User> user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -106,12 +106,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new UserApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Creates list of users with given input array
|
// Creates list of users with given input array
|
||||||
apiInstance.CreateUsersWithArrayInput(body);
|
apiInstance.CreateUsersWithArrayInput(user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -128,7 +128,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**List<User>**](User.md)| List of user object |
|
**user** | [**List<User>**](User.md)| List of user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -152,7 +152,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createuserswithlistinput"></a>
|
<a name="createuserswithlistinput"></a>
|
||||||
# **CreateUsersWithListInput**
|
# **CreateUsersWithListInput**
|
||||||
> void CreateUsersWithListInput (List<User> body)
|
> void CreateUsersWithListInput (List<User> user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -173,12 +173,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new UserApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Creates list of users with given input array
|
// Creates list of users with given input array
|
||||||
apiInstance.CreateUsersWithListInput(body);
|
apiInstance.CreateUsersWithListInput(user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -195,7 +195,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**List<User>**](User.md)| List of user object |
|
**user** | [**List<User>**](User.md)| List of user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -493,7 +493,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="updateuser"></a>
|
<a name="updateuser"></a>
|
||||||
# **UpdateUser**
|
# **UpdateUser**
|
||||||
> void UpdateUser (string username, User body)
|
> void UpdateUser (string username, User user)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -517,12 +517,12 @@ namespace Example
|
|||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new UserApi(config);
|
var apiInstance = new UserApi(config);
|
||||||
var username = username_example; // string | name that need to be deleted
|
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
|
try
|
||||||
{
|
{
|
||||||
// Updated user
|
// Updated user
|
||||||
apiInstance.UpdateUser(username, body);
|
apiInstance.UpdateUser(username, user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -540,7 +540,7 @@ namespace Example
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**username** | **string**| name that need to be deleted |
|
**username** | **string**| name that need to be deleted |
|
||||||
**body** | [**User**](User.md)| Updated user object |
|
**user** | [**User**](User.md)| Updated user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -552,7 +552,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// To test special tags and operation ID starting with number
|
/// To test special tags and operation ID starting with number
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ModelClient</returns>
|
||||||
ModelClient Call123TestSpecialTags (ModelClient body);
|
ModelClient Call123TestSpecialTags (ModelClient modelClient);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// To test special tags
|
/// To test special tags
|
||||||
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// To test special tags and operation ID starting with number
|
/// To test special tags and operation ID starting with number
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ApiResponse of ModelClient</returns>
|
||||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body);
|
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient);
|
||||||
#endregion Synchronous Operations
|
#endregion Synchronous Operations
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,10 +64,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// To test special tags and operation ID starting with number
|
/// To test special tags and operation ID starting with number
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ModelClient</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// To test special tags
|
/// To test special tags
|
||||||
@ -76,10 +76,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// To test special tags and operation ID starting with number
|
/// To test special tags and operation ID starting with number
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
/// <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
|
#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
|
/// To test special tags To test special tags and operation ID starting with number
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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;
|
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
|
/// To test special tags To test special tags and operation ID starting with number
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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
|
// verify the required parameter 'modelClient' is set
|
||||||
if (body == null)
|
if (modelClient == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
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();
|
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);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// 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
|
/// To test special tags To test special tags and operation ID starting with number
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ModelClient</returns>
|
/// <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;
|
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
|
/// To test special tags To test special tags and operation ID starting with number
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
/// <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
|
// verify the required parameter 'modelClient' is set
|
||||||
if (body == null)
|
if (modelClient == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
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();
|
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);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
|
@ -62,8 +62,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>Task of InlineResponseDefault</returns>
|
||||||
System.Threading.Tasks.Task<InlineResponseDefault> FooGetAsync ();
|
System.Threading.Tasks.Task<InlineResponseDefault> FooGetAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
@ -72,8 +73,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>Task of ApiResponse (InlineResponseDefault)</returns>
|
||||||
System.Threading.Tasks.Task<ApiResponse<InlineResponseDefault>> FooGetAsyncWithHttpInfo ();
|
System.Threading.Tasks.Task<ApiResponse<InlineResponseDefault>> FooGetWithHttpInfoAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
#endregion Asynchronous Operations
|
#endregion Asynchronous Operations
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,20 +248,21 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>Task of InlineResponseDefault</returns>
|
||||||
public async System.Threading.Tasks.Task<InlineResponseDefault> FooGetAsync ()
|
public async System.Threading.Tasks.Task<InlineResponseDefault> FooGetAsync (System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.ApiResponse<InlineResponseDefault> localVarResponse = await FooGetAsyncWithHttpInfo();
|
Org.OpenAPITools.Client.ApiResponse<InlineResponseDefault> localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken);
|
||||||
return localVarResponse.Data;
|
return localVarResponse.Data;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>Task of ApiResponse (InlineResponseDefault)</returns>
|
||||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<InlineResponseDefault>> FooGetAsyncWithHttpInfo ()
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
@ -272,17 +275,18 @@ namespace Org.OpenAPITools.Api
|
|||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (var _contentType in _contentTypes)
|
|
||||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
|
||||||
|
|
||||||
foreach (var _accept in _accepts)
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
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
|
// make the HTTP request
|
||||||
|
|
||||||
var localVarResponse = await this.AsynchronousClient.GetAsync<InlineResponseDefault>("/foo", localVarRequestOptions, this.Configuration);
|
var localVarResponse = await this.AsynchronousClient.GetAsync<InlineResponseDefault>("/foo", localVarRequestOptions, this.Configuration, cancellationToken);
|
||||||
|
|
||||||
if (this.ExceptionFactory != null)
|
if (this.ExceptionFactory != null)
|
||||||
{
|
{
|
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
|
/// To test class name in snake case
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ModelClient</returns>
|
||||||
ModelClient TestClassname (ModelClient body);
|
ModelClient TestClassname (ModelClient modelClient);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// To test class name in snake case
|
/// To test class name in snake case
|
||||||
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// To test class name in snake case
|
/// To test class name in snake case
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ApiResponse of ModelClient</returns>
|
||||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body);
|
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient modelClient);
|
||||||
#endregion Synchronous Operations
|
#endregion Synchronous Operations
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,10 +64,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// To test class name in snake case
|
/// To test class name in snake case
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ModelClient</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// To test class name in snake case
|
/// To test class name in snake case
|
||||||
@ -76,10 +76,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// To test class name in snake case
|
/// To test class name in snake case
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
/// <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
|
#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
|
/// To test class name in snake case To test class name in snake case
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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;
|
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
|
/// To test class name in snake case To test class name in snake case
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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
|
// verify the required parameter 'modelClient' is set
|
||||||
if (body == null)
|
if (modelClient == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
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();
|
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);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
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
|
/// To test class name in snake case To test class name in snake case
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ModelClient</returns>
|
/// <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;
|
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
|
/// To test class name in snake case To test class name in snake case
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
/// <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
|
// verify the required parameter 'modelClient' is set
|
||||||
if (body == null)
|
if (modelClient == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
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();
|
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);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
|
@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
void AddPet (Pet body);
|
void AddPet (Pet pet);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
ApiResponse<Object> AddPetWithHttpInfo (Pet body);
|
ApiResponse<Object> AddPetWithHttpInfo (Pet pet);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deletes a pet
|
/// Deletes a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -141,9 +141,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
void UpdatePet (Pet body);
|
void UpdatePet (Pet pet);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
@ -152,9 +152,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet body);
|
ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updates a pet in the store with form data
|
/// Updates a pet in the store with form data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -246,10 +246,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
@ -258,10 +258,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Deletes a pet
|
/// Deletes a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -363,10 +363,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
@ -375,10 +375,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Updates a pet in the store with form data
|
/// Updates a pet in the store with form data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -584,24 +584,24 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
public void AddPet (Pet body)
|
public void AddPet (Pet pet)
|
||||||
{
|
{
|
||||||
AddPetWithHttpInfo(body);
|
AddPetWithHttpInfo(pet);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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
|
// verify the required parameter 'pet' is set
|
||||||
if (body == null)
|
if (pet == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
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();
|
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);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = pet;
|
||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
@ -645,26 +645,26 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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
|
// verify the required parameter 'pet' is set
|
||||||
if (body == null)
|
if (pet == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
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();
|
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);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = pet;
|
||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
@ -1215,24 +1215,24 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
public void UpdatePet (Pet body)
|
public void UpdatePet (Pet pet)
|
||||||
{
|
{
|
||||||
UpdatePetWithHttpInfo(body);
|
UpdatePetWithHttpInfo(pet);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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
|
// verify the required parameter 'pet' is set
|
||||||
if (body == null)
|
if (pet == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
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();
|
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);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = pet;
|
||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
@ -1276,26 +1276,26 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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
|
// verify the required parameter 'pet' is set
|
||||||
if (body == null)
|
if (pet == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
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();
|
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);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = pet;
|
||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
|
@ -95,9 +95,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>Order</returns>
|
||||||
Order PlaceOrder (Order body);
|
Order PlaceOrder (Order order);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
@ -106,9 +106,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ApiResponse of Order</returns>
|
||||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body);
|
ApiResponse<Order> PlaceOrderWithHttpInfo (Order order);
|
||||||
#endregion Synchronous Operations
|
#endregion Synchronous Operations
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,10 +192,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of Order</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
@ -204,10 +204,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse (Order)</returns>
|
/// <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
|
#endregion Asynchronous Operations
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -663,11 +663,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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;
|
return localVarResponse.Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -675,17 +675,18 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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
|
// verify the required parameter 'order' is set
|
||||||
if (body == null)
|
if (order == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -700,7 +701,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = order;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
@ -719,12 +720,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of Order</returns>
|
/// <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;
|
return localVarResponse.Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -732,19 +733,20 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse (Order)</returns>
|
/// <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
|
// verify the required parameter 'order' is set
|
||||||
if (body == null)
|
if (order == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -760,7 +762,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = order;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
|
@ -34,9 +34,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
void CreateUser (User body);
|
void CreateUser (User user);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create user
|
/// Create user
|
||||||
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
ApiResponse<Object> CreateUserWithHttpInfo (User body);
|
ApiResponse<Object> CreateUserWithHttpInfo (User user);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -55,9 +55,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
void CreateUsersWithArrayInput (List<User> body);
|
void CreateUsersWithArrayInput (List<User> user);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
@ -66,9 +66,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body);
|
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -76,9 +76,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
void CreateUsersWithListInput (List<User> body);
|
void CreateUsersWithListInput (List<User> user);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
@ -87,9 +87,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body);
|
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete user
|
/// Delete user
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -182,9 +182,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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="username">name that need to be deleted</param>
|
||||||
/// <param name="body">Updated user object</param>
|
/// <param name="user">Updated user object</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
void UpdateUser (string username, User body);
|
void UpdateUser (string username, User user);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updated user
|
/// Updated user
|
||||||
@ -194,9 +194,9 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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="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>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body);
|
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user);
|
||||||
#endregion Synchronous Operations
|
#endregion Synchronous Operations
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -213,10 +213,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Create user
|
/// Create user
|
||||||
@ -225,10 +225,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -236,10 +236,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
@ -248,10 +248,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -259,10 +259,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
@ -271,10 +271,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Delete user
|
/// Delete user
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -375,10 +375,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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="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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Updated user
|
/// Updated user
|
||||||
@ -388,10 +388,10 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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="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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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
|
#endregion Asynchronous Operations
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -516,28 +516,29 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Create user This can only be done by the logged in user.
|
/// Create user This can only be done by the logged in user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
public void CreateUser (User body)
|
public void CreateUser (User user)
|
||||||
{
|
{
|
||||||
CreateUserWithHttpInfo(body);
|
CreateUserWithHttpInfo(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create user This can only be done by the logged in user.
|
/// Create user This can only be done by the logged in user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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
|
// verify the required parameter 'user' is set
|
||||||
if (body == null)
|
if (user == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -550,7 +551,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = user;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
@ -569,31 +570,32 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Create user This can only be done by the logged in user.
|
/// Create user This can only be done by the logged in user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Create user This can only be done by the logged in user.
|
/// Create user This can only be done by the logged in user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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
|
// verify the required parameter 'user' is set
|
||||||
if (body == null)
|
if (user == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -607,7 +609,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = user;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
@ -627,28 +629,29 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
public void CreateUsersWithArrayInput (List<User> body)
|
public void CreateUsersWithArrayInput (List<User> user)
|
||||||
{
|
{
|
||||||
CreateUsersWithArrayInputWithHttpInfo(body);
|
CreateUsersWithArrayInputWithHttpInfo(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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
|
// verify the required parameter 'user' is set
|
||||||
if (body == null)
|
if (user == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -661,7 +664,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = user;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
@ -680,31 +683,32 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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
|
// verify the required parameter 'user' is set
|
||||||
if (body == null)
|
if (user == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -718,7 +722,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = user;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
@ -738,28 +742,29 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <returns></returns>
|
||||||
public void CreateUsersWithListInput (List<User> body)
|
public void CreateUsersWithListInput (List<User> user)
|
||||||
{
|
{
|
||||||
CreateUsersWithListInputWithHttpInfo(body);
|
CreateUsersWithListInputWithHttpInfo(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <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
|
// verify the required parameter 'user' is set
|
||||||
if (body == null)
|
if (user == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -772,7 +777,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = user;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
@ -791,31 +796,32 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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
|
// verify the required parameter 'user' is set
|
||||||
if (body == null)
|
if (user == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -829,7 +835,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = user;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
@ -1306,11 +1312,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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="username">name that need to be deleted</param>
|
||||||
/// <param name="body">Updated user object</param>
|
/// <param name="user">Updated user object</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public void UpdateUser (string username, User body)
|
public void UpdateUser (string username, User user)
|
||||||
{
|
{
|
||||||
UpdateUserWithHttpInfo(username, body);
|
UpdateUserWithHttpInfo(username, user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1318,21 +1324,22 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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="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>
|
/// <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
|
// verify the required parameter 'username' is set
|
||||||
if (username == null)
|
if (username == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body == null)
|
if (user == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -1346,7 +1353,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = user;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
@ -1366,12 +1373,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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="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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <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>
|
/// <summary>
|
||||||
@ -1379,23 +1386,24 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
/// <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="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>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <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
|
// verify the required parameter 'username' is set
|
||||||
if (username == null)
|
if (username == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body == null)
|
if (user == null)
|
||||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
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();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
String[] _contentTypes = new String[] {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
@ -1410,7 +1418,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||||
|
|
||||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||||
localVarRequestOptions.Data = body;
|
localVarRequestOptions.Data = user;
|
||||||
|
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
|
@ -35,97 +35,25 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
|
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="mapString">mapString.</param>
|
/// <param name="mapProperty">mapProperty.</param>
|
||||||
/// <param name="mapNumber">mapNumber.</param>
|
/// <param name="mapOfMapProperty">mapOfMapProperty.</param>
|
||||||
/// <param name="mapInteger">mapInteger.</param>
|
public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||||
/// <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))
|
|
||||||
{
|
{
|
||||||
this.MapString = mapString;
|
this.MapProperty = mapProperty;
|
||||||
this.MapNumber = mapNumber;
|
this.MapOfMapProperty = mapOfMapProperty;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets MapString
|
/// Gets or Sets MapProperty
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name="map_string", EmitDefaultValue=false)]
|
[DataMember(Name="map_property", EmitDefaultValue=false)]
|
||||||
public Dictionary<string, string> MapString { get; set; }
|
public Dictionary<string, string> MapProperty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets MapNumber
|
/// Gets or Sets MapOfMapProperty
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name="map_number", EmitDefaultValue=false)]
|
[DataMember(Name="map_of_map_property", EmitDefaultValue=false)]
|
||||||
public Dictionary<string, decimal> MapNumber { get; set; }
|
public Dictionary<string, Dictionary<string, string>> MapOfMapProperty { 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; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
@ -135,17 +63,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class AdditionalPropertiesClass {\n");
|
sb.Append("class AdditionalPropertiesClass {\n");
|
||||||
sb.Append(" MapString: ").Append(MapString).Append("\n");
|
sb.Append(" MapProperty: ").Append(MapProperty).Append("\n");
|
||||||
sb.Append(" MapNumber: ").Append(MapNumber).Append("\n");
|
sb.Append(" MapOfMapProperty: ").Append(MapOfMapProperty).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("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -188,28 +107,10 @@ namespace Org.OpenAPITools.Model
|
|||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
if (this.MapString != null)
|
if (this.MapProperty != null)
|
||||||
hashCode = hashCode * 59 + this.MapString.GetHashCode();
|
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||||
if (this.MapNumber != null)
|
if (this.MapOfMapProperty != null)
|
||||||
hashCode = hashCode * 59 + this.MapNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.MapOfMapProperty.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();
|
|
||||||
return hashCode;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,10 +34,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
||||||
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
||||||
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
||||||
[JsonSubtypes.KnownSubType(typeof(BigCat), "BigCat")]
|
|
||||||
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
||||||
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
||||||
[JsonSubtypes.KnownSubType(typeof(BigCat), "BigCat")]
|
|
||||||
public partial class Animal : IEquatable<Animal>, IValidatableObject
|
public partial class Animal : IEquatable<Animal>, IValidatableObject
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -144,9 +144,24 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets OuterEnum
|
/// Gets or Sets OuterEnum
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
[DataMember(Name="outerEnum", EmitDefaultValue=true)]
|
||||||
public OuterEnum? OuterEnum { get; set; }
|
public OuterEnum? OuterEnum { get; set; }
|
||||||
/// <summary>
|
/// <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.
|
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonConstructorAttribute]
|
[JsonConstructorAttribute]
|
||||||
@ -159,13 +174,19 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="enumInteger">enumInteger.</param>
|
/// <param name="enumInteger">enumInteger.</param>
|
||||||
/// <param name="enumNumber">enumNumber.</param>
|
/// <param name="enumNumber">enumNumber.</param>
|
||||||
/// <param name="outerEnum">outerEnum.</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.EnumStringRequired = enumStringRequired;
|
||||||
this.EnumString = enumString;
|
this.EnumString = enumString;
|
||||||
this.EnumInteger = enumInteger;
|
this.EnumInteger = enumInteger;
|
||||||
this.EnumNumber = enumNumber;
|
this.EnumNumber = enumNumber;
|
||||||
this.OuterEnum = outerEnum;
|
this.OuterEnum = outerEnum;
|
||||||
|
this.OuterEnumInteger = outerEnumInteger;
|
||||||
|
this.OuterEnumDefaultValue = outerEnumDefaultValue;
|
||||||
|
this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -181,6 +202,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" EnumInteger: ").Append(EnumInteger).Append("\n");
|
sb.Append(" EnumInteger: ").Append(EnumInteger).Append("\n");
|
||||||
sb.Append(" EnumNumber: ").Append(EnumNumber).Append("\n");
|
sb.Append(" EnumNumber: ").Append(EnumNumber).Append("\n");
|
||||||
sb.Append(" OuterEnum: ").Append(OuterEnum).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");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -228,6 +252,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
||||||
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
||||||
hashCode = hashCode * 59 + this.OuterEnum.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;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,8 +53,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="dateTime">dateTime.</param>
|
/// <param name="dateTime">dateTime.</param>
|
||||||
/// <param name="uuid">uuid.</param>
|
/// <param name="uuid">uuid.</param>
|
||||||
/// <param name="password">password (required).</param>
|
/// <param name="password">password (required).</param>
|
||||||
/// <param name="bigDecimal">bigDecimal.</param>
|
/// <param name="patternWithDigits">A string that is a 10 digit number. Can have leading zeros..</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="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;
|
this.Number = number;
|
||||||
// to ensure "_byte" is required (not null)
|
// to ensure "_byte" is required (not null)
|
||||||
@ -71,7 +72,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.Binary = binary;
|
this.Binary = binary;
|
||||||
this.DateTime = dateTime;
|
this.DateTime = dateTime;
|
||||||
this.Uuid = uuid;
|
this.Uuid = uuid;
|
||||||
this.BigDecimal = bigDecimal;
|
this.PatternWithDigits = patternWithDigits;
|
||||||
|
this.PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -154,10 +156,18 @@ namespace Org.OpenAPITools.Model
|
|||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets BigDecimal
|
/// A string that is a 10 digit number. Can have leading zeros.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name="BigDecimal", EmitDefaultValue=false)]
|
/// <value>A string that is a 10 digit number. Can have leading zeros.</value>
|
||||||
public decimal BigDecimal { get; set; }
|
[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>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
@ -180,7 +190,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
sb.Append(" Password: ").Append(Password).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");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -243,7 +254,10 @@ namespace Org.OpenAPITools.Model
|
|||||||
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
if (this.Password != null)
|
if (this.Password != null)
|
||||||
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
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;
|
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" });
|
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;
|
yield break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,9 +59,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.Number = number;
|
this.Number = number;
|
||||||
this.Double = _double;
|
this.Double = _double;
|
||||||
// to ensure "patternWithoutDelimiter" is required (not null)
|
// to ensure "patternWithoutDelimiter" is required (not null)
|
||||||
this.PatternWithoutDelimiter = patternWithoutDelimiter ?? throw new ArgumentNullException("patternWithoutDelimiter is a required property for InlineObject3 and cannot be 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)
|
// 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.Byte = _byte ?? throw new ArgumentNullException("_byte is a required property for InlineObject3 and cannot be null");
|
||||||
this.Integer = integer;
|
this.Integer = integer;
|
||||||
this.Int32 = int32;
|
this.Int32 = int32;
|
||||||
this.Int64 = int64;
|
this.Int64 = int64;
|
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
public InlineObject4(string param = default(string), string param2 = default(string))
|
public InlineObject4(string param = default(string), string param2 = default(string))
|
||||||
{
|
{
|
||||||
// to ensure "param" is required (not null)
|
// to ensure "param" is required (not null)
|
||||||
this.Param = param ?? throw new ArgumentNullException("param is a required property for InlineObject4 and cannot be 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)
|
// to ensure "param2" is required (not null)
|
||||||
this.Param2 = param2 ?? throw new ArgumentNullException("param2 is a required property for InlineObject4 and cannot be null");;
|
this.Param2 = param2 ?? throw new ArgumentNullException("param2 is a required property for InlineObject4 and cannot be null");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
public InlineObject5(string additionalMetadata = default(string), System.IO.Stream requiredFile = default(System.IO.Stream))
|
public InlineObject5(string additionalMetadata = default(string), System.IO.Stream requiredFile = default(System.IO.Stream))
|
||||||
{
|
{
|
||||||
// to ensure "requiredFile" is required (not null)
|
// 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.RequiredFile = requiredFile ?? throw new ArgumentNullException("requiredFile is a required property for InlineObject5 and cannot be null");
|
||||||
this.AdditionalMetadata = additionalMetadata;
|
this.AdditionalMetadata = additionalMetadata;
|
||||||
}
|
}
|
||||||
|
|
@ -1,27 +1,19 @@
|
|||||||
.gitignore
|
.gitignore
|
||||||
Org.OpenAPITools.sln
|
Org.OpenAPITools.sln
|
||||||
README.md
|
README.md
|
||||||
docs/AdditionalPropertiesAnyType.md
|
|
||||||
docs/AdditionalPropertiesArray.md
|
|
||||||
docs/AdditionalPropertiesBoolean.md
|
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/AdditionalPropertiesInteger.md
|
|
||||||
docs/AdditionalPropertiesNumber.md
|
|
||||||
docs/AdditionalPropertiesObject.md
|
|
||||||
docs/AdditionalPropertiesString.md
|
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
docs/AnotherFakeApi.md
|
docs/AnotherFakeApi.md
|
||||||
docs/ApiResponse.md
|
docs/ApiResponse.md
|
||||||
docs/ArrayOfArrayOfNumberOnly.md
|
docs/ArrayOfArrayOfNumberOnly.md
|
||||||
docs/ArrayOfNumberOnly.md
|
docs/ArrayOfNumberOnly.md
|
||||||
docs/ArrayTest.md
|
docs/ArrayTest.md
|
||||||
docs/BigCat.md
|
|
||||||
docs/BigCatAllOf.md
|
|
||||||
docs/Capitalization.md
|
docs/Capitalization.md
|
||||||
docs/Cat.md
|
docs/Cat.md
|
||||||
docs/CatAllOf.md
|
docs/CatAllOf.md
|
||||||
docs/Category.md
|
docs/Category.md
|
||||||
docs/ClassModel.md
|
docs/ClassModel.md
|
||||||
|
docs/DefaultApi.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/EnumArrays.md
|
docs/EnumArrays.md
|
||||||
@ -31,18 +23,31 @@ docs/FakeApi.md
|
|||||||
docs/FakeClassnameTags123Api.md
|
docs/FakeClassnameTags123Api.md
|
||||||
docs/File.md
|
docs/File.md
|
||||||
docs/FileSchemaTestClass.md
|
docs/FileSchemaTestClass.md
|
||||||
|
docs/Foo.md
|
||||||
docs/FormatTest.md
|
docs/FormatTest.md
|
||||||
docs/HasOnlyReadOnly.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/List.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
docs/Model200Response.md
|
docs/Model200Response.md
|
||||||
docs/ModelClient.md
|
docs/ModelClient.md
|
||||||
docs/Name.md
|
docs/Name.md
|
||||||
|
docs/NullableClass.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
|
docs/OuterEnumDefaultValue.md
|
||||||
|
docs/OuterEnumInteger.md
|
||||||
|
docs/OuterEnumIntegerDefaultValue.md
|
||||||
docs/Pet.md
|
docs/Pet.md
|
||||||
docs/PetApi.md
|
docs/PetApi.md
|
||||||
docs/ReadOnlyFirst.md
|
docs/ReadOnlyFirst.md
|
||||||
@ -50,13 +55,11 @@ docs/Return.md
|
|||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
docs/TypeHolderDefault.md
|
|
||||||
docs/TypeHolderExample.md
|
|
||||||
docs/User.md
|
docs/User.md
|
||||||
docs/UserApi.md
|
docs/UserApi.md
|
||||||
docs/XmlItem.md
|
|
||||||
git_push.sh
|
git_push.sh
|
||||||
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
||||||
|
src/Org.OpenAPITools/Api/DefaultApi.cs
|
||||||
src/Org.OpenAPITools/Api/FakeApi.cs
|
src/Org.OpenAPITools/Api/FakeApi.cs
|
||||||
src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
|
src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
|
||||||
src/Org.OpenAPITools/Api/PetApi.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/Multimap.cs
|
||||||
src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
|
src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
|
||||||
src/Org.OpenAPITools/Client/RequestOptions.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/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/Animal.cs
|
||||||
src/Org.OpenAPITools/Model/ApiResponse.cs
|
src/Org.OpenAPITools/Model/ApiResponse.cs
|
||||||
src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
|
src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
|
||||||
src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
|
src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
|
||||||
src/Org.OpenAPITools/Model/ArrayTest.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/Capitalization.cs
|
||||||
src/Org.OpenAPITools/Model/Cat.cs
|
src/Org.OpenAPITools/Model/Cat.cs
|
||||||
src/Org.OpenAPITools/Model/CatAllOf.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/EnumTest.cs
|
||||||
src/Org.OpenAPITools/Model/File.cs
|
src/Org.OpenAPITools/Model/File.cs
|
||||||
src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
|
src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
|
||||||
|
src/Org.OpenAPITools/Model/Foo.cs
|
||||||
src/Org.OpenAPITools/Model/FormatTest.cs
|
src/Org.OpenAPITools/Model/FormatTest.cs
|
||||||
src/Org.OpenAPITools/Model/HasOnlyReadOnly.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/List.cs
|
||||||
src/Org.OpenAPITools/Model/MapTest.cs
|
src/Org.OpenAPITools/Model/MapTest.cs
|
||||||
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
|
||||||
src/Org.OpenAPITools/Model/Model200Response.cs
|
src/Org.OpenAPITools/Model/Model200Response.cs
|
||||||
src/Org.OpenAPITools/Model/ModelClient.cs
|
src/Org.OpenAPITools/Model/ModelClient.cs
|
||||||
src/Org.OpenAPITools/Model/Name.cs
|
src/Org.OpenAPITools/Model/Name.cs
|
||||||
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.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/Pet.cs
|
||||||
src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
|
src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
|
||||||
src/Org.OpenAPITools/Model/Return.cs
|
src/Org.OpenAPITools/Model/Return.cs
|
||||||
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
src/Org.OpenAPITools/Model/SpecialModelName.cs
|
||||||
src/Org.OpenAPITools/Model/Tag.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/User.cs
|
||||||
src/Org.OpenAPITools/Model/XmlItem.cs
|
|
||||||
src/Org.OpenAPITools/Org.OpenAPITools.csproj
|
src/Org.OpenAPITools/Org.OpenAPITools.csproj
|
||||||
|
@ -76,12 +76,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new AnotherFakeApi(config);
|
var apiInstance = new AnotherFakeApi(config);
|
||||||
var body = new ModelClient(); // ModelClient | client model
|
var modelClient = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To test special tags
|
// To test special tags
|
||||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -104,7 +104,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
*AnotherFakeApi* | [**Call123TestSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
*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* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||||
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||||
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||||
@ -145,21 +147,12 @@ Class | Method | HTTP request | Description
|
|||||||
<a name="documentation-for-models"></a>
|
<a name="documentation-for-models"></a>
|
||||||
## Documentation for Models
|
## Documentation for Models
|
||||||
|
|
||||||
- [Model.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
|
||||||
- [Model.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
|
||||||
- [Model.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
|
||||||
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.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.Animal](docs/Animal.md)
|
||||||
- [Model.ApiResponse](docs/ApiResponse.md)
|
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
- [Model.ArrayTest](docs/ArrayTest.md)
|
- [Model.ArrayTest](docs/ArrayTest.md)
|
||||||
- [Model.BigCat](docs/BigCat.md)
|
|
||||||
- [Model.BigCatAllOf](docs/BigCatAllOf.md)
|
|
||||||
- [Model.Capitalization](docs/Capitalization.md)
|
- [Model.Capitalization](docs/Capitalization.md)
|
||||||
- [Model.Cat](docs/Cat.md)
|
- [Model.Cat](docs/Cat.md)
|
||||||
- [Model.CatAllOf](docs/CatAllOf.md)
|
- [Model.CatAllOf](docs/CatAllOf.md)
|
||||||
@ -172,27 +165,37 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.EnumTest](docs/EnumTest.md)
|
- [Model.EnumTest](docs/EnumTest.md)
|
||||||
- [Model.File](docs/File.md)
|
- [Model.File](docs/File.md)
|
||||||
- [Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
- [Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||||
|
- [Model.Foo](docs/Foo.md)
|
||||||
- [Model.FormatTest](docs/FormatTest.md)
|
- [Model.FormatTest](docs/FormatTest.md)
|
||||||
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.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.List](docs/List.md)
|
||||||
- [Model.MapTest](docs/MapTest.md)
|
- [Model.MapTest](docs/MapTest.md)
|
||||||
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
- [Model.Model200Response](docs/Model200Response.md)
|
- [Model.Model200Response](docs/Model200Response.md)
|
||||||
- [Model.ModelClient](docs/ModelClient.md)
|
- [Model.ModelClient](docs/ModelClient.md)
|
||||||
- [Model.Name](docs/Name.md)
|
- [Model.Name](docs/Name.md)
|
||||||
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.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.Pet](docs/Pet.md)
|
||||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
- [Model.Return](docs/Return.md)
|
- [Model.Return](docs/Return.md)
|
||||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Model.Tag](docs/Tag.md)
|
- [Model.Tag](docs/Tag.md)
|
||||||
- [Model.TypeHolderDefault](docs/TypeHolderDefault.md)
|
|
||||||
- [Model.TypeHolderExample](docs/TypeHolderExample.md)
|
|
||||||
- [Model.User](docs/User.md)
|
- [Model.User](docs/User.md)
|
||||||
- [Model.XmlItem](docs/XmlItem.md)
|
|
||||||
|
|
||||||
|
|
||||||
<a name="documentation-for-authorization"></a>
|
<a name="documentation-for-authorization"></a>
|
||||||
@ -212,11 +215,20 @@ Class | Method | HTTP request | Description
|
|||||||
- **API key parameter name**: api_key_query
|
- **API key parameter name**: api_key_query
|
||||||
- **Location**: URL query string
|
- **Location**: URL query string
|
||||||
|
|
||||||
|
<a name="bearer_test"></a>
|
||||||
|
### bearer_test
|
||||||
|
|
||||||
|
- **Type**: Bearer Authentication
|
||||||
|
|
||||||
<a name="http_basic_test"></a>
|
<a name="http_basic_test"></a>
|
||||||
### http_basic_test
|
### http_basic_test
|
||||||
|
|
||||||
- **Type**: HTTP basic authentication
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
|
<a name="http_signature_test"></a>
|
||||||
|
### http_signature_test
|
||||||
|
|
||||||
|
|
||||||
<a name="petstore_auth"></a>
|
<a name="petstore_auth"></a>
|
||||||
### petstore_auth
|
### petstore_auth
|
||||||
|
|
||||||
|
@ -3,17 +3,8 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**MapString** | **Dictionary<string, string>** | | [optional]
|
**MapProperty** | **Dictionary<string, string>** | | [optional]
|
||||||
**MapNumber** | **Dictionary<string, decimal>** | | [optional]
|
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [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]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[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>
|
<a name="call123testspecialtags"></a>
|
||||||
# **Call123TestSpecialTags**
|
# **Call123TestSpecialTags**
|
||||||
> ModelClient Call123TestSpecialTags (ModelClient body)
|
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@ -32,12 +32,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new AnotherFakeApi(config);
|
var apiInstance = new AnotherFakeApi(config);
|
||||||
var body = new ModelClient(); // ModelClient | client model
|
var modelClient = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To test special tags
|
// To test special tags
|
||||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -55,7 +55,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@ Name | Type | Description | Notes
|
|||||||
**EnumInteger** | **int** | | [optional]
|
**EnumInteger** | **int** | | [optional]
|
||||||
**EnumNumber** | **double** | | [optional]
|
**EnumNumber** | **double** | | [optional]
|
||||||
**OuterEnum** | **OuterEnum** | | [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)
|
[[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
|
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 |
|
[**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||||
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||||
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||||
@ -20,13 +21,11 @@ Method | HTTP request | Description
|
|||||||
[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||||
|
|
||||||
|
|
||||||
<a name="createxmlitem"></a>
|
<a name="fakehealthget"></a>
|
||||||
# **CreateXmlItem**
|
# **FakeHealthGet**
|
||||||
> void CreateXmlItem (XmlItem xmlItem)
|
> HealthCheckResult FakeHealthGet ()
|
||||||
|
|
||||||
creates an XmlItem
|
Health check endpoint
|
||||||
|
|
||||||
this route creates an XmlItem
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```csharp
|
```csharp
|
||||||
@ -38,23 +37,90 @@ using Org.OpenAPITools.Model;
|
|||||||
|
|
||||||
namespace Example
|
namespace Example
|
||||||
{
|
{
|
||||||
public class CreateXmlItemExample
|
public class FakeHealthGetExample
|
||||||
{
|
{
|
||||||
public static void Main()
|
public static void Main()
|
||||||
{
|
{
|
||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
var apiInstance = new FakeApi(config);
|
||||||
var xmlItem = new XmlItem(); // XmlItem | XmlItem Body
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// creates an XmlItem
|
// Health check endpoint
|
||||||
apiInstance.CreateXmlItem(xmlItem);
|
HealthCheckResult result = apiInstance.FakeHealthGet();
|
||||||
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
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("Status Code: "+ e.ErrorCode);
|
||||||
Debug.Print(e.StackTrace);
|
Debug.Print(e.StackTrace);
|
||||||
}
|
}
|
||||||
@ -67,7 +133,9 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
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
|
### Return type
|
||||||
|
|
||||||
@ -75,17 +143,17 @@ void (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[http_signature_test](../README.md#http_signature_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### 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
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| 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)
|
[[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
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -160,7 +228,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="fakeoutercompositeserialize"></a>
|
<a name="fakeoutercompositeserialize"></a>
|
||||||
# **FakeOuterCompositeSerialize**
|
# **FakeOuterCompositeSerialize**
|
||||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -183,11 +251,11 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -205,7 +273,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -217,7 +285,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -286,7 +354,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -355,7 +423,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -367,7 +435,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testbodywithfileschema"></a>
|
<a name="testbodywithfileschema"></a>
|
||||||
# **TestBodyWithFileSchema**
|
# **TestBodyWithFileSchema**
|
||||||
> void TestBodyWithFileSchema (FileSchemaTestClass body)
|
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -390,11 +458,11 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
var apiInstance = new FakeApi(config);
|
||||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
apiInstance.TestBodyWithFileSchema(body);
|
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -411,7 +479,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -435,7 +503,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testbodywithqueryparams"></a>
|
<a name="testbodywithqueryparams"></a>
|
||||||
# **TestBodyWithQueryParams**
|
# **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";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
var apiInstance = new FakeApi(config);
|
||||||
var query = query_example; // string |
|
var query = query_example; // string |
|
||||||
var body = new User(); // User |
|
var user = new User(); // User |
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
apiInstance.TestBodyWithQueryParams(query, body);
|
apiInstance.TestBodyWithQueryParams(query, user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -479,7 +547,7 @@ namespace Example
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**query** | **string**| |
|
**query** | **string**| |
|
||||||
**body** | [**User**](User.md)| |
|
**user** | [**User**](User.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -503,7 +571,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testclientmodel"></a>
|
<a name="testclientmodel"></a>
|
||||||
# **TestClientModel**
|
# **TestClientModel**
|
||||||
> ModelClient TestClientModel (ModelClient body)
|
> ModelClient TestClientModel (ModelClient modelClient)
|
||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
@ -526,12 +594,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
var apiInstance = new FakeApi(config);
|
||||||
var body = new ModelClient(); // ModelClient | client model
|
var modelClient = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To test \"client\" model
|
// To test \"client\" model
|
||||||
ModelClient result = apiInstance.TestClientModel(body);
|
ModelClient result = apiInstance.TestClientModel(modelClient);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -549,7 +617,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -779,6 +847,9 @@ namespace Example
|
|||||||
{
|
{
|
||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
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 apiInstance = new FakeApi(config);
|
||||||
var requiredStringGroup = 56; // int | Required String in group parameters
|
var requiredStringGroup = 56; // int | Required String in group parameters
|
||||||
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
||||||
@ -820,7 +891,7 @@ void (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[bearer_test](../README.md#bearer_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
@ -836,7 +907,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testinlineadditionalproperties"></a>
|
<a name="testinlineadditionalproperties"></a>
|
||||||
# **TestInlineAdditionalProperties**
|
# **TestInlineAdditionalProperties**
|
||||||
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
@ -857,12 +928,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new FakeApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// test inline additionalProperties
|
// test inline additionalProperties
|
||||||
apiInstance.TestInlineAdditionalProperties(param);
|
apiInstance.TestInlineAdditionalProperties(requestBody);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -879,7 +950,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**param** | [**Dictionary<string, string>**](string.md)| request body |
|
**requestBody** | [**Dictionary<string, string>**](string.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="testclassname"></a>
|
<a name="testclassname"></a>
|
||||||
# **TestClassname**
|
# **TestClassname**
|
||||||
> ModelClient TestClassname (ModelClient body)
|
> ModelClient TestClassname (ModelClient modelClient)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
@ -37,12 +37,12 @@ namespace Example
|
|||||||
// config.AddApiKeyPrefix("api_key_query", "Bearer");
|
// config.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||||
|
|
||||||
var apiInstance = new FakeClassnameTags123Api(config);
|
var apiInstance = new FakeClassnameTags123Api(config);
|
||||||
var body = new ModelClient(); // ModelClient | client model
|
var modelClient = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To test class name in snake case
|
// To test class name in snake case
|
||||||
ModelClient result = apiInstance.TestClassname(body);
|
ModelClient result = apiInstance.TestClassname(modelClient);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -60,7 +60,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -16,7 +16,8 @@ Name | Type | Description | Notes
|
|||||||
**DateTime** | **DateTime** | | [optional]
|
**DateTime** | **DateTime** | | [optional]
|
||||||
**Uuid** | **Guid** | | [optional]
|
**Uuid** | **Guid** | | [optional]
|
||||||
**Password** | **string** | |
|
**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)
|
[[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>
|
<a name="addpet"></a>
|
||||||
# **AddPet**
|
# **AddPet**
|
||||||
> void AddPet (Pet body)
|
> void AddPet (Pet pet)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
@ -41,12 +41,12 @@ namespace Example
|
|||||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||||
|
|
||||||
var apiInstance = new PetApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Add a new pet to the store
|
// Add a new pet to the store
|
||||||
apiInstance.AddPet(body);
|
apiInstance.AddPet(pet);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -81,7 +81,6 @@ void (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
|
||||||
| **405** | Invalid input | - |
|
| **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)
|
[[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
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
|
||||||
| **400** | Invalid pet value | - |
|
| **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)
|
[[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>
|
<a name="updatepet"></a>
|
||||||
# **UpdatePet**
|
# **UpdatePet**
|
||||||
> void UpdatePet (Pet body)
|
> void UpdatePet (Pet pet)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
@ -410,12 +408,12 @@ namespace Example
|
|||||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||||
|
|
||||||
var apiInstance = new PetApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Update an existing pet
|
// Update an existing pet
|
||||||
apiInstance.UpdatePet(body);
|
apiInstance.UpdatePet(pet);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -432,7 +430,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -450,7 +448,6 @@ void (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
|
||||||
| **400** | Invalid ID supplied | - |
|
| **400** | Invalid ID supplied | - |
|
||||||
| **404** | Pet not found | - |
|
| **404** | Pet not found | - |
|
||||||
| **405** | Validation exception | - |
|
| **405** | Validation exception | - |
|
||||||
|
@ -225,7 +225,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="placeorder"></a>
|
<a name="placeorder"></a>
|
||||||
# **PlaceOrder**
|
# **PlaceOrder**
|
||||||
> Order PlaceOrder (Order body)
|
> Order PlaceOrder (Order order)
|
||||||
|
|
||||||
Place an order for a pet
|
Place an order for a pet
|
||||||
|
|
||||||
@ -246,12 +246,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new StoreApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Place an order for a pet
|
// Place an order for a pet
|
||||||
Order result = apiInstance.PlaceOrder(body);
|
Order result = apiInstance.PlaceOrder(order);
|
||||||
Debug.WriteLine(result);
|
Debug.WriteLine(result);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
@ -269,7 +269,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
<a name="createuser"></a>
|
<a name="createuser"></a>
|
||||||
# **CreateUser**
|
# **CreateUser**
|
||||||
> void CreateUser (User body)
|
> void CreateUser (User user)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -39,12 +39,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new UserApi(config);
|
var apiInstance = new UserApi(config);
|
||||||
var body = new User(); // User | Created user object
|
var user = new User(); // User | Created user object
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Create user
|
// Create user
|
||||||
apiInstance.CreateUser(body);
|
apiInstance.CreateUser(user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -61,7 +61,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**User**](User.md)| Created user object |
|
**user** | [**User**](User.md)| Created user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -85,7 +85,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createuserswitharrayinput"></a>
|
<a name="createuserswitharrayinput"></a>
|
||||||
# **CreateUsersWithArrayInput**
|
# **CreateUsersWithArrayInput**
|
||||||
> void CreateUsersWithArrayInput (List<User> body)
|
> void CreateUsersWithArrayInput (List<User> user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -106,12 +106,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new UserApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Creates list of users with given input array
|
// Creates list of users with given input array
|
||||||
apiInstance.CreateUsersWithArrayInput(body);
|
apiInstance.CreateUsersWithArrayInput(user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -128,7 +128,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**List<User>**](User.md)| List of user object |
|
**user** | [**List<User>**](User.md)| List of user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -152,7 +152,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="createuserswithlistinput"></a>
|
<a name="createuserswithlistinput"></a>
|
||||||
# **CreateUsersWithListInput**
|
# **CreateUsersWithListInput**
|
||||||
> void CreateUsersWithListInput (List<User> body)
|
> void CreateUsersWithListInput (List<User> user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@ -173,12 +173,12 @@ namespace Example
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new UserApi(config);
|
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
|
try
|
||||||
{
|
{
|
||||||
// Creates list of users with given input array
|
// Creates list of users with given input array
|
||||||
apiInstance.CreateUsersWithListInput(body);
|
apiInstance.CreateUsersWithListInput(user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -195,7 +195,7 @@ namespace Example
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**List<User>**](User.md)| List of user object |
|
**user** | [**List<User>**](User.md)| List of user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -493,7 +493,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="updateuser"></a>
|
<a name="updateuser"></a>
|
||||||
# **UpdateUser**
|
# **UpdateUser**
|
||||||
> void UpdateUser (string username, User body)
|
> void UpdateUser (string username, User user)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -517,12 +517,12 @@ namespace Example
|
|||||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||||
var apiInstance = new UserApi(config);
|
var apiInstance = new UserApi(config);
|
||||||
var username = username_example; // string | name that need to be deleted
|
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
|
try
|
||||||
{
|
{
|
||||||
// Updated user
|
// Updated user
|
||||||
apiInstance.UpdateUser(username, body);
|
apiInstance.UpdateUser(username, user);
|
||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
@ -540,7 +540,7 @@ namespace Example
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**username** | **string**| name that need to be deleted |
|
**username** | **string**| name that need to be deleted |
|
||||||
**body** | [**User**](User.md)| Updated user object |
|
**user** | [**User**](User.md)| Updated user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -552,7 +552,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user