[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:
William Cheng
2020-08-10 20:48:13 +08:00
committed by GitHub
parent 780b55a518
commit 1ee57ea853
834 changed files with 3199 additions and 98629 deletions

View File

@@ -5,17 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapString** | **Dictionary<string, string>** | | [optional]
**MapNumber** | **Dictionary<string, decimal>** | | [optional]
**MapInteger** | **Dictionary<string, int>** | | [optional]
**MapBoolean** | **Dictionary<string, bool>** | | [optional]
**MapArrayInteger** | **Dictionary<string, List<int>>** | | [optional]
**MapArrayAnytype** | **Dictionary<string, List<Object>>** | | [optional]
**MapMapString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
**MapMapAnytype** | **Dictionary<string, Dictionary<string, Object>>** | | [optional]
**Anytype1** | **Object** | | [optional]
**Anytype2** | **Object** | | [optional]
**Anytype3** | **Object** | | [optional]
**MapProperty** | **Dictionary<string, string>** | | [optional]
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@@ -10,7 +10,7 @@ Method | HTTP request | Description
## Call123TestSpecialTags
> ModelClient Call123TestSpecialTags (ModelClient body)
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
To test special tags
@@ -33,12 +33,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new AnotherFakeApi(Configuration.Default);
var body = new ModelClient(); // ModelClient | client model
var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test special tags
ModelClient result = apiInstance.Call123TestSpecialTags(body);
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -57,7 +57,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**ModelClient**](ModelClient.md)| client model |
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type

View File

@@ -0,0 +1,77 @@
# Org.OpenAPITools.Api.DefaultApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**FooGet**](DefaultApi.md#fooget) | **GET** /foo |
## FooGet
> InlineResponseDefault FooGet ()
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class FooGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(Configuration.Default);
try
{
InlineResponseDefault result = apiInstance.FooGet();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.FooGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**InlineResponseDefault**](InlineResponseDefault.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **0** | response | - |
[[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

View File

@@ -10,6 +10,9 @@ Name | Type | Description | Notes
**EnumInteger** | **int** | | [optional]
**EnumNumber** | **double** | | [optional]
**OuterEnum** | **OuterEnum** | | [optional]
**OuterEnumInteger** | **OuterEnumInteger** | | [optional]
**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@@ -4,7 +4,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateXmlItem**](FakeApi.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
[**FakeHealthGet**](FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
[**FakeHttpSignatureTest**](FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
[**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
@@ -12,7 +13,7 @@ Method | HTTP request | Description
[**TestBodyWithFileSchema**](FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
[**TestBodyWithQueryParams**](FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
[**TestClientModel**](FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**TestEnumParameters**](FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
[**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
[**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
@@ -21,13 +22,11 @@ Method | HTTP request | Description
## CreateXmlItem
## FakeHealthGet
> void CreateXmlItem (XmlItem xmlItem)
> HealthCheckResult FakeHealthGet ()
creates an XmlItem
this route creates an XmlItem
Health check endpoint
### Example
@@ -40,22 +39,94 @@ using Org.OpenAPITools.Model;
namespace Example
{
public class CreateXmlItemExample
public class FakeHealthGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var xmlItem = new XmlItem(); // XmlItem | XmlItem Body
try
{
// creates an XmlItem
apiInstance.CreateXmlItem(xmlItem);
// Health check endpoint
HealthCheckResult result = apiInstance.FakeHealthGet();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FakeApi.CreateXmlItem: " + e.Message );
Debug.Print("Exception when calling FakeApi.FakeHealthGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**HealthCheckResult**](HealthCheckResult.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | The instance started successfully | - |
[[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## 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.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
var query1 = query1_example; // string | query parameter (optional)
var header1 = header1_example; // string | header parameter (optional)
try
{
// test http signature authentication
apiInstance.FakeHttpSignatureTest(pet, query1, header1);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FakeApi.FakeHttpSignatureTest: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -69,7 +140,9 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body |
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**query1** | **string**| query parameter | [optional]
**header1** | **string**| header parameter | [optional]
### Return type
@@ -77,17 +150,17 @@ void (empty response body)
### Authorization
No authorization required
[http_signature_test](../README.md#http_signature_test)
### HTTP request headers
- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
- **Content-Type**: application/json, application/xml
- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **200** | The instance started successfully | - |
[[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
@@ -155,7 +228,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
@@ -171,7 +244,7 @@ No authorization required
## FakeOuterCompositeSerialize
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
@@ -194,11 +267,11 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
try
{
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -217,7 +290,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -229,7 +302,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
@@ -303,7 +376,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
@@ -377,7 +450,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
@@ -393,7 +466,7 @@ No authorization required
## TestBodyWithFileSchema
> void TestBodyWithFileSchema (FileSchemaTestClass body)
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
@@ -416,11 +489,11 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
try
{
apiInstance.TestBodyWithFileSchema(body);
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
}
catch (ApiException e)
{
@@ -438,7 +511,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@@ -466,7 +539,7 @@ No authorization required
## TestBodyWithQueryParams
> void TestBodyWithQueryParams (string query, User body)
> void TestBodyWithQueryParams (string query, User user)
@@ -488,11 +561,11 @@ namespace Example
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var query = query_example; // string |
var body = new User(); // User |
var user = new User(); // User |
try
{
apiInstance.TestBodyWithQueryParams(query, body);
apiInstance.TestBodyWithQueryParams(query, user);
}
catch (ApiException e)
{
@@ -511,7 +584,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **string**| |
**body** | [**User**](User.md)| |
**user** | [**User**](User.md)| |
### Return type
@@ -539,7 +612,7 @@ No authorization required
## TestClientModel
> ModelClient TestClientModel (ModelClient body)
> ModelClient TestClientModel (ModelClient modelClient)
To test \"client\" model
@@ -562,12 +635,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var body = new ModelClient(); // ModelClient | client model
var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test \"client\" model
ModelClient result = apiInstance.TestClientModel(body);
ModelClient result = apiInstance.TestClientModel(modelClient);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -586,7 +659,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**ModelClient**](ModelClient.md)| client model |
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type
@@ -616,9 +689,9 @@ No authorization required
> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
### Example
@@ -658,7 +731,7 @@ namespace Example
try
{
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
}
catch (ApiException e)
@@ -830,6 +903,9 @@ namespace Example
public static void Main()
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure HTTP bearer authorization: bearer_test
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FakeApi(Configuration.Default);
var requiredStringGroup = 56; // int | Required String in group parameters
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
@@ -872,7 +948,7 @@ void (empty response body)
### Authorization
No authorization required
[bearer_test](../README.md#bearer_test)
### HTTP request headers
@@ -892,7 +968,7 @@ No authorization required
## TestInlineAdditionalProperties
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
test inline additionalProperties
@@ -913,12 +989,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body
try
{
// test inline additionalProperties
apiInstance.TestInlineAdditionalProperties(param);
apiInstance.TestInlineAdditionalProperties(requestBody);
}
catch (ApiException e)
{
@@ -936,7 +1012,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**param** | [**Dictionary&lt;string, string&gt;**](string.md)| request body |
**requestBody** | [**Dictionary&lt;string, string&gt;**](string.md)| request body |
### Return type

View File

@@ -10,7 +10,7 @@ Method | HTTP request | Description
## TestClassname
> ModelClient TestClassname (ModelClient body)
> ModelClient TestClassname (ModelClient modelClient)
To test class name in snake case
@@ -38,12 +38,12 @@ namespace Example
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new FakeClassnameTags123Api(Configuration.Default);
var body = new ModelClient(); // ModelClient | client model
var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test class name in snake case
ModelClient result = apiInstance.TestClassname(body);
ModelClient result = apiInstance.TestClassname(modelClient);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -62,7 +62,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**ModelClient**](ModelClient.md)| client model |
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type

View File

@@ -0,0 +1,13 @@
# Org.OpenAPITools.Model.Foo
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Bar** | **string** | | [optional] [default to "bar"]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -18,7 +18,8 @@ Name | Type | Description | Notes
**DateTime** | **DateTime** | | [optional]
**Uuid** | **Guid** | | [optional]
**Password** | **string** | |
**BigDecimal** | **decimal** | | [optional]
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**PatternWithDigitsAndDelimiter** | **string** | A string starting with &#39;image_&#39; (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)

View File

@@ -0,0 +1,13 @@
# Org.OpenAPITools.Model.HealthCheckResult
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**NullableMessage** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,14 @@
# Org.OpenAPITools.Model.InlineObject
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Updated name of the pet | [optional]
**Status** | **string** | Updated status of the pet | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,14 @@
# Org.OpenAPITools.Model.InlineObject1
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
**File** | **System.IO.Stream** | file to upload | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,14 @@
# Org.OpenAPITools.Model.InlineObject2
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**EnumFormStringArray** | **List&lt;string&gt;** | Form parameter enum test (string array) | [optional]
**EnumFormString** | **string** | Form parameter enum test (string) | [optional] [default to EnumFormStringEnum.Efg]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,26 @@
# Org.OpenAPITools.Model.InlineObject3
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Integer** | **int** | None | [optional]
**Int32** | **int** | None | [optional]
**Int64** | **long** | None | [optional]
**Number** | **decimal** | None |
**Float** | **float** | None | [optional]
**Double** | **double** | None |
**String** | **string** | None | [optional]
**PatternWithoutDelimiter** | **string** | None |
**Byte** | **byte[]** | None |
**Binary** | **System.IO.Stream** | None | [optional]
**Date** | **DateTime** | None | [optional]
**DateTime** | **DateTime** | None | [optional]
**Password** | **string** | None | [optional]
**Callback** | **string** | None | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,14 @@
# Org.OpenAPITools.Model.InlineObject4
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Param** | **string** | field1 |
**Param2** | **string** | field2 |
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,14 @@
# Org.OpenAPITools.Model.InlineObject5
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
**RequiredFile** | **System.IO.Stream** | file to upload |
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,13 @@
# Org.OpenAPITools.Model.InlineResponseDefault
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**String** | [**Foo**](Foo.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,24 @@
# Org.OpenAPITools.Model.NullableClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**IntegerProp** | **int?** | | [optional]
**NumberProp** | **decimal?** | | [optional]
**BooleanProp** | **bool?** | | [optional]
**StringProp** | **string** | | [optional]
**DateProp** | **DateTime?** | | [optional]
**DatetimeProp** | **DateTime?** | | [optional]
**ArrayNullableProp** | **List&lt;Object&gt;** | | [optional]
**ArrayAndItemsNullableProp** | **List&lt;Object&gt;** | | [optional]
**ArrayItemsNullable** | **List&lt;Object&gt;** | | [optional]
**ObjectNullableProp** | **Dictionary&lt;string, Object&gt;** | | [optional]
**ObjectAndItemsNullableProp** | **Dictionary&lt;string, Object&gt;** | | [optional]
**ObjectItemsNullable** | **Dictionary&lt;string, Object&gt;** | | [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)

View File

@@ -0,0 +1,12 @@
# Org.OpenAPITools.Model.OuterEnumDefaultValue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,12 @@
# Org.OpenAPITools.Model.OuterEnumInteger
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -0,0 +1,12 @@
# Org.OpenAPITools.Model.OuterEnumIntegerDefaultValue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to README]](../README.md)

View File

@@ -18,7 +18,7 @@ Method | HTTP request | Description
## AddPet
> void AddPet (Pet body)
> void AddPet (Pet pet)
Add a new pet to the store
@@ -42,12 +42,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(Configuration.Default);
var body = new Pet(); // Pet | Pet object that needs to be added to the store
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
// Add a new pet to the store
apiInstance.AddPet(body);
apiInstance.AddPet(pet);
}
catch (ApiException e)
{
@@ -65,7 +65,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -83,7 +83,6 @@ void (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **405** | Invalid input | - |
[[Back to top]](#)
@@ -161,7 +160,6 @@ void (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid pet value | - |
[[Back to top]](#)
@@ -412,7 +410,7 @@ Name | Type | Description | Notes
## UpdatePet
> void UpdatePet (Pet body)
> void UpdatePet (Pet pet)
Update an existing pet
@@ -436,12 +434,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(Configuration.Default);
var body = new Pet(); // Pet | Pet object that needs to be added to the store
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
// Update an existing pet
apiInstance.UpdatePet(body);
apiInstance.UpdatePet(pet);
}
catch (ApiException e)
{
@@ -459,7 +457,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -477,7 +475,6 @@ void (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid ID supplied | - |
| **404** | Pet not found | - |
| **405** | Validation exception | - |

View File

@@ -241,7 +241,7 @@ No authorization required
## PlaceOrder
> Order PlaceOrder (Order body)
> Order PlaceOrder (Order order)
Place an order for a pet
@@ -262,12 +262,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new StoreApi(Configuration.Default);
var body = new Order(); // Order | order placed for purchasing the pet
var order = new Order(); // Order | order placed for purchasing the pet
try
{
// Place an order for a pet
Order result = apiInstance.PlaceOrder(body);
Order result = apiInstance.PlaceOrder(order);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -286,7 +286,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type
@@ -298,7 +298,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/xml, application/json
### HTTP response details

View File

@@ -17,7 +17,7 @@ Method | HTTP request | Description
## CreateUser
> void CreateUser (User body)
> void CreateUser (User user)
Create user
@@ -40,12 +40,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(Configuration.Default);
var body = new User(); // User | Created user object
var user = new User(); // User | Created user object
try
{
// Create user
apiInstance.CreateUser(body);
apiInstance.CreateUser(user);
}
catch (ApiException e)
{
@@ -63,7 +63,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**User**](User.md)| Created user object |
**user** | [**User**](User.md)| Created user object |
### Return type
@@ -75,7 +75,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: Not defined
### HTTP response details
@@ -91,7 +91,7 @@ No authorization required
## CreateUsersWithArrayInput
> void CreateUsersWithArrayInput (List<User> body)
> void CreateUsersWithArrayInput (List<User> user)
Creates list of users with given input array
@@ -112,12 +112,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(Configuration.Default);
var body = new List<User>(); // List<User> | List of user object
var user = new List<User>(); // List<User> | List of user object
try
{
// Creates list of users with given input array
apiInstance.CreateUsersWithArrayInput(body);
apiInstance.CreateUsersWithArrayInput(user);
}
catch (ApiException e)
{
@@ -135,7 +135,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**List&lt;User&gt;**](User.md)| List of user object |
**user** | [**List&lt;User&gt;**](User.md)| List of user object |
### Return type
@@ -147,7 +147,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: Not defined
### HTTP response details
@@ -163,7 +163,7 @@ No authorization required
## CreateUsersWithListInput
> void CreateUsersWithListInput (List<User> body)
> void CreateUsersWithListInput (List<User> user)
Creates list of users with given input array
@@ -184,12 +184,12 @@ namespace Example
{
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(Configuration.Default);
var body = new List<User>(); // List<User> | List of user object
var user = new List<User>(); // List<User> | List of user object
try
{
// Creates list of users with given input array
apiInstance.CreateUsersWithListInput(body);
apiInstance.CreateUsersWithListInput(user);
}
catch (ApiException e)
{
@@ -207,7 +207,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**List&lt;User&gt;**](User.md)| List of user object |
**user** | [**List&lt;User&gt;**](User.md)| List of user object |
### Return type
@@ -219,7 +219,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: Not defined
### HTTP response details
@@ -529,7 +529,7 @@ No authorization required
## UpdateUser
> void UpdateUser (string username, User body)
> void UpdateUser (string username, User user)
Updated user
@@ -553,12 +553,12 @@ namespace Example
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new UserApi(Configuration.Default);
var username = username_example; // string | name that need to be deleted
var body = new User(); // User | Updated user object
var user = new User(); // User | Updated user object
try
{
// Updated user
apiInstance.UpdateUser(username, body);
apiInstance.UpdateUser(username, user);
}
catch (ApiException e)
{
@@ -577,7 +577,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **string**| name that need to be deleted |
**body** | [**User**](User.md)| Updated user object |
**user** | [**User**](User.md)| Updated user object |
### Return type
@@ -589,7 +589,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: Not defined
### HTTP response details