forked from loafle/openapi-generator-original
Fix logic of getNullableType
of csharp server and client. (#3537)
* Fix default nullable * Fix tests * Update samples * Fix template default value * Update samples * Also fix for interface * update samples
This commit is contained in:
parent
2bbebf9752
commit
5ab1c9c75b
@ -160,6 +160,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
||||
"Int64",
|
||||
"Float",
|
||||
"Guid?",
|
||||
"Guid",
|
||||
"System.IO.Stream", // not really a primitive, we include it to avoid model import
|
||||
"Object")
|
||||
);
|
||||
|
@ -22,6 +22,7 @@ import io.swagger.v3.oas.models.OpenAPI;
|
||||
import io.swagger.v3.oas.models.media.Schema;
|
||||
import io.swagger.v3.parser.util.SchemaTypeUtil;
|
||||
import org.openapitools.codegen.*;
|
||||
import org.openapitools.codegen.utils.ModelUtils;
|
||||
import org.openapitools.codegen.utils.URLPathUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@ -353,7 +354,7 @@ public class AspNetCoreServerCodegen extends AbstractCSharpCodegen {
|
||||
supportingFiles.add(new SupportingFile("Filters" + File.separator + "GeneratePathParamsValidationFilter.mustache",
|
||||
packageFolder + File.separator + "Filters", "GeneratePathParamsValidationFilter.cs"));
|
||||
}
|
||||
|
||||
|
||||
supportingFiles.add(new SupportingFile("Authentication" + File.separator + "ApiAuthentication.mustache",packageFolder + File.separator + "Authentication", "ApiAuthentication.cs"));
|
||||
}
|
||||
|
||||
@ -407,12 +408,12 @@ public class AspNetCoreServerCodegen extends AbstractCSharpCodegen {
|
||||
|
||||
@Override
|
||||
public String getNullableType(Schema p, String type) {
|
||||
boolean isNullableExpected = p.getNullable() == null || (p.getNullable() != null && p.getNullable());
|
||||
|
||||
if (isNullableExpected && languageSpecificPrimitives.contains(type + "?")) {
|
||||
return type + "?";
|
||||
} else if (languageSpecificPrimitives.contains(type)) {
|
||||
return type;
|
||||
if (languageSpecificPrimitives.contains(type)) {
|
||||
if (isSupportNullable() && ModelUtils.isNullable(p) && nullableType.contains(type)) {
|
||||
return type + "?";
|
||||
} else {
|
||||
return type;
|
||||
}
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
@ -879,15 +879,15 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getNullableType(Schema p, String type) {
|
||||
boolean isNullableExpected = p.getNullable() == null || (p.getNullable() != null && p.getNullable());
|
||||
|
||||
if (isNullableExpected && languageSpecificPrimitives.contains(type + "?")) {
|
||||
return type + "?";
|
||||
} else if (languageSpecificPrimitives.contains(type)) {
|
||||
return type;
|
||||
if (languageSpecificPrimitives.contains(type)) {
|
||||
if (isSupportNullable() && ModelUtils.isNullable(p) && nullableType.contains(type)) {
|
||||
return type + "?";
|
||||
} else {
|
||||
return type;
|
||||
}
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
||||
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
|
||||
/// <summary>
|
||||
/// {{summary}}
|
||||
@ -43,7 +43,7 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||
{{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns>
|
||||
ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
{{/operation}}
|
||||
#endregion Synchronous Operations
|
||||
{{#supportsAsync}}
|
||||
@ -58,7 +58,7 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||
{{/allParams}}/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns>
|
||||
{{#returnType}}System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
{{#returnType}}System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
|
||||
/// <summary>
|
||||
/// {{summary}}
|
||||
@ -69,7 +69,7 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||
{{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
{{/operation}}
|
||||
#endregion Asynchronous Operations
|
||||
{{/supportsAsync}}
|
||||
@ -190,7 +190,7 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
||||
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||
{
|
||||
{{#returnType}}ApiResponse<{{{returnType}}}> localVarResponse = {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
return localVarResponse.Data;{{/returnType}}{{^returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/returnType}}
|
||||
@ -202,7 +202,7 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||
{{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns>
|
||||
public ApiResponse<{{#returnType}} {{{returnType}}} {{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||
public ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||
{
|
||||
{{#allParams}}
|
||||
{{#required}}
|
||||
@ -325,7 +325,7 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||
{{/allParams}}/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns>
|
||||
{{#returnType}}public async System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||
{{#returnType}}public async System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||
{
|
||||
{{#returnType}}ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/returnType}}
|
||||
@ -338,7 +338,7 @@ namespace {{packageName}}.{{apiPackage}}
|
||||
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
|
||||
{{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||
public async System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||
{
|
||||
{{#allParams}}
|
||||
{{#required}}
|
||||
|
@ -141,10 +141,10 @@ public class CSharpModelTest {
|
||||
|
||||
final CodegenProperty property1 = cm.vars.get(0);
|
||||
Assert.assertEquals(property1.baseName, "id");
|
||||
Assert.assertEquals(property1.dataType, "long?");
|
||||
Assert.assertEquals(property1.dataType, "long");
|
||||
Assert.assertEquals(property1.name, "Id");
|
||||
Assert.assertNull(property1.defaultValue);
|
||||
Assert.assertEquals(property1.baseType, "long?");
|
||||
Assert.assertEquals(property1.baseType, "long");
|
||||
Assert.assertTrue(property1.hasMore);
|
||||
Assert.assertTrue(property1.required);
|
||||
Assert.assertTrue(property1.isPrimitiveType);
|
||||
@ -161,10 +161,10 @@ public class CSharpModelTest {
|
||||
|
||||
final CodegenProperty property3 = cm.vars.get(2);
|
||||
Assert.assertEquals(property3.baseName, "createdAt");
|
||||
Assert.assertEquals(property3.dataType, "DateTime?");
|
||||
Assert.assertEquals(property3.dataType, "DateTime");
|
||||
Assert.assertEquals(property3.name, "CreatedAt");
|
||||
Assert.assertNull(property3.defaultValue);
|
||||
Assert.assertEquals(property3.baseType, "DateTime?");
|
||||
Assert.assertEquals(property3.baseType, "DateTime");
|
||||
Assert.assertFalse(property3.hasMore);
|
||||
Assert.assertFalse(property3.required);
|
||||
}
|
||||
@ -209,7 +209,59 @@ public class CSharpModelTest {
|
||||
Assert.assertFalse(property2.required);
|
||||
Assert.assertTrue(property2.isPrimitiveType);
|
||||
Assert.assertTrue(property2.isContainer);
|
||||
|
||||
|
||||
final CodegenProperty property3 = cm.vars.get(2);
|
||||
Assert.assertEquals(property3.baseName, "name");
|
||||
Assert.assertEquals(property3.dataType, "string");
|
||||
Assert.assertEquals(property3.name, "Name");
|
||||
Assert.assertNull(property3.defaultValue);
|
||||
Assert.assertEquals(property3.baseType, "string");
|
||||
Assert.assertFalse(property3.hasMore);
|
||||
Assert.assertFalse(property3.required);
|
||||
Assert.assertTrue(property3.isPrimitiveType);
|
||||
}
|
||||
|
||||
@Test(description = "convert a model with a nullable property")
|
||||
public void nullablePropertyTest() {
|
||||
final Schema model = new Schema()
|
||||
.description("a sample model")
|
||||
.addProperties("id", new IntegerSchema().format(SchemaTypeUtil.INTEGER64_FORMAT).nullable(true))
|
||||
.addProperties("urls", new ArraySchema()
|
||||
.items(new StringSchema()))
|
||||
.addProperties("name", new StringSchema().nullable(true))
|
||||
.addRequiredItem("id");
|
||||
final DefaultCodegen codegen = new CSharpClientCodegen();
|
||||
OpenAPI openAPI = TestUtils.createOpenAPIWithOneSchema("sample", model);
|
||||
codegen.setOpenAPI(openAPI);
|
||||
final CodegenModel cm = codegen.fromModel("sample", model);
|
||||
|
||||
Assert.assertEquals(cm.name, "sample");
|
||||
Assert.assertEquals(cm.classname, "Sample");
|
||||
Assert.assertEquals(cm.description, "a sample model");
|
||||
Assert.assertEquals(cm.vars.size(), 3);
|
||||
|
||||
final CodegenProperty property1 = cm.vars.get(0);
|
||||
Assert.assertEquals(property1.baseName, "id");
|
||||
Assert.assertEquals(property1.dataType, "long?");
|
||||
Assert.assertEquals(property1.name, "Id");
|
||||
Assert.assertNull(property1.defaultValue);
|
||||
Assert.assertEquals(property1.baseType, "long?");
|
||||
Assert.assertTrue(property1.hasMore);
|
||||
Assert.assertTrue(property1.required);
|
||||
Assert.assertTrue(property1.isPrimitiveType);
|
||||
|
||||
final CodegenProperty property2 = cm.vars.get(1);
|
||||
Assert.assertEquals(property2.baseName, "urls");
|
||||
Assert.assertEquals(property2.dataType, "List<string>");
|
||||
Assert.assertEquals(property2.name, "Urls");
|
||||
Assert.assertNull(property2.defaultValue);
|
||||
Assert.assertEquals(property2.baseType, "List");
|
||||
Assert.assertTrue(property2.hasMore);
|
||||
Assert.assertEquals(property2.containerType, "array");
|
||||
Assert.assertFalse(property2.required);
|
||||
Assert.assertTrue(property2.isPrimitiveType);
|
||||
Assert.assertTrue(property2.isContainer);
|
||||
|
||||
final CodegenProperty property3 = cm.vars.get(2);
|
||||
Assert.assertEquals(property3.baseName, "name");
|
||||
Assert.assertEquals(property3.dataType, "string");
|
||||
@ -241,10 +293,10 @@ public class CSharpModelTest {
|
||||
|
||||
final CodegenProperty property1 = cm.vars.get(0);
|
||||
Assert.assertEquals(property1.baseName, "id");
|
||||
Assert.assertEquals(property1.dataType, "long?");
|
||||
Assert.assertEquals(property1.dataType, "long");
|
||||
Assert.assertEquals(property1.name, "Id");
|
||||
Assert.assertNull(property1.defaultValue);
|
||||
Assert.assertEquals(property1.baseType, "long?");
|
||||
Assert.assertEquals(property1.baseType, "long");
|
||||
Assert.assertTrue(property1.hasMore);
|
||||
Assert.assertTrue(property1.required);
|
||||
Assert.assertTrue(property1.isPrimitiveType);
|
||||
|
@ -1 +1 @@
|
||||
4.0.0-SNAPSHOT
|
||||
4.1.0-SNAPSHOT
|
@ -117,7 +117,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -176,7 +176,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
||||
**Binary** | **System.IO.Stream** | | [optional]
|
||||
**Date** | **DateTime** | |
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Uuid** | [**Guid**](Guid.md) | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**Password** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Uuid** | [**Guid**](Guid.md) | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional]
|
||||
|
||||
|
@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
||||
**Binary** | **System.IO.Stream** | | [optional]
|
||||
**Date** | **DateTime** | |
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Uuid** | [**Guid**](Guid.md) | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**Password** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Uuid** | [**Guid**](Guid.md) | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional]
|
||||
|
||||
|
@ -6,10 +6,10 @@
|
||||
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]
|
||||
**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]
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Code** | **int?** | | [optional]
|
||||
**Code** | **int** | | [optional]
|
||||
**Type** | **string** | | [optional]
|
||||
**Message** | **string** | | [optional]
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional]
|
||||
**ArrayArrayNumber** | **List<List<decimal>>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ArrayNumber** | **List<decimal?>** | | [optional]
|
||||
**ArrayNumber** | **List<decimal>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -6,7 +6,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ArrayOfString** | **List<string>** | | [optional]
|
||||
**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional]
|
||||
**ArrayArrayOfInteger** | **List<List<long>>** | | [optional]
|
||||
**ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ClassName** | **string** | |
|
||||
**Color** | **string** | | [optional] [default to "red"]
|
||||
**Declawed** | **bool?** | | [optional]
|
||||
**Declawed** | **bool** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Declawed** | **bool?** | | [optional]
|
||||
**Declawed** | **bool** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**Name** | **string** | | [default to "default-name"]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**EnumString** | **string** | | [optional]
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | **int?** | | [optional]
|
||||
**EnumNumber** | **double?** | | [optional]
|
||||
**EnumInteger** | **int** | | [optional]
|
||||
**EnumNumber** | **double** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -96,7 +96,7 @@ No authorization required
|
||||
|
||||
## FakeOuterBooleanSerialize
|
||||
|
||||
> bool? FakeOuterBooleanSerialize (bool? body = null)
|
||||
> bool FakeOuterBooleanSerialize (bool body = null)
|
||||
|
||||
|
||||
|
||||
@ -119,11 +119,11 @@ namespace Example
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var body = true; // bool? | Input boolean as post body (optional)
|
||||
var body = true; // bool | Input boolean as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
bool? result = apiInstance.FakeOuterBooleanSerialize(body);
|
||||
bool result = apiInstance.FakeOuterBooleanSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@ -142,11 +142,11 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | **bool?**| Input boolean as post body | [optional]
|
||||
**body** | **bool**| Input boolean as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
**bool?**
|
||||
**bool**
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -244,7 +244,7 @@ No authorization required
|
||||
|
||||
## FakeOuterNumberSerialize
|
||||
|
||||
> decimal? FakeOuterNumberSerialize (decimal? body = null)
|
||||
> decimal FakeOuterNumberSerialize (decimal body = null)
|
||||
|
||||
|
||||
|
||||
@ -267,11 +267,11 @@ namespace Example
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var body = 8.14; // decimal? | Input number as post body (optional)
|
||||
var body = 8.14; // decimal | Input number as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
decimal? result = apiInstance.FakeOuterNumberSerialize(body);
|
||||
decimal result = apiInstance.FakeOuterNumberSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@ -290,11 +290,11 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | **decimal?**| Input number as post body | [optional]
|
||||
**body** | **decimal**| Input number as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
**decimal?**
|
||||
**decimal**
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -613,7 +613,7 @@ No authorization required
|
||||
|
||||
## TestEndpointParameters
|
||||
|
||||
> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||
> 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
@ -640,18 +640,18 @@ namespace Example
|
||||
Configuration.Default.Password = "YOUR_PASSWORD";
|
||||
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var number = 8.14; // decimal? | None
|
||||
var _double = 1.2D; // double? | None
|
||||
var number = 8.14; // decimal | None
|
||||
var _double = 1.2D; // double | None
|
||||
var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None
|
||||
var _byte = BYTE_ARRAY_DATA_HERE; // byte[] | None
|
||||
var integer = 56; // int? | None (optional)
|
||||
var int32 = 56; // int? | None (optional)
|
||||
var int64 = 789; // long? | None (optional)
|
||||
var _float = 3.4F; // float? | None (optional)
|
||||
var integer = 56; // int | None (optional)
|
||||
var int32 = 56; // int | None (optional)
|
||||
var int64 = 789; // long | None (optional)
|
||||
var _float = 3.4F; // float | None (optional)
|
||||
var _string = _string_example; // string | None (optional)
|
||||
var binary = BINARY_DATA_HERE; // System.IO.Stream | None (optional)
|
||||
var date = 2013-10-20; // DateTime? | None (optional)
|
||||
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional)
|
||||
var date = 2013-10-20; // DateTime | None (optional)
|
||||
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None (optional)
|
||||
var password = password_example; // string | None (optional)
|
||||
var callback = callback_example; // string | None (optional)
|
||||
|
||||
@ -676,18 +676,18 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**number** | **decimal?**| None |
|
||||
**_double** | **double?**| None |
|
||||
**number** | **decimal**| None |
|
||||
**_double** | **double**| None |
|
||||
**patternWithoutDelimiter** | **string**| None |
|
||||
**_byte** | **byte[]**| None |
|
||||
**integer** | **int?**| None | [optional]
|
||||
**int32** | **int?**| None | [optional]
|
||||
**int64** | **long?**| None | [optional]
|
||||
**_float** | **float?**| None | [optional]
|
||||
**integer** | **int**| None | [optional]
|
||||
**int32** | **int**| None | [optional]
|
||||
**int64** | **long**| None | [optional]
|
||||
**_float** | **float**| None | [optional]
|
||||
**_string** | **string**| None | [optional]
|
||||
**binary** | **System.IO.Stream**| None | [optional]
|
||||
**date** | **DateTime?**| None | [optional]
|
||||
**dateTime** | **DateTime?**| None | [optional]
|
||||
**date** | **DateTime**| None | [optional]
|
||||
**dateTime** | **DateTime**| None | [optional]
|
||||
**password** | **string**| None | [optional]
|
||||
**callback** | **string**| None | [optional]
|
||||
|
||||
@ -718,7 +718,7 @@ void (empty response body)
|
||||
|
||||
## TestEnumParameters
|
||||
|
||||
> void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
|
||||
> void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
|
||||
|
||||
To test enum parameters
|
||||
|
||||
@ -745,8 +745,8 @@ namespace Example
|
||||
var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg)
|
||||
var enumQueryStringArray = enumQueryStringArray_example; // List<string> | Query parameter enum test (string array) (optional)
|
||||
var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg)
|
||||
var enumQueryInteger = 56; // int? | Query parameter enum test (double) (optional)
|
||||
var enumQueryDouble = 1.2D; // double? | Query parameter enum test (double) (optional)
|
||||
var enumQueryInteger = 56; // int | Query parameter enum test (double) (optional)
|
||||
var enumQueryDouble = 1.2D; // double | Query parameter enum test (double) (optional)
|
||||
var enumFormStringArray = new List<string>(); // List<string> | Form parameter enum test (string array) (optional) (default to $)
|
||||
var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg)
|
||||
|
||||
@ -775,8 +775,8 @@ Name | Type | Description | Notes
|
||||
**enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
|
||||
**enumQueryStringArray** | **List<string>**| Query parameter enum test (string array) | [optional]
|
||||
**enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
|
||||
**enumQueryInteger** | **int?**| Query parameter enum test (double) | [optional]
|
||||
**enumQueryDouble** | **double?**| Query parameter enum test (double) | [optional]
|
||||
**enumQueryInteger** | **int**| Query parameter enum test (double) | [optional]
|
||||
**enumQueryDouble** | **double**| Query parameter enum test (double) | [optional]
|
||||
**enumFormStringArray** | [**List<string>**](string.md)| Form parameter enum test (string array) | [optional] [default to $]
|
||||
**enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
|
||||
|
||||
@ -807,7 +807,7 @@ No authorization required
|
||||
|
||||
## TestGroupParameters
|
||||
|
||||
> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null)
|
||||
> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = null, bool booleanGroup = null, long int64Group = null)
|
||||
|
||||
Fake endpoint to test group parameters (optional)
|
||||
|
||||
@ -830,12 +830,12 @@ namespace Example
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var requiredStringGroup = 56; // int? | Required String in group parameters
|
||||
var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters
|
||||
var requiredInt64Group = 789; // long? | Required Integer in group parameters
|
||||
var stringGroup = 56; // int? | String in group parameters (optional)
|
||||
var booleanGroup = true; // bool? | Boolean in group parameters (optional)
|
||||
var int64Group = 789; // long? | Integer in group parameters (optional)
|
||||
var requiredStringGroup = 56; // int | Required String in group parameters
|
||||
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
||||
var requiredInt64Group = 789; // long | Required Integer in group parameters
|
||||
var stringGroup = 56; // int | String in group parameters (optional)
|
||||
var booleanGroup = true; // bool | Boolean in group parameters (optional)
|
||||
var int64Group = 789; // long | Integer in group parameters (optional)
|
||||
|
||||
try
|
||||
{
|
||||
@ -858,12 +858,12 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requiredStringGroup** | **int?**| Required String in group parameters |
|
||||
**requiredBooleanGroup** | **bool?**| Required Boolean in group parameters |
|
||||
**requiredInt64Group** | **long?**| Required Integer in group parameters |
|
||||
**stringGroup** | **int?**| String in group parameters | [optional]
|
||||
**booleanGroup** | **bool?**| Boolean in group parameters | [optional]
|
||||
**int64Group** | **long?**| Integer in group parameters | [optional]
|
||||
**requiredStringGroup** | **int**| Required String in group parameters |
|
||||
**requiredBooleanGroup** | **bool**| Required Boolean in group parameters |
|
||||
**requiredInt64Group** | **long**| Required Integer in group parameters |
|
||||
**stringGroup** | **int**| String in group parameters | [optional]
|
||||
**booleanGroup** | **bool**| Boolean in group parameters | [optional]
|
||||
**int64Group** | **long**| Integer in group parameters | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -5,18 +5,18 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int?** | | [optional]
|
||||
**Int32** | **int?** | | [optional]
|
||||
**Int64** | **long?** | | [optional]
|
||||
**Number** | **decimal?** | |
|
||||
**Float** | **float?** | | [optional]
|
||||
**Double** | **double?** | | [optional]
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
**String** | **string** | | [optional]
|
||||
**Byte** | **byte[]** | |
|
||||
**Binary** | **System.IO.Stream** | | [optional]
|
||||
**Date** | **DateTime?** | |
|
||||
**DateTime** | **DateTime?** | | [optional]
|
||||
**Uuid** | **Guid?** | | [optional]
|
||||
**Date** | **DateTime** | |
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**Password** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
**MapOfEnumString** | **Dictionary<string, string>** | | [optional]
|
||||
**DirectMap** | **Dictionary<string, bool?>** | | [optional]
|
||||
**IndirectMap** | **Dictionary<string, bool?>** | | [optional]
|
||||
**DirectMap** | **Dictionary<string, bool>** | | [optional]
|
||||
**IndirectMap** | **Dictionary<string, bool>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Uuid** | **Guid?** | | [optional]
|
||||
**DateTime** | **DateTime?** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | **int?** | | [optional]
|
||||
**Name** | **int** | | [optional]
|
||||
**Class** | **string** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -5,10 +5,10 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**_Name** | **int?** | |
|
||||
**SnakeCase** | **int?** | | [optional]
|
||||
**_Name** | **int** | |
|
||||
**SnakeCase** | **int** | | [optional]
|
||||
**Property** | **string** | | [optional]
|
||||
**_123Number** | **int?** | | [optional]
|
||||
**_123Number** | **int** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**JustNumber** | **decimal?** | | [optional]
|
||||
**JustNumber** | **decimal** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,12 +5,12 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**PetId** | **long?** | | [optional]
|
||||
**Quantity** | **int?** | | [optional]
|
||||
**ShipDate** | **DateTime?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**PetId** | **long** | | [optional]
|
||||
**Quantity** | **int** | | [optional]
|
||||
**ShipDate** | **DateTime** | | [optional]
|
||||
**Status** | **string** | Order Status | [optional]
|
||||
**Complete** | **bool?** | | [optional] [default to false]
|
||||
**Complete** | **bool** | | [optional] [default to false]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,9 +5,9 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MyNumber** | **decimal?** | | [optional]
|
||||
**MyNumber** | **decimal** | | [optional]
|
||||
**MyString** | **string** | | [optional]
|
||||
**MyBoolean** | **bool?** | | [optional]
|
||||
**MyBoolean** | **bool** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**Category** | [**Category**](Category.md) | | [optional]
|
||||
**Name** | **string** | |
|
||||
**PhotoUrls** | **List<string>** | |
|
||||
|
@ -94,7 +94,7 @@ void (empty response body)
|
||||
|
||||
## DeletePet
|
||||
|
||||
> void DeletePet (long? petId, string apiKey = null)
|
||||
> void DeletePet (long petId, string apiKey = null)
|
||||
|
||||
Deletes a pet
|
||||
|
||||
@ -118,7 +118,7 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long? | Pet id to delete
|
||||
var petId = 789; // long | Pet id to delete
|
||||
var apiKey = apiKey_example; // string | (optional)
|
||||
|
||||
try
|
||||
@ -142,7 +142,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| Pet id to delete |
|
||||
**petId** | **long**| Pet id to delete |
|
||||
**apiKey** | **string**| | [optional]
|
||||
|
||||
### Return type
|
||||
@ -330,7 +330,7 @@ Name | Type | Description | Notes
|
||||
|
||||
## GetPetById
|
||||
|
||||
> Pet GetPetById (long? petId)
|
||||
> Pet GetPetById (long petId)
|
||||
|
||||
Find pet by ID
|
||||
|
||||
@ -358,7 +358,7 @@ namespace Example
|
||||
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
|
||||
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long? | ID of pet to return
|
||||
var petId = 789; // long | ID of pet to return
|
||||
|
||||
try
|
||||
{
|
||||
@ -382,7 +382,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| ID of pet to return |
|
||||
**petId** | **long**| ID of pet to return |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -490,7 +490,7 @@ void (empty response body)
|
||||
|
||||
## UpdatePetWithForm
|
||||
|
||||
> void UpdatePetWithForm (long? petId, string name = null, string status = null)
|
||||
> void UpdatePetWithForm (long petId, string name = null, string status = null)
|
||||
|
||||
Updates a pet in the store with form data
|
||||
|
||||
@ -514,7 +514,7 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long? | ID of pet that needs to be updated
|
||||
var petId = 789; // long | ID of pet that needs to be updated
|
||||
var name = name_example; // string | Updated name of the pet (optional)
|
||||
var status = status_example; // string | Updated status of the pet (optional)
|
||||
|
||||
@ -539,7 +539,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| ID of pet that needs to be updated |
|
||||
**petId** | **long**| ID of pet that needs to be updated |
|
||||
**name** | **string**| Updated name of the pet | [optional]
|
||||
**status** | **string**| Updated status of the pet | [optional]
|
||||
|
||||
@ -569,7 +569,7 @@ void (empty response body)
|
||||
|
||||
## UploadFile
|
||||
|
||||
> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||
> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||
|
||||
uploads an image
|
||||
|
||||
@ -593,7 +593,7 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long? | ID of pet to update
|
||||
var petId = 789; // long | ID of pet to update
|
||||
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
|
||||
var file = BINARY_DATA_HERE; // System.IO.Stream | file to upload (optional)
|
||||
|
||||
@ -619,7 +619,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| ID of pet to update |
|
||||
**petId** | **long**| ID of pet to update |
|
||||
**additionalMetadata** | **string**| Additional data to pass to server | [optional]
|
||||
**file** | **System.IO.Stream**| file to upload | [optional]
|
||||
|
||||
@ -649,7 +649,7 @@ Name | Type | Description | Notes
|
||||
|
||||
## UploadFileWithRequiredFile
|
||||
|
||||
> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null)
|
||||
> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null)
|
||||
|
||||
uploads an image (required)
|
||||
|
||||
@ -673,7 +673,7 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long? | ID of pet to update
|
||||
var petId = 789; // long | ID of pet to update
|
||||
var requiredFile = BINARY_DATA_HERE; // System.IO.Stream | file to upload
|
||||
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
|
||||
|
||||
@ -699,7 +699,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| ID of pet to update |
|
||||
**petId** | **long**| ID of pet to update |
|
||||
**requiredFile** | **System.IO.Stream**| file to upload |
|
||||
**additionalMetadata** | **string**| Additional data to pass to server | [optional]
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**_Return** | **int?** | | [optional]
|
||||
**_Return** | **int** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**SpecialPropertyName** | **long?** | | [optional]
|
||||
**SpecialPropertyName** | **long** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -88,7 +88,7 @@ No authorization required
|
||||
|
||||
## GetInventory
|
||||
|
||||
> Dictionary<string, int?> GetInventory ()
|
||||
> Dictionary<string, int> GetInventory ()
|
||||
|
||||
Returns pet inventories by status
|
||||
|
||||
@ -120,7 +120,7 @@ namespace Example
|
||||
try
|
||||
{
|
||||
// Returns pet inventories by status
|
||||
Dictionary<string, int?> result = apiInstance.GetInventory();
|
||||
Dictionary<string, int> result = apiInstance.GetInventory();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@ -140,7 +140,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
**Dictionary<string, int?>**
|
||||
**Dictionary<string, int>**
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -164,7 +164,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
## GetOrderById
|
||||
|
||||
> Order GetOrderById (long? orderId)
|
||||
> Order GetOrderById (long orderId)
|
||||
|
||||
Find purchase order by ID
|
||||
|
||||
@ -187,7 +187,7 @@ namespace Example
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new StoreApi(Configuration.Default);
|
||||
var orderId = 789; // long? | ID of pet that needs to be fetched
|
||||
var orderId = 789; // long | ID of pet that needs to be fetched
|
||||
|
||||
try
|
||||
{
|
||||
@ -211,7 +211,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**orderId** | **long?**| ID of pet that needs to be fetched |
|
||||
**orderId** | **long**| ID of pet that needs to be fetched |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**Name** | **string** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -6,10 +6,10 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**StringItem** | **string** | | [default to "what"]
|
||||
**NumberItem** | **decimal?** | |
|
||||
**IntegerItem** | **int?** | |
|
||||
**BoolItem** | **bool?** | | [default to true]
|
||||
**ArrayItem** | **List<int?>** | |
|
||||
**NumberItem** | **decimal** | |
|
||||
**IntegerItem** | **int** | |
|
||||
**BoolItem** | **bool** | | [default to true]
|
||||
**ArrayItem** | **List<int>** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -6,10 +6,10 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**StringItem** | **string** | |
|
||||
**NumberItem** | **decimal?** | |
|
||||
**IntegerItem** | **int?** | |
|
||||
**BoolItem** | **bool?** | |
|
||||
**ArrayItem** | **List<int?>** | |
|
||||
**NumberItem** | **decimal** | |
|
||||
**IntegerItem** | **int** | |
|
||||
**BoolItem** | **bool** | |
|
||||
**ArrayItem** | **List<int>** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,14 +5,14 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**Username** | **string** | | [optional]
|
||||
**FirstName** | **string** | | [optional]
|
||||
**LastName** | **string** | | [optional]
|
||||
**Email** | **string** | | [optional]
|
||||
**Password** | **string** | | [optional]
|
||||
**Phone** | **string** | | [optional]
|
||||
**UserStatus** | **int?** | User Status | [optional]
|
||||
**UserStatus** | **int** | User Status | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -6,34 +6,34 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AttributeString** | **string** | | [optional]
|
||||
**AttributeNumber** | **decimal?** | | [optional]
|
||||
**AttributeInteger** | **int?** | | [optional]
|
||||
**AttributeBoolean** | **bool?** | | [optional]
|
||||
**WrappedArray** | **List<int?>** | | [optional]
|
||||
**AttributeNumber** | **decimal** | | [optional]
|
||||
**AttributeInteger** | **int** | | [optional]
|
||||
**AttributeBoolean** | **bool** | | [optional]
|
||||
**WrappedArray** | **List<int>** | | [optional]
|
||||
**NameString** | **string** | | [optional]
|
||||
**NameNumber** | **decimal?** | | [optional]
|
||||
**NameInteger** | **int?** | | [optional]
|
||||
**NameBoolean** | **bool?** | | [optional]
|
||||
**NameArray** | **List<int?>** | | [optional]
|
||||
**NameWrappedArray** | **List<int?>** | | [optional]
|
||||
**NameNumber** | **decimal** | | [optional]
|
||||
**NameInteger** | **int** | | [optional]
|
||||
**NameBoolean** | **bool** | | [optional]
|
||||
**NameArray** | **List<int>** | | [optional]
|
||||
**NameWrappedArray** | **List<int>** | | [optional]
|
||||
**PrefixString** | **string** | | [optional]
|
||||
**PrefixNumber** | **decimal?** | | [optional]
|
||||
**PrefixInteger** | **int?** | | [optional]
|
||||
**PrefixBoolean** | **bool?** | | [optional]
|
||||
**PrefixArray** | **List<int?>** | | [optional]
|
||||
**PrefixWrappedArray** | **List<int?>** | | [optional]
|
||||
**PrefixNumber** | **decimal** | | [optional]
|
||||
**PrefixInteger** | **int** | | [optional]
|
||||
**PrefixBoolean** | **bool** | | [optional]
|
||||
**PrefixArray** | **List<int>** | | [optional]
|
||||
**PrefixWrappedArray** | **List<int>** | | [optional]
|
||||
**NamespaceString** | **string** | | [optional]
|
||||
**NamespaceNumber** | **decimal?** | | [optional]
|
||||
**NamespaceInteger** | **int?** | | [optional]
|
||||
**NamespaceBoolean** | **bool?** | | [optional]
|
||||
**NamespaceArray** | **List<int?>** | | [optional]
|
||||
**NamespaceWrappedArray** | **List<int?>** | | [optional]
|
||||
**NamespaceNumber** | **decimal** | | [optional]
|
||||
**NamespaceInteger** | **int** | | [optional]
|
||||
**NamespaceBoolean** | **bool** | | [optional]
|
||||
**NamespaceArray** | **List<int>** | | [optional]
|
||||
**NamespaceWrappedArray** | **List<int>** | | [optional]
|
||||
**PrefixNsString** | **string** | | [optional]
|
||||
**PrefixNsNumber** | **decimal?** | | [optional]
|
||||
**PrefixNsInteger** | **int?** | | [optional]
|
||||
**PrefixNsBoolean** | **bool?** | | [optional]
|
||||
**PrefixNsArray** | **List<int?>** | | [optional]
|
||||
**PrefixNsWrappedArray** | **List<int?>** | | [optional]
|
||||
**PrefixNsNumber** | **decimal** | | [optional]
|
||||
**PrefixNsInteger** | **int** | | [optional]
|
||||
**PrefixNsBoolean** | **bool** | | [optional]
|
||||
**PrefixNsArray** | **List<int>** | | [optional]
|
||||
**PrefixNsWrappedArray** | **List<int>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -197,7 +197,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body)
|
||||
public ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
|
@ -53,8 +53,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input boolean as post body (optional)</param>
|
||||
/// <returns>bool?</returns>
|
||||
bool? FakeOuterBooleanSerialize (bool? body = null);
|
||||
/// <returns>bool</returns>
|
||||
bool FakeOuterBooleanSerialize (bool body = default(bool));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -64,8 +64,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input boolean as post body (optional)</param>
|
||||
/// <returns>ApiResponse of bool?</returns>
|
||||
ApiResponse<bool?> FakeOuterBooleanSerializeWithHttpInfo (bool? body = null);
|
||||
/// <returns>ApiResponse of bool</returns>
|
||||
ApiResponse<bool> FakeOuterBooleanSerializeWithHttpInfo (bool body = default(bool));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -75,7 +75,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null);
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite body = default(OuterComposite));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -86,7 +86,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null);
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = default(OuterComposite));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -95,8 +95,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input number as post body (optional)</param>
|
||||
/// <returns>decimal?</returns>
|
||||
decimal? FakeOuterNumberSerialize (decimal? body = null);
|
||||
/// <returns>decimal</returns>
|
||||
decimal FakeOuterNumberSerialize (decimal body = default(decimal));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input number as post body (optional)</param>
|
||||
/// <returns>ApiResponse of decimal?</returns>
|
||||
ApiResponse<decimal?> FakeOuterNumberSerializeWithHttpInfo (decimal? body = null);
|
||||
/// <returns>ApiResponse of decimal</returns>
|
||||
ApiResponse<decimal> FakeOuterNumberSerializeWithHttpInfo (decimal body = default(decimal));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -117,7 +117,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input string as post body (optional)</param>
|
||||
/// <returns>string</returns>
|
||||
string FakeOuterStringSerialize (string body = null);
|
||||
string FakeOuterStringSerialize (string body = default(string));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -128,7 +128,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input string as post body (optional)</param>
|
||||
/// <returns>ApiResponse of string</returns>
|
||||
ApiResponse<string> FakeOuterStringSerializeWithHttpInfo (string body = null);
|
||||
ApiResponse<string> FakeOuterStringSerializeWithHttpInfo (string body = default(string));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -216,7 +216,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -240,7 +240,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestEndpointParametersWithHttpInfo (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);
|
||||
ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string));
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
@ -257,7 +257,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
|
||||
/// <returns></returns>
|
||||
void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null);
|
||||
void TestEnumParameters (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
@ -275,7 +275,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null);
|
||||
ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
|
||||
/// <summary>
|
||||
/// Fake endpoint to test group parameters (optional)
|
||||
/// </summary>
|
||||
@ -290,7 +290,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
|
||||
/// <param name="int64Group">Integer in group parameters (optional)</param>
|
||||
/// <returns></returns>
|
||||
void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null);
|
||||
void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long));
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test group parameters (optional)
|
||||
@ -306,7 +306,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
|
||||
/// <param name="int64Group">Integer in group parameters (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestGroupParametersWithHttpInfo (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null);
|
||||
ApiResponse<Object> TestGroupParametersWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long));
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
@ -382,8 +382,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input boolean as post body (optional)</param>
|
||||
/// <returns>Task of bool?</returns>
|
||||
System.Threading.Tasks.Task<bool?> FakeOuterBooleanSerializeAsync (bool? body = null);
|
||||
/// <returns>Task of bool</returns>
|
||||
System.Threading.Tasks.Task<bool> FakeOuterBooleanSerializeAsync (bool body = default(bool));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -393,8 +393,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input boolean as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (bool?)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<bool?>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = null);
|
||||
/// <returns>Task of ApiResponse (bool)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<bool>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool body = default(bool));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -404,7 +404,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of OuterComposite</returns>
|
||||
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null);
|
||||
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = default(OuterComposite));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -415,7 +415,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (OuterComposite)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = default(OuterComposite));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -424,8 +424,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input number as post body (optional)</param>
|
||||
/// <returns>Task of decimal?</returns>
|
||||
System.Threading.Tasks.Task<decimal?> FakeOuterNumberSerializeAsync (decimal? body = null);
|
||||
/// <returns>Task of decimal</returns>
|
||||
System.Threading.Tasks.Task<decimal> FakeOuterNumberSerializeAsync (decimal body = default(decimal));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -435,8 +435,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input number as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (decimal?)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<decimal?>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = null);
|
||||
/// <returns>Task of ApiResponse (decimal)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<decimal>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal body = default(decimal));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -446,7 +446,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input string as post body (optional)</param>
|
||||
/// <returns>Task of string</returns>
|
||||
System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = null);
|
||||
System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = default(string));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -457,7 +457,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input string as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (string)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = default(string));
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -545,7 +545,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestEndpointParametersAsync (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);
|
||||
System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -569,7 +569,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (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);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string));
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
/// </summary>
|
||||
@ -586,7 +586,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null);
|
||||
System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// To test enum parameters
|
||||
@ -604,7 +604,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
|
||||
/// <summary>
|
||||
/// Fake endpoint to test group parameters (optional)
|
||||
/// </summary>
|
||||
@ -619,7 +619,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
|
||||
/// <param name="int64Group">Integer in group parameters (optional)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestGroupParametersAsync (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null);
|
||||
System.Threading.Tasks.Task TestGroupParametersAsync (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long));
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test group parameters (optional)
|
||||
@ -635,7 +635,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
|
||||
/// <param name="int64Group">Integer in group parameters (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long));
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
@ -951,10 +951,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input boolean as post body (optional)</param>
|
||||
/// <returns>bool?</returns>
|
||||
public bool? FakeOuterBooleanSerialize (bool? body = null)
|
||||
/// <returns>bool</returns>
|
||||
public bool FakeOuterBooleanSerialize (bool body = default(bool))
|
||||
{
|
||||
ApiResponse<bool?> localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body);
|
||||
ApiResponse<bool> localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -963,8 +963,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input boolean as post body (optional)</param>
|
||||
/// <returns>ApiResponse of bool?</returns>
|
||||
public ApiResponse< bool? > FakeOuterBooleanSerializeWithHttpInfo (bool? body = null)
|
||||
/// <returns>ApiResponse of bool</returns>
|
||||
public ApiResponse<bool> FakeOuterBooleanSerializeWithHttpInfo (bool body = default(bool))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/boolean";
|
||||
@ -1011,9 +1011,9 @@ namespace Org.OpenAPITools.Api
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return new ApiResponse<bool?>(localVarStatusCode,
|
||||
return new ApiResponse<bool>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
|
||||
(bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?)));
|
||||
(bool) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1021,10 +1021,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input boolean as post body (optional)</param>
|
||||
/// <returns>Task of bool?</returns>
|
||||
public async System.Threading.Tasks.Task<bool?> FakeOuterBooleanSerializeAsync (bool? body = null)
|
||||
/// <returns>Task of bool</returns>
|
||||
public async System.Threading.Tasks.Task<bool> FakeOuterBooleanSerializeAsync (bool body = default(bool))
|
||||
{
|
||||
ApiResponse<bool?> localVarResponse = await FakeOuterBooleanSerializeAsyncWithHttpInfo(body);
|
||||
ApiResponse<bool> localVarResponse = await FakeOuterBooleanSerializeAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -1034,8 +1034,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input boolean as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (bool?)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<bool?>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = null)
|
||||
/// <returns>Task of ApiResponse (bool)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<bool>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool body = default(bool))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/boolean";
|
||||
@ -1082,9 +1082,9 @@ namespace Org.OpenAPITools.Api
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return new ApiResponse<bool?>(localVarStatusCode,
|
||||
return new ApiResponse<bool>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
|
||||
(bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?)));
|
||||
(bool) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1093,7 +1093,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = default(OuterComposite))
|
||||
{
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
@ -1105,7 +1105,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null)
|
||||
public ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = default(OuterComposite))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/composite";
|
||||
@ -1163,7 +1163,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of OuterComposite</returns>
|
||||
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null)
|
||||
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = default(OuterComposite))
|
||||
{
|
||||
ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
@ -1176,7 +1176,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (OuterComposite)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = default(OuterComposite))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/composite";
|
||||
@ -1233,10 +1233,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input number as post body (optional)</param>
|
||||
/// <returns>decimal?</returns>
|
||||
public decimal? FakeOuterNumberSerialize (decimal? body = null)
|
||||
/// <returns>decimal</returns>
|
||||
public decimal FakeOuterNumberSerialize (decimal body = default(decimal))
|
||||
{
|
||||
ApiResponse<decimal?> localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body);
|
||||
ApiResponse<decimal> localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -1245,8 +1245,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input number as post body (optional)</param>
|
||||
/// <returns>ApiResponse of decimal?</returns>
|
||||
public ApiResponse< decimal? > FakeOuterNumberSerializeWithHttpInfo (decimal? body = null)
|
||||
/// <returns>ApiResponse of decimal</returns>
|
||||
public ApiResponse<decimal> FakeOuterNumberSerializeWithHttpInfo (decimal body = default(decimal))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/number";
|
||||
@ -1293,9 +1293,9 @@ namespace Org.OpenAPITools.Api
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return new ApiResponse<decimal?>(localVarStatusCode,
|
||||
return new ApiResponse<decimal>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
|
||||
(decimal?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal?)));
|
||||
(decimal) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1303,10 +1303,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input number as post body (optional)</param>
|
||||
/// <returns>Task of decimal?</returns>
|
||||
public async System.Threading.Tasks.Task<decimal?> FakeOuterNumberSerializeAsync (decimal? body = null)
|
||||
/// <returns>Task of decimal</returns>
|
||||
public async System.Threading.Tasks.Task<decimal> FakeOuterNumberSerializeAsync (decimal body = default(decimal))
|
||||
{
|
||||
ApiResponse<decimal?> localVarResponse = await FakeOuterNumberSerializeAsyncWithHttpInfo(body);
|
||||
ApiResponse<decimal> localVarResponse = await FakeOuterNumberSerializeAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -1316,8 +1316,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input number as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (decimal?)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<decimal?>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = null)
|
||||
/// <returns>Task of ApiResponse (decimal)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<decimal>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal body = default(decimal))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/number";
|
||||
@ -1364,9 +1364,9 @@ namespace Org.OpenAPITools.Api
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return new ApiResponse<decimal?>(localVarStatusCode,
|
||||
return new ApiResponse<decimal>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
|
||||
(decimal?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal?)));
|
||||
(decimal) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1375,7 +1375,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input string as post body (optional)</param>
|
||||
/// <returns>string</returns>
|
||||
public string FakeOuterStringSerialize (string body = null)
|
||||
public string FakeOuterStringSerialize (string body = default(string))
|
||||
{
|
||||
ApiResponse<string> localVarResponse = FakeOuterStringSerializeWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
@ -1387,7 +1387,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input string as post body (optional)</param>
|
||||
/// <returns>ApiResponse of string</returns>
|
||||
public ApiResponse< string > FakeOuterStringSerializeWithHttpInfo (string body = null)
|
||||
public ApiResponse<string> FakeOuterStringSerializeWithHttpInfo (string body = default(string))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/string";
|
||||
@ -1445,7 +1445,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input string as post body (optional)</param>
|
||||
/// <returns>Task of string</returns>
|
||||
public async System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = null)
|
||||
public async System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = default(string))
|
||||
{
|
||||
ApiResponse<string> localVarResponse = await FakeOuterStringSerializeAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
@ -1458,7 +1458,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">Input string as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (string)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = default(string))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/string";
|
||||
@ -1830,7 +1830,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body)
|
||||
public ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
@ -1980,7 +1980,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns></returns>
|
||||
public 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)
|
||||
public void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
|
||||
{
|
||||
TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||
}
|
||||
@ -2004,7 +2004,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestEndpointParametersWithHttpInfo (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)
|
||||
public ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
|
||||
{
|
||||
// verify the required parameter 'number' is set
|
||||
if (number == null)
|
||||
@ -2099,7 +2099,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestEndpointParametersAsync (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)
|
||||
public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
|
||||
{
|
||||
await TestEndpointParametersAsyncWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||
|
||||
@ -2124,7 +2124,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="password">None (optional)</param>
|
||||
/// <param name="callback">None (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (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)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
|
||||
{
|
||||
// verify the required parameter 'number' is set
|
||||
if (number == null)
|
||||
@ -2213,7 +2213,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
|
||||
/// <returns></returns>
|
||||
public void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
|
||||
public void TestEnumParameters (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
|
||||
{
|
||||
TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
}
|
||||
@ -2231,7 +2231,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
|
||||
public ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake";
|
||||
@ -2296,7 +2296,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
|
||||
public async System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
|
||||
{
|
||||
await TestEnumParametersAsyncWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
|
||||
@ -2315,7 +2315,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
|
||||
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
|
||||
{
|
||||
|
||||
var localVarPath = "/fake";
|
||||
@ -2378,7 +2378,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
|
||||
/// <param name="int64Group">Integer in group parameters (optional)</param>
|
||||
/// <returns></returns>
|
||||
public void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null)
|
||||
public void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long))
|
||||
{
|
||||
TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
}
|
||||
@ -2394,7 +2394,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
|
||||
/// <param name="int64Group">Integer in group parameters (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestGroupParametersWithHttpInfo (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null)
|
||||
public ApiResponse<Object> TestGroupParametersWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long))
|
||||
{
|
||||
// verify the required parameter 'requiredStringGroup' is set
|
||||
if (requiredStringGroup == null)
|
||||
@ -2463,7 +2463,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
|
||||
/// <param name="int64Group">Integer in group parameters (optional)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestGroupParametersAsync (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null)
|
||||
public async System.Threading.Tasks.Task TestGroupParametersAsync (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long))
|
||||
{
|
||||
await TestGroupParametersAsyncWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
|
||||
@ -2480,7 +2480,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="booleanGroup">Boolean in group parameters (optional)</param>
|
||||
/// <param name="int64Group">Integer in group parameters (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long))
|
||||
{
|
||||
// verify the required parameter 'requiredStringGroup' is set
|
||||
if (requiredStringGroup == null)
|
||||
|
@ -197,7 +197,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
|
||||
public ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
|
@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="petId">Pet id to delete</param>
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns></returns>
|
||||
void DeletePet (long? petId, string apiKey = null);
|
||||
void DeletePet (long petId, string apiKey = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="petId">Pet id to delete</param>
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> DeletePetWithHttpInfo (long? petId, string apiKey = null);
|
||||
ApiResponse<Object> DeletePetWithHttpInfo (long petId, string apiKey = default(string));
|
||||
/// <summary>
|
||||
/// Finds Pets by status
|
||||
/// </summary>
|
||||
@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <returns>Pet</returns>
|
||||
Pet GetPetById (long? petId);
|
||||
Pet GetPetById (long petId);
|
||||
|
||||
/// <summary>
|
||||
/// Find pet by ID
|
||||
@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <returns>ApiResponse of Pet</returns>
|
||||
ApiResponse<Pet> GetPetByIdWithHttpInfo (long? petId);
|
||||
ApiResponse<Pet> GetPetByIdWithHttpInfo (long petId);
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="name">Updated name of the pet (optional)</param>
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns></returns>
|
||||
void UpdatePetWithForm (long? petId, string name = null, string status = null);
|
||||
void UpdatePetWithForm (long petId, string name = default(string), string status = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
@ -176,7 +176,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="name">Updated name of the pet (optional)</param>
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdatePetWithFormWithHttpInfo (long? petId, string name = null, string status = null);
|
||||
ApiResponse<Object> UpdatePetWithFormWithHttpInfo (long petId, string name = default(string), string status = default(string));
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
/// </summary>
|
||||
@ -188,7 +188,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>ApiResponse</returns>
|
||||
ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null);
|
||||
ApiResponse UploadFile (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
|
||||
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
@ -201,7 +201,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>ApiResponse of ApiResponse</returns>
|
||||
ApiResponse<ApiResponse> UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null);
|
||||
ApiResponse<ApiResponse> UploadFileWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
|
||||
/// <summary>
|
||||
/// uploads an image (required)
|
||||
/// </summary>
|
||||
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="requiredFile">file to upload</param>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <returns>ApiResponse</returns>
|
||||
ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null);
|
||||
ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// uploads an image (required)
|
||||
@ -226,7 +226,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="requiredFile">file to upload</param>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <returns>ApiResponse of ApiResponse</returns>
|
||||
ApiResponse<ApiResponse> UploadFileWithRequiredFileWithHttpInfo (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null);
|
||||
ApiResponse<ApiResponse> UploadFileWithRequiredFileWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -260,7 +260,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="petId">Pet id to delete</param>
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task DeletePetAsync (long? petId, string apiKey = null);
|
||||
System.Threading.Tasks.Task DeletePetAsync (long petId, string apiKey = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
@ -272,7 +272,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="petId">Pet id to delete</param>
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long? petId, string apiKey = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long petId, string apiKey = default(string));
|
||||
/// <summary>
|
||||
/// Finds Pets by status
|
||||
/// </summary>
|
||||
@ -324,7 +324,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <returns>Task of Pet</returns>
|
||||
System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long? petId);
|
||||
System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long petId);
|
||||
|
||||
/// <summary>
|
||||
/// Find pet by ID
|
||||
@ -335,7 +335,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <returns>Task of ApiResponse (Pet)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long? petId);
|
||||
System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long petId);
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
@ -368,7 +368,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="name">Updated name of the pet (optional)</param>
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task UpdatePetWithFormAsync (long? petId, string name = null, string status = null);
|
||||
System.Threading.Tasks.Task UpdatePetWithFormAsync (long petId, string name = default(string), string status = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
@ -381,7 +381,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="name">Updated name of the pet (optional)</param>
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long? petId, string name = null, string status = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long petId, string name = default(string), string status = default(string));
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
/// </summary>
|
||||
@ -393,7 +393,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long? petId, string additionalMetadata = null, System.IO.Stream file = null);
|
||||
System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
|
||||
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
@ -406,7 +406,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>Task of ApiResponse (ApiResponse)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
|
||||
/// <summary>
|
||||
/// uploads an image (required)
|
||||
/// </summary>
|
||||
@ -418,7 +418,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="requiredFile">file to upload</param>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null);
|
||||
System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
|
||||
|
||||
/// <summary>
|
||||
/// uploads an image (required)
|
||||
@ -431,7 +431,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="requiredFile">file to upload</param>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <returns>Task of ApiResponse (ApiResponse)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -709,7 +709,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="petId">Pet id to delete</param>
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns></returns>
|
||||
public void DeletePet (long? petId, string apiKey = null)
|
||||
public void DeletePet (long petId, string apiKey = default(string))
|
||||
{
|
||||
DeletePetWithHttpInfo(petId, apiKey);
|
||||
}
|
||||
@ -721,7 +721,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="petId">Pet id to delete</param>
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> DeletePetWithHttpInfo (long? petId, string apiKey = null)
|
||||
public ApiResponse<Object> DeletePetWithHttpInfo (long petId, string apiKey = default(string))
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -782,7 +782,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="petId">Pet id to delete</param>
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task DeletePetAsync (long? petId, string apiKey = null)
|
||||
public async System.Threading.Tasks.Task DeletePetAsync (long petId, string apiKey = default(string))
|
||||
{
|
||||
await DeletePetAsyncWithHttpInfo(petId, apiKey);
|
||||
|
||||
@ -795,7 +795,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="petId">Pet id to delete</param>
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long? petId, string apiKey = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long petId, string apiKey = default(string))
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -867,7 +867,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="status">Status values that need to be considered for filter</param>
|
||||
/// <returns>ApiResponse of List<Pet></returns>
|
||||
public ApiResponse< List<Pet> > FindPetsByStatusWithHttpInfo (List<string> status)
|
||||
public ApiResponse<List<Pet>> FindPetsByStatusWithHttpInfo (List<string> status)
|
||||
{
|
||||
// verify the required parameter 'status' is set
|
||||
if (status == null)
|
||||
@ -1014,7 +1014,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="tags">Tags to filter by</param>
|
||||
/// <returns>ApiResponse of List<Pet></returns>
|
||||
public ApiResponse< List<Pet> > FindPetsByTagsWithHttpInfo (List<string> tags)
|
||||
public ApiResponse<List<Pet>> FindPetsByTagsWithHttpInfo (List<string> tags)
|
||||
{
|
||||
// verify the required parameter 'tags' is set
|
||||
if (tags == null)
|
||||
@ -1149,7 +1149,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <returns>Pet</returns>
|
||||
public Pet GetPetById (long? petId)
|
||||
public Pet GetPetById (long petId)
|
||||
{
|
||||
ApiResponse<Pet> localVarResponse = GetPetByIdWithHttpInfo(petId);
|
||||
return localVarResponse.Data;
|
||||
@ -1161,7 +1161,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <returns>ApiResponse of Pet</returns>
|
||||
public ApiResponse< Pet > GetPetByIdWithHttpInfo (long? petId)
|
||||
public ApiResponse<Pet> GetPetByIdWithHttpInfo (long petId)
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -1221,7 +1221,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <returns>Task of Pet</returns>
|
||||
public async System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long? petId)
|
||||
public async System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long petId)
|
||||
{
|
||||
ApiResponse<Pet> localVarResponse = await GetPetByIdAsyncWithHttpInfo(petId);
|
||||
return localVarResponse.Data;
|
||||
@ -1234,7 +1234,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <returns>Task of ApiResponse (Pet)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long? petId)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long petId)
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -1455,7 +1455,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="name">Updated name of the pet (optional)</param>
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns></returns>
|
||||
public void UpdatePetWithForm (long? petId, string name = null, string status = null)
|
||||
public void UpdatePetWithForm (long petId, string name = default(string), string status = default(string))
|
||||
{
|
||||
UpdatePetWithFormWithHttpInfo(petId, name, status);
|
||||
}
|
||||
@ -1468,7 +1468,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="name">Updated name of the pet (optional)</param>
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdatePetWithFormWithHttpInfo (long? petId, string name = null, string status = null)
|
||||
public ApiResponse<Object> UpdatePetWithFormWithHttpInfo (long petId, string name = default(string), string status = default(string))
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -1532,7 +1532,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="name">Updated name of the pet (optional)</param>
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task UpdatePetWithFormAsync (long? petId, string name = null, string status = null)
|
||||
public async System.Threading.Tasks.Task UpdatePetWithFormAsync (long petId, string name = default(string), string status = default(string))
|
||||
{
|
||||
await UpdatePetWithFormAsyncWithHttpInfo(petId, name, status);
|
||||
|
||||
@ -1546,7 +1546,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="name">Updated name of the pet (optional)</param>
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long? petId, string name = null, string status = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long petId, string name = default(string), string status = default(string))
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -1610,7 +1610,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>ApiResponse</returns>
|
||||
public ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||
public ApiResponse UploadFile (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
|
||||
{
|
||||
ApiResponse<ApiResponse> localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file);
|
||||
return localVarResponse.Data;
|
||||
@ -1624,7 +1624,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>ApiResponse of ApiResponse</returns>
|
||||
public ApiResponse< ApiResponse > UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||
public ApiResponse<ApiResponse> UploadFileWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -1689,7 +1689,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long? petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
|
||||
{
|
||||
ApiResponse<ApiResponse> localVarResponse = await UploadFileAsyncWithHttpInfo(petId, additionalMetadata, file);
|
||||
return localVarResponse.Data;
|
||||
@ -1704,7 +1704,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>Task of ApiResponse (ApiResponse)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -1769,7 +1769,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="requiredFile">file to upload</param>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <returns>ApiResponse</returns>
|
||||
public ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null)
|
||||
public ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
|
||||
{
|
||||
ApiResponse<ApiResponse> localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata);
|
||||
return localVarResponse.Data;
|
||||
@ -1783,7 +1783,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="requiredFile">file to upload</param>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <returns>ApiResponse of ApiResponse</returns>
|
||||
public ApiResponse< ApiResponse > UploadFileWithRequiredFileWithHttpInfo (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null)
|
||||
public ApiResponse<ApiResponse> UploadFileWithRequiredFileWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
@ -1851,7 +1851,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="requiredFile">file to upload</param>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
|
||||
{
|
||||
ApiResponse<ApiResponse> localVarResponse = await UploadFileWithRequiredFileAsyncWithHttpInfo(petId, requiredFile, additionalMetadata);
|
||||
return localVarResponse.Data;
|
||||
@ -1866,7 +1866,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="requiredFile">file to upload</param>
|
||||
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
|
||||
/// <returns>Task of ApiResponse (ApiResponse)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
|
||||
{
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null)
|
||||
|
@ -52,8 +52,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// Returns a map of status codes to quantities
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>Dictionary<string, int?></returns>
|
||||
Dictionary<string, int?> GetInventory ();
|
||||
/// <returns>Dictionary<string, int></returns>
|
||||
Dictionary<string, int> GetInventory ();
|
||||
|
||||
/// <summary>
|
||||
/// Returns pet inventories by status
|
||||
@ -62,8 +62,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// Returns a map of status codes to quantities
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of Dictionary<string, int?></returns>
|
||||
ApiResponse<Dictionary<string, int?>> GetInventoryWithHttpInfo ();
|
||||
/// <returns>ApiResponse of Dictionary<string, int></returns>
|
||||
ApiResponse<Dictionary<string, int>> GetInventoryWithHttpInfo ();
|
||||
/// <summary>
|
||||
/// Find purchase order by ID
|
||||
/// </summary>
|
||||
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Order</returns>
|
||||
Order GetOrderById (long? orderId);
|
||||
Order GetOrderById (long orderId);
|
||||
|
||||
/// <summary>
|
||||
/// Find purchase order by ID
|
||||
@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
ApiResponse<Order> GetOrderByIdWithHttpInfo (long? orderId);
|
||||
ApiResponse<Order> GetOrderByIdWithHttpInfo (long orderId);
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
@ -136,8 +136,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// Returns a map of status codes to quantities
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>Task of Dictionary<string, int?></returns>
|
||||
System.Threading.Tasks.Task<Dictionary<string, int?>> GetInventoryAsync ();
|
||||
/// <returns>Task of Dictionary<string, int></returns>
|
||||
System.Threading.Tasks.Task<Dictionary<string, int>> GetInventoryAsync ();
|
||||
|
||||
/// <summary>
|
||||
/// Returns pet inventories by status
|
||||
@ -146,8 +146,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// Returns a map of status codes to quantities
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>Task of ApiResponse (Dictionary<string, int?>)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo ();
|
||||
/// <returns>Task of ApiResponse (Dictionary<string, int>)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo ();
|
||||
/// <summary>
|
||||
/// Find purchase order by ID
|
||||
/// </summary>
|
||||
@ -157,7 +157,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Task of Order</returns>
|
||||
System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long? orderId);
|
||||
System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long orderId);
|
||||
|
||||
/// <summary>
|
||||
/// Find purchase order by ID
|
||||
@ -168,7 +168,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long? orderId);
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long orderId);
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
@ -434,10 +434,10 @@ namespace Org.OpenAPITools.Api
|
||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>Dictionary<string, int?></returns>
|
||||
public Dictionary<string, int?> GetInventory ()
|
||||
/// <returns>Dictionary<string, int></returns>
|
||||
public Dictionary<string, int> GetInventory ()
|
||||
{
|
||||
ApiResponse<Dictionary<string, int?>> localVarResponse = GetInventoryWithHttpInfo();
|
||||
ApiResponse<Dictionary<string, int>> localVarResponse = GetInventoryWithHttpInfo();
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -445,8 +445,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of Dictionary<string, int?></returns>
|
||||
public ApiResponse< Dictionary<string, int?> > GetInventoryWithHttpInfo ()
|
||||
/// <returns>ApiResponse of Dictionary<string, int></returns>
|
||||
public ApiResponse<Dictionary<string, int>> GetInventoryWithHttpInfo ()
|
||||
{
|
||||
|
||||
var localVarPath = "/store/inventory";
|
||||
@ -490,19 +490,19 @@ namespace Org.OpenAPITools.Api
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return new ApiResponse<Dictionary<string, int?>>(localVarStatusCode,
|
||||
return new ApiResponse<Dictionary<string, int>>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
|
||||
(Dictionary<string, int?>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>)));
|
||||
(Dictionary<string, int>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int>)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>Task of Dictionary<string, int?></returns>
|
||||
public async System.Threading.Tasks.Task<Dictionary<string, int?>> GetInventoryAsync ()
|
||||
/// <returns>Task of Dictionary<string, int></returns>
|
||||
public async System.Threading.Tasks.Task<Dictionary<string, int>> GetInventoryAsync ()
|
||||
{
|
||||
ApiResponse<Dictionary<string, int?>> localVarResponse = await GetInventoryAsyncWithHttpInfo();
|
||||
ApiResponse<Dictionary<string, int>> localVarResponse = await GetInventoryAsyncWithHttpInfo();
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -511,8 +511,8 @@ namespace Org.OpenAPITools.Api
|
||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>Task of ApiResponse (Dictionary<string, int?>)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo ()
|
||||
/// <returns>Task of ApiResponse (Dictionary<string, int>)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo ()
|
||||
{
|
||||
|
||||
var localVarPath = "/store/inventory";
|
||||
@ -556,9 +556,9 @@ namespace Org.OpenAPITools.Api
|
||||
if (exception != null) throw exception;
|
||||
}
|
||||
|
||||
return new ApiResponse<Dictionary<string, int?>>(localVarStatusCode,
|
||||
return new ApiResponse<Dictionary<string, int>>(localVarStatusCode,
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
|
||||
(Dictionary<string, int?>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>)));
|
||||
(Dictionary<string, int>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int>)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -567,7 +567,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Order</returns>
|
||||
public Order GetOrderById (long? orderId)
|
||||
public Order GetOrderById (long orderId)
|
||||
{
|
||||
ApiResponse<Order> localVarResponse = GetOrderByIdWithHttpInfo(orderId);
|
||||
return localVarResponse.Data;
|
||||
@ -579,7 +579,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
public ApiResponse< Order > GetOrderByIdWithHttpInfo (long? orderId)
|
||||
public ApiResponse<Order> GetOrderByIdWithHttpInfo (long orderId)
|
||||
{
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null)
|
||||
@ -634,7 +634,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Task of Order</returns>
|
||||
public async System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long? orderId)
|
||||
public async System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long orderId)
|
||||
{
|
||||
ApiResponse<Order> localVarResponse = await GetOrderByIdAsyncWithHttpInfo(orderId);
|
||||
return localVarResponse.Data;
|
||||
@ -647,7 +647,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long? orderId)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long orderId)
|
||||
{
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null)
|
||||
@ -714,7 +714,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
|
||||
public ApiResponse<Order> PlaceOrderWithHttpInfo (Order body)
|
||||
{
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
|
@ -1053,7 +1053,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">The name that needs to be fetched. Use user1 for testing.</param>
|
||||
/// <returns>ApiResponse of User</returns>
|
||||
public ApiResponse< User > GetUserByNameWithHttpInfo (string username)
|
||||
public ApiResponse<User> GetUserByNameWithHttpInfo (string username)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
@ -1190,7 +1190,7 @@ namespace Org.OpenAPITools.Api
|
||||
/// <param name="username">The user name for login</param>
|
||||
/// <param name="password">The password for login in clear text</param>
|
||||
/// <returns>ApiResponse of string</returns>
|
||||
public ApiResponse< string > LoginUserWithHttpInfo (string username, string password)
|
||||
public ApiResponse<string> LoginUserWithHttpInfo (string username, string password)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// AdditionalPropertiesBoolean
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AdditionalPropertiesBoolean : Dictionary<String, bool?>, IEquatable<AdditionalPropertiesBoolean>, IValidatableObject
|
||||
public partial class AdditionalPropertiesBoolean : Dictionary<String, bool>, IEquatable<AdditionalPropertiesBoolean>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AdditionalPropertiesBoolean" /> class.
|
||||
|
@ -44,7 +44,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <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))
|
||||
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.MapNumber = mapNumber;
|
||||
@ -69,25 +69,25 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets MapNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="map_number", EmitDefaultValue=false)]
|
||||
public Dictionary<string, decimal?> MapNumber { get; set; }
|
||||
public Dictionary<string, decimal> MapNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="map_integer", EmitDefaultValue=false)]
|
||||
public Dictionary<string, int?> MapInteger { get; set; }
|
||||
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; }
|
||||
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; }
|
||||
public Dictionary<string, List<int>> MapArrayInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MapArrayAnytype
|
||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// AdditionalPropertiesInteger
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AdditionalPropertiesInteger : Dictionary<String, int?>, IEquatable<AdditionalPropertiesInteger>, IValidatableObject
|
||||
public partial class AdditionalPropertiesInteger : Dictionary<String, int>, IEquatable<AdditionalPropertiesInteger>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AdditionalPropertiesInteger" /> class.
|
||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// AdditionalPropertiesNumber
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AdditionalPropertiesNumber : Dictionary<String, decimal?>, IEquatable<AdditionalPropertiesNumber>, IValidatableObject
|
||||
public partial class AdditionalPropertiesNumber : Dictionary<String, decimal>, IEquatable<AdditionalPropertiesNumber>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AdditionalPropertiesNumber" /> class.
|
||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="code">code.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="message">message.</param>
|
||||
public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string))
|
||||
public ApiResponse(int code = default(int), string type = default(string), string message = default(string))
|
||||
{
|
||||
this.Code = code;
|
||||
this.Type = type;
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Code
|
||||
/// </summary>
|
||||
[DataMember(Name="code", EmitDefaultValue=false)]
|
||||
public int? Code { get; set; }
|
||||
public int Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="arrayArrayNumber">arrayArrayNumber.</param>
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> arrayArrayNumber = default(List<List<decimal?>>))
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal>> arrayArrayNumber = default(List<List<decimal>>))
|
||||
{
|
||||
this.ArrayArrayNumber = arrayArrayNumber;
|
||||
}
|
||||
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets ArrayArrayNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="ArrayArrayNumber", EmitDefaultValue=false)]
|
||||
public List<List<decimal?>> ArrayArrayNumber { get; set; }
|
||||
public List<List<decimal>> ArrayArrayNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="arrayNumber">arrayNumber.</param>
|
||||
public ArrayOfNumberOnly(List<decimal?> arrayNumber = default(List<decimal?>))
|
||||
public ArrayOfNumberOnly(List<decimal> arrayNumber = default(List<decimal>))
|
||||
{
|
||||
this.ArrayNumber = arrayNumber;
|
||||
}
|
||||
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets ArrayNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="ArrayNumber", EmitDefaultValue=false)]
|
||||
public List<decimal?> ArrayNumber { get; set; }
|
||||
public List<decimal> ArrayNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="arrayOfString">arrayOfString.</param>
|
||||
/// <param name="arrayArrayOfInteger">arrayArrayOfInteger.</param>
|
||||
/// <param name="arrayArrayOfModel">arrayArrayOfModel.</param>
|
||||
public ArrayTest(List<string> arrayOfString = default(List<string>), List<List<long?>> arrayArrayOfInteger = default(List<List<long?>>), List<List<ReadOnlyFirst>> arrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
public ArrayTest(List<string> arrayOfString = default(List<string>), List<List<long>> arrayArrayOfInteger = default(List<List<long>>), List<List<ReadOnlyFirst>> arrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
{
|
||||
this.ArrayOfString = arrayOfString;
|
||||
this.ArrayArrayOfInteger = arrayArrayOfInteger;
|
||||
@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets ArrayArrayOfInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="array_array_of_integer", EmitDefaultValue=false)]
|
||||
public List<List<long?>> ArrayArrayOfInteger { get; set; }
|
||||
public List<List<long>> ArrayArrayOfInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ArrayArrayOfModel
|
||||
|
@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="Cat" /> class.
|
||||
/// </summary>
|
||||
/// <param name="declawed">declawed.</param>
|
||||
public Cat(bool? declawed = default(bool?), string className = default(string), string color = "red") : base(className, color)
|
||||
public Cat(bool declawed = default(bool), string className = default(string), string color = "red") : base(className, color)
|
||||
{
|
||||
this.Declawed = declawed;
|
||||
}
|
||||
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Declawed
|
||||
/// </summary>
|
||||
[DataMember(Name="declawed", EmitDefaultValue=false)]
|
||||
public bool? Declawed { get; set; }
|
||||
public bool Declawed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="CatAllOf" /> class.
|
||||
/// </summary>
|
||||
/// <param name="declawed">declawed.</param>
|
||||
public CatAllOf(bool? declawed = default(bool?))
|
||||
public CatAllOf(bool declawed = default(bool))
|
||||
{
|
||||
this.Declawed = declawed;
|
||||
}
|
||||
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Declawed
|
||||
/// </summary>
|
||||
[DataMember(Name="declawed", EmitDefaultValue=false)]
|
||||
public bool? Declawed { get; set; }
|
||||
public bool Declawed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name (required) (default to "default-name").</param>
|
||||
public Category(long? id = default(long?), string name = "default-name")
|
||||
public Category(long id = default(long), string name = "default-name")
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null)
|
||||
@ -59,7 +59,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
|
@ -51,7 +51,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="password">password (required).</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))
|
||||
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))
|
||||
{
|
||||
// to ensure "number" is required (not null)
|
||||
if (number == null)
|
||||
@ -108,37 +108,37 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Integer
|
||||
/// </summary>
|
||||
[DataMember(Name="integer", EmitDefaultValue=false)]
|
||||
public int? Integer { get; set; }
|
||||
public int Integer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int32
|
||||
/// </summary>
|
||||
[DataMember(Name="int32", EmitDefaultValue=false)]
|
||||
public int? Int32 { get; set; }
|
||||
public int Int32 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Int64
|
||||
/// </summary>
|
||||
[DataMember(Name="int64", EmitDefaultValue=false)]
|
||||
public long? Int64 { get; set; }
|
||||
public long Int64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Number
|
||||
/// </summary>
|
||||
[DataMember(Name="number", EmitDefaultValue=false)]
|
||||
public decimal? Number { get; set; }
|
||||
public decimal Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Float
|
||||
/// </summary>
|
||||
[DataMember(Name="float", EmitDefaultValue=false)]
|
||||
public float? Float { get; set; }
|
||||
public float Float { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Double
|
||||
/// </summary>
|
||||
[DataMember(Name="double", EmitDefaultValue=false)]
|
||||
public double? Double { get; set; }
|
||||
public double Double { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets String
|
||||
@ -163,19 +163,19 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
[DataMember(Name="date", EmitDefaultValue=false)]
|
||||
[JsonConverter(typeof(OpenAPIDateConverter))]
|
||||
public DateTime? Date { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DateTime
|
||||
/// </summary>
|
||||
[DataMember(Name="dateTime", EmitDefaultValue=false)]
|
||||
public DateTime? DateTime { get; set; }
|
||||
public DateTime DateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
[DataMember(Name="uuid", EmitDefaultValue=false)]
|
||||
public Guid? Uuid { get; set; }
|
||||
public Guid Uuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Password
|
||||
@ -351,62 +351,62 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Integer (int?) maximum
|
||||
if(this.Integer > (int?)100)
|
||||
// Integer (int) maximum
|
||||
if(this.Integer > (int)100)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" });
|
||||
}
|
||||
|
||||
// Integer (int?) minimum
|
||||
if(this.Integer < (int?)10)
|
||||
// Integer (int) minimum
|
||||
if(this.Integer < (int)10)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" });
|
||||
}
|
||||
|
||||
// Int32 (int?) maximum
|
||||
if(this.Int32 > (int?)200)
|
||||
// Int32 (int) maximum
|
||||
if(this.Int32 > (int)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// Int32 (int?) minimum
|
||||
if(this.Int32 < (int?)20)
|
||||
// Int32 (int) minimum
|
||||
if(this.Int32 < (int)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// Number (decimal?) maximum
|
||||
if(this.Number > (decimal?)543.2)
|
||||
// Number (decimal) maximum
|
||||
if(this.Number > (decimal)543.2)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" });
|
||||
}
|
||||
|
||||
// Number (decimal?) minimum
|
||||
if(this.Number < (decimal?)32.1)
|
||||
// Number (decimal) minimum
|
||||
if(this.Number < (decimal)32.1)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" });
|
||||
}
|
||||
|
||||
// Float (float?) maximum
|
||||
if(this.Float > (float?)987.6)
|
||||
// Float (float) maximum
|
||||
if(this.Float > (float)987.6)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" });
|
||||
}
|
||||
|
||||
// Float (float?) minimum
|
||||
if(this.Float < (float?)54.3)
|
||||
// Float (float) minimum
|
||||
if(this.Float < (float)54.3)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" });
|
||||
}
|
||||
|
||||
// Double (double?) maximum
|
||||
if(this.Double > (double?)123.4)
|
||||
// Double (double) maximum
|
||||
if(this.Double > (double)123.4)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" });
|
||||
}
|
||||
|
||||
// Double (double?) minimum
|
||||
if(this.Double < (double?)67.8)
|
||||
// Double (double) minimum
|
||||
if(this.Double < (double)67.8)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" });
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="mapOfEnumString">mapOfEnumString.</param>
|
||||
/// <param name="directMap">directMap.</param>
|
||||
/// <param name="indirectMap">indirectMap.</param>
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>), Dictionary<string, bool?> directMap = default(Dictionary<string, bool?>), Dictionary<string, bool?> indirectMap = default(Dictionary<string, bool?>))
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>), Dictionary<string, bool> directMap = default(Dictionary<string, bool>), Dictionary<string, bool> indirectMap = default(Dictionary<string, bool>))
|
||||
{
|
||||
this.MapMapOfString = mapMapOfString;
|
||||
this.MapOfEnumString = mapOfEnumString;
|
||||
@ -82,13 +82,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets DirectMap
|
||||
/// </summary>
|
||||
[DataMember(Name="direct_map", EmitDefaultValue=false)]
|
||||
public Dictionary<string, bool?> DirectMap { get; set; }
|
||||
public Dictionary<string, bool> DirectMap { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets IndirectMap
|
||||
/// </summary>
|
||||
[DataMember(Name="indirect_map", EmitDefaultValue=false)]
|
||||
public Dictionary<string, bool?> IndirectMap { get; set; }
|
||||
public Dictionary<string, bool> IndirectMap { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="map">map.</param>
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary<string, Animal> map = default(Dictionary<string, Animal>))
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary<string, Animal> map = default(Dictionary<string, Animal>))
|
||||
{
|
||||
this.Uuid = uuid;
|
||||
this.DateTime = dateTime;
|
||||
@ -47,13 +47,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
[DataMember(Name="uuid", EmitDefaultValue=false)]
|
||||
public Guid? Uuid { get; set; }
|
||||
public Guid Uuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DateTime
|
||||
/// </summary>
|
||||
[DataMember(Name="dateTime", EmitDefaultValue=false)]
|
||||
public DateTime? DateTime { get; set; }
|
||||
public DateTime DateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Map
|
||||
|
@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="_class">_class.</param>
|
||||
public Model200Response(int? name = default(int?), string _class = default(string))
|
||||
public Model200Response(int name = default(int), string _class = default(string))
|
||||
{
|
||||
this.Name = name;
|
||||
this.Class = _class;
|
||||
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name="name", EmitDefaultValue=false)]
|
||||
public int? Name { get; set; }
|
||||
public int Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Class
|
||||
|
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="property">property.</param>
|
||||
public Name(int? name = default(int?), string property = default(string))
|
||||
public Name(int name = default(int), string property = default(string))
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null)
|
||||
@ -59,13 +59,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets _Name
|
||||
/// </summary>
|
||||
[DataMember(Name="name", EmitDefaultValue=false)]
|
||||
public int? _Name { get; set; }
|
||||
public int _Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets SnakeCase
|
||||
/// </summary>
|
||||
[DataMember(Name="snake_case", EmitDefaultValue=false)]
|
||||
public int? SnakeCase { get; private set; }
|
||||
public int SnakeCase { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Property
|
||||
@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets _123Number
|
||||
/// </summary>
|
||||
[DataMember(Name="123Number", EmitDefaultValue=false)]
|
||||
public int? _123Number { get; private set; }
|
||||
public int _123Number { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="NumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="justNumber">justNumber.</param>
|
||||
public NumberOnly(decimal? justNumber = default(decimal?))
|
||||
public NumberOnly(decimal justNumber = default(decimal))
|
||||
{
|
||||
this.JustNumber = justNumber;
|
||||
}
|
||||
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets JustNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="JustNumber", EmitDefaultValue=false)]
|
||||
public decimal? JustNumber { get; set; }
|
||||
public decimal JustNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shipDate">shipDate.</param>
|
||||
/// <param name="status">Order Status.</param>
|
||||
/// <param name="complete">complete (default to false).</param>
|
||||
public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false)
|
||||
public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false)
|
||||
{
|
||||
this.Id = id;
|
||||
this.PetId = petId;
|
||||
@ -94,32 +94,32 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PetId
|
||||
/// </summary>
|
||||
[DataMember(Name="petId", EmitDefaultValue=false)]
|
||||
public long? PetId { get; set; }
|
||||
public long PetId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Quantity
|
||||
/// </summary>
|
||||
[DataMember(Name="quantity", EmitDefaultValue=false)]
|
||||
public int? Quantity { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShipDate
|
||||
/// </summary>
|
||||
[DataMember(Name="shipDate", EmitDefaultValue=false)]
|
||||
public DateTime? ShipDate { get; set; }
|
||||
public DateTime ShipDate { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Complete
|
||||
/// </summary>
|
||||
[DataMember(Name="complete", EmitDefaultValue=false)]
|
||||
public bool? Complete { get; set; }
|
||||
public bool Complete { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="myNumber">myNumber.</param>
|
||||
/// <param name="myString">myString.</param>
|
||||
/// <param name="myBoolean">myBoolean.</param>
|
||||
public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?))
|
||||
public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool))
|
||||
{
|
||||
this.MyNumber = myNumber;
|
||||
this.MyString = myString;
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets MyNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="my_number", EmitDefaultValue=false)]
|
||||
public decimal? MyNumber { get; set; }
|
||||
public decimal MyNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MyString
|
||||
@ -59,7 +59,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets MyBoolean
|
||||
/// </summary>
|
||||
[DataMember(Name="my_boolean", EmitDefaultValue=false)]
|
||||
public bool? MyBoolean { get; set; }
|
||||
public bool MyBoolean { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="photoUrls">photoUrls (required).</param>
|
||||
/// <param name="tags">tags.</param>
|
||||
/// <param name="status">pet status in the store.</param>
|
||||
public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List<string> photoUrls = default(List<string>), List<Tag> tags = default(List<Tag>), StatusEnum? status = default(StatusEnum?))
|
||||
public Pet(long id = default(long), Category category = default(Category), string name = default(string), List<string> photoUrls = default(List<string>), List<Tag> tags = default(List<Tag>), StatusEnum? status = default(StatusEnum?))
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null)
|
||||
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Category
|
||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="Return" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_return">_return.</param>
|
||||
public Return(int? _return = default(int?))
|
||||
public Return(int _return = default(int))
|
||||
{
|
||||
this._Return = _return;
|
||||
}
|
||||
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets _Return
|
||||
/// </summary>
|
||||
[DataMember(Name="return", EmitDefaultValue=false)]
|
||||
public int? _Return { get; set; }
|
||||
public int _Return { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||
/// </summary>
|
||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||
public SpecialModelName(long? specialPropertyName = default(long?))
|
||||
public SpecialModelName(long specialPropertyName = default(long))
|
||||
{
|
||||
this.SpecialPropertyName = specialPropertyName;
|
||||
}
|
||||
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets SpecialPropertyName
|
||||
/// </summary>
|
||||
[DataMember(Name="$special[property.name]", EmitDefaultValue=false)]
|
||||
public long? SpecialPropertyName { get; set; }
|
||||
public long SpecialPropertyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
public Tag(long? id = default(long?), string name = default(string))
|
||||
public Tag(long id = default(long), string name = default(string))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
|
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="integerItem">integerItem (required).</param>
|
||||
/// <param name="boolItem">boolItem (required) (default to true).</param>
|
||||
/// <param name="arrayItem">arrayItem (required).</param>
|
||||
public TypeHolderDefault(string stringItem = "what", decimal? numberItem = default(decimal?), int? integerItem = default(int?), bool? boolItem = true, List<int?> arrayItem = default(List<int?>))
|
||||
public TypeHolderDefault(string stringItem = "what", decimal numberItem = default(decimal), int integerItem = default(int), bool boolItem = true, List<int> arrayItem = default(List<int>))
|
||||
{
|
||||
// to ensure "stringItem" is required (not null)
|
||||
if (stringItem == null)
|
||||
@ -107,25 +107,25 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets NumberItem
|
||||
/// </summary>
|
||||
[DataMember(Name="number_item", EmitDefaultValue=false)]
|
||||
public decimal? NumberItem { get; set; }
|
||||
public decimal NumberItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets IntegerItem
|
||||
/// </summary>
|
||||
[DataMember(Name="integer_item", EmitDefaultValue=false)]
|
||||
public int? IntegerItem { get; set; }
|
||||
public int IntegerItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BoolItem
|
||||
/// </summary>
|
||||
[DataMember(Name="bool_item", EmitDefaultValue=false)]
|
||||
public bool? BoolItem { get; set; }
|
||||
public bool BoolItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ArrayItem
|
||||
/// </summary>
|
||||
[DataMember(Name="array_item", EmitDefaultValue=false)]
|
||||
public List<int?> ArrayItem { get; set; }
|
||||
public List<int> ArrayItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="integerItem">integerItem (required).</param>
|
||||
/// <param name="boolItem">boolItem (required).</param>
|
||||
/// <param name="arrayItem">arrayItem (required).</param>
|
||||
public TypeHolderExample(string stringItem = default(string), decimal? numberItem = default(decimal?), int? integerItem = default(int?), bool? boolItem = default(bool?), List<int?> arrayItem = default(List<int?>))
|
||||
public TypeHolderExample(string stringItem = default(string), decimal numberItem = default(decimal), int integerItem = default(int), bool boolItem = default(bool), List<int> arrayItem = default(List<int>))
|
||||
{
|
||||
// to ensure "stringItem" is required (not null)
|
||||
if (stringItem == null)
|
||||
@ -107,25 +107,25 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets NumberItem
|
||||
/// </summary>
|
||||
[DataMember(Name="number_item", EmitDefaultValue=false)]
|
||||
public decimal? NumberItem { get; set; }
|
||||
public decimal NumberItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets IntegerItem
|
||||
/// </summary>
|
||||
[DataMember(Name="integer_item", EmitDefaultValue=false)]
|
||||
public int? IntegerItem { get; set; }
|
||||
public int IntegerItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BoolItem
|
||||
/// </summary>
|
||||
[DataMember(Name="bool_item", EmitDefaultValue=false)]
|
||||
public bool? BoolItem { get; set; }
|
||||
public bool BoolItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ArrayItem
|
||||
/// </summary>
|
||||
[DataMember(Name="array_item", EmitDefaultValue=false)]
|
||||
public List<int?> ArrayItem { get; set; }
|
||||
public List<int> ArrayItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -41,7 +41,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="password">password.</param>
|
||||
/// <param name="phone">phone.</param>
|
||||
/// <param name="userStatus">User Status.</param>
|
||||
public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?))
|
||||
public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Username = username;
|
||||
@ -57,7 +57,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Username
|
||||
@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <value>User Status</value>
|
||||
[DataMember(Name="userStatus", EmitDefaultValue=false)]
|
||||
public int? UserStatus { get; set; }
|
||||
public int UserStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="prefixNsBoolean">prefixNsBoolean.</param>
|
||||
/// <param name="prefixNsArray">prefixNsArray.</param>
|
||||
/// <param name="prefixNsWrappedArray">prefixNsWrappedArray.</param>
|
||||
public XmlItem(string attributeString = default(string), decimal? attributeNumber = default(decimal?), int? attributeInteger = default(int?), bool? attributeBoolean = default(bool?), List<int?> wrappedArray = default(List<int?>), string nameString = default(string), decimal? nameNumber = default(decimal?), int? nameInteger = default(int?), bool? nameBoolean = default(bool?), List<int?> nameArray = default(List<int?>), List<int?> nameWrappedArray = default(List<int?>), string prefixString = default(string), decimal? prefixNumber = default(decimal?), int? prefixInteger = default(int?), bool? prefixBoolean = default(bool?), List<int?> prefixArray = default(List<int?>), List<int?> prefixWrappedArray = default(List<int?>), string namespaceString = default(string), decimal? namespaceNumber = default(decimal?), int? namespaceInteger = default(int?), bool? namespaceBoolean = default(bool?), List<int?> namespaceArray = default(List<int?>), List<int?> namespaceWrappedArray = default(List<int?>), string prefixNsString = default(string), decimal? prefixNsNumber = default(decimal?), int? prefixNsInteger = default(int?), bool? prefixNsBoolean = default(bool?), List<int?> prefixNsArray = default(List<int?>), List<int?> prefixNsWrappedArray = default(List<int?>))
|
||||
public XmlItem(string attributeString = default(string), decimal attributeNumber = default(decimal), int attributeInteger = default(int), bool attributeBoolean = default(bool), List<int> wrappedArray = default(List<int>), string nameString = default(string), decimal nameNumber = default(decimal), int nameInteger = default(int), bool nameBoolean = default(bool), List<int> nameArray = default(List<int>), List<int> nameWrappedArray = default(List<int>), string prefixString = default(string), decimal prefixNumber = default(decimal), int prefixInteger = default(int), bool prefixBoolean = default(bool), List<int> prefixArray = default(List<int>), List<int> prefixWrappedArray = default(List<int>), string namespaceString = default(string), decimal namespaceNumber = default(decimal), int namespaceInteger = default(int), bool namespaceBoolean = default(bool), List<int> namespaceArray = default(List<int>), List<int> namespaceWrappedArray = default(List<int>), string prefixNsString = default(string), decimal prefixNsNumber = default(decimal), int prefixNsInteger = default(int), bool prefixNsBoolean = default(bool), List<int> prefixNsArray = default(List<int>), List<int> prefixNsWrappedArray = default(List<int>))
|
||||
{
|
||||
this.AttributeString = attributeString;
|
||||
this.AttributeNumber = attributeNumber;
|
||||
@ -105,25 +105,25 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets AttributeNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="attribute_number", EmitDefaultValue=false)]
|
||||
public decimal? AttributeNumber { get; set; }
|
||||
public decimal AttributeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AttributeInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="attribute_integer", EmitDefaultValue=false)]
|
||||
public int? AttributeInteger { get; set; }
|
||||
public int AttributeInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AttributeBoolean
|
||||
/// </summary>
|
||||
[DataMember(Name="attribute_boolean", EmitDefaultValue=false)]
|
||||
public bool? AttributeBoolean { get; set; }
|
||||
public bool AttributeBoolean { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets WrappedArray
|
||||
/// </summary>
|
||||
[DataMember(Name="wrapped_array", EmitDefaultValue=false)]
|
||||
public List<int?> WrappedArray { get; set; }
|
||||
public List<int> WrappedArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NameString
|
||||
@ -135,31 +135,31 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets NameNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="name_number", EmitDefaultValue=false)]
|
||||
public decimal? NameNumber { get; set; }
|
||||
public decimal NameNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NameInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="name_integer", EmitDefaultValue=false)]
|
||||
public int? NameInteger { get; set; }
|
||||
public int NameInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NameBoolean
|
||||
/// </summary>
|
||||
[DataMember(Name="name_boolean", EmitDefaultValue=false)]
|
||||
public bool? NameBoolean { get; set; }
|
||||
public bool NameBoolean { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NameArray
|
||||
/// </summary>
|
||||
[DataMember(Name="name_array", EmitDefaultValue=false)]
|
||||
public List<int?> NameArray { get; set; }
|
||||
public List<int> NameArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NameWrappedArray
|
||||
/// </summary>
|
||||
[DataMember(Name="name_wrapped_array", EmitDefaultValue=false)]
|
||||
public List<int?> NameWrappedArray { get; set; }
|
||||
public List<int> NameWrappedArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixString
|
||||
@ -171,31 +171,31 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets PrefixNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_number", EmitDefaultValue=false)]
|
||||
public decimal? PrefixNumber { get; set; }
|
||||
public decimal PrefixNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_integer", EmitDefaultValue=false)]
|
||||
public int? PrefixInteger { get; set; }
|
||||
public int PrefixInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixBoolean
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_boolean", EmitDefaultValue=false)]
|
||||
public bool? PrefixBoolean { get; set; }
|
||||
public bool PrefixBoolean { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixArray
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_array", EmitDefaultValue=false)]
|
||||
public List<int?> PrefixArray { get; set; }
|
||||
public List<int> PrefixArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixWrappedArray
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_wrapped_array", EmitDefaultValue=false)]
|
||||
public List<int?> PrefixWrappedArray { get; set; }
|
||||
public List<int> PrefixWrappedArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NamespaceString
|
||||
@ -207,31 +207,31 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets NamespaceNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="namespace_number", EmitDefaultValue=false)]
|
||||
public decimal? NamespaceNumber { get; set; }
|
||||
public decimal NamespaceNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NamespaceInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="namespace_integer", EmitDefaultValue=false)]
|
||||
public int? NamespaceInteger { get; set; }
|
||||
public int NamespaceInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NamespaceBoolean
|
||||
/// </summary>
|
||||
[DataMember(Name="namespace_boolean", EmitDefaultValue=false)]
|
||||
public bool? NamespaceBoolean { get; set; }
|
||||
public bool NamespaceBoolean { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NamespaceArray
|
||||
/// </summary>
|
||||
[DataMember(Name="namespace_array", EmitDefaultValue=false)]
|
||||
public List<int?> NamespaceArray { get; set; }
|
||||
public List<int> NamespaceArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NamespaceWrappedArray
|
||||
/// </summary>
|
||||
[DataMember(Name="namespace_wrapped_array", EmitDefaultValue=false)]
|
||||
public List<int?> NamespaceWrappedArray { get; set; }
|
||||
public List<int> NamespaceWrappedArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixNsString
|
||||
@ -243,31 +243,31 @@ namespace Org.OpenAPITools.Model
|
||||
/// Gets or Sets PrefixNsNumber
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_ns_number", EmitDefaultValue=false)]
|
||||
public decimal? PrefixNsNumber { get; set; }
|
||||
public decimal PrefixNsNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixNsInteger
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_ns_integer", EmitDefaultValue=false)]
|
||||
public int? PrefixNsInteger { get; set; }
|
||||
public int PrefixNsInteger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixNsBoolean
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_ns_boolean", EmitDefaultValue=false)]
|
||||
public bool? PrefixNsBoolean { get; set; }
|
||||
public bool PrefixNsBoolean { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixNsArray
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_ns_array", EmitDefaultValue=false)]
|
||||
public List<int?> PrefixNsArray { get; set; }
|
||||
public List<int> PrefixNsArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PrefixNsWrappedArray
|
||||
/// </summary>
|
||||
[DataMember(Name="prefix_ns_wrapped_array", EmitDefaultValue=false)]
|
||||
public List<int?> PrefixNsWrappedArray { get; set; }
|
||||
public List<int> PrefixNsWrappedArray { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -1 +1 @@
|
||||
4.0.1-SNAPSHOT
|
||||
4.1.0-SNAPSHOT
|
@ -64,7 +64,7 @@ Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-p
|
||||
## Getting Started
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -74,10 +74,11 @@ namespace Example
|
||||
{
|
||||
public class Example
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new AnotherFakeApi(Configuration.Default);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
@ -86,9 +87,11 @@ namespace Example
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,10 +6,10 @@
|
||||
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]
|
||||
**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]
|
||||
|
@ -19,7 +19,7 @@ To test special tags and operation ID starting with number
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -29,9 +29,10 @@ namespace Example
|
||||
{
|
||||
public class Call123TestSpecialTagsExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new AnotherFakeApi(Configuration.Default);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
@ -40,9 +41,11 @@ namespace Example
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -69,6 +72,11 @@ No authorization required
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Code** | **int?** | | [optional]
|
||||
**Code** | **int** | | [optional]
|
||||
**Type** | **string** | | [optional]
|
||||
**Message** | **string** | | [optional]
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional]
|
||||
**ArrayArrayNumber** | **List<List<decimal>>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ArrayNumber** | **List<decimal?>** | | [optional]
|
||||
**ArrayNumber** | **List<decimal>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -6,7 +6,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ArrayOfString** | **List<string>** | | [optional]
|
||||
**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional]
|
||||
**ArrayArrayOfInteger** | **List<List<long>>** | | [optional]
|
||||
**ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ClassName** | **string** | |
|
||||
**Color** | **string** | | [optional] [default to "red"]
|
||||
**Declawed** | **bool?** | | [optional]
|
||||
**Declawed** | **bool** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Declawed** | **bool?** | | [optional]
|
||||
**Declawed** | **bool** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**Name** | **string** | | [default to "default-name"]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**EnumString** | **string** | | [optional]
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | **int?** | | [optional]
|
||||
**EnumNumber** | **double?** | | [optional]
|
||||
**EnumInteger** | **int** | | [optional]
|
||||
**EnumNumber** | **double** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -31,7 +31,7 @@ this route creates an XmlItem
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -41,9 +41,10 @@ namespace Example
|
||||
{
|
||||
public class CreateXmlItemExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var xmlItem = new XmlItem(); // XmlItem | XmlItem Body
|
||||
|
||||
try
|
||||
@ -51,9 +52,11 @@ namespace Example
|
||||
// creates an XmlItem
|
||||
apiInstance.CreateXmlItem(xmlItem);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.CreateXmlItem: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -80,6 +83,11 @@ No authorization required
|
||||
- **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
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -88,7 +96,7 @@ No authorization required
|
||||
|
||||
## FakeOuterBooleanSerialize
|
||||
|
||||
> bool? FakeOuterBooleanSerialize (bool? body = null)
|
||||
> bool FakeOuterBooleanSerialize (bool body = null)
|
||||
|
||||
|
||||
|
||||
@ -97,7 +105,7 @@ Test serialization of outer boolean types
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -107,19 +115,22 @@ namespace Example
|
||||
{
|
||||
public class FakeOuterBooleanSerializeExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var body = true; // bool? | Input boolean as post body (optional)
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var body = true; // bool | Input boolean as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
bool? result = apiInstance.FakeOuterBooleanSerialize(body);
|
||||
bool result = apiInstance.FakeOuterBooleanSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.FakeOuterBooleanSerialize: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -131,11 +142,11 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | **bool?**| Input boolean as post body | [optional]
|
||||
**body** | **bool**| Input boolean as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
**bool?**
|
||||
**bool**
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -146,6 +157,11 @@ No authorization required
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Output boolean | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -163,7 +179,7 @@ Test serialization of object with outer number type
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -173,9 +189,10 @@ namespace Example
|
||||
{
|
||||
public class FakeOuterCompositeSerializeExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
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)
|
||||
|
||||
try
|
||||
@ -183,9 +200,11 @@ namespace Example
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.FakeOuterCompositeSerialize: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -212,6 +231,11 @@ No authorization required
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Output composite | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -220,7 +244,7 @@ No authorization required
|
||||
|
||||
## FakeOuterNumberSerialize
|
||||
|
||||
> decimal? FakeOuterNumberSerialize (decimal? body = null)
|
||||
> decimal FakeOuterNumberSerialize (decimal body = null)
|
||||
|
||||
|
||||
|
||||
@ -229,7 +253,7 @@ Test serialization of outer number types
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -239,19 +263,22 @@ namespace Example
|
||||
{
|
||||
public class FakeOuterNumberSerializeExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var body = 8.14; // decimal? | Input number as post body (optional)
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var body = 8.14; // decimal | Input number as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
decimal? result = apiInstance.FakeOuterNumberSerialize(body);
|
||||
decimal result = apiInstance.FakeOuterNumberSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.FakeOuterNumberSerialize: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -263,11 +290,11 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | **decimal?**| Input number as post body | [optional]
|
||||
**body** | **decimal**| Input number as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
**decimal?**
|
||||
**decimal**
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -278,6 +305,11 @@ No authorization required
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Output number | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -295,7 +327,7 @@ Test serialization of outer string types
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -305,9 +337,10 @@ namespace Example
|
||||
{
|
||||
public class FakeOuterStringSerializeExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var body = body_example; // string | Input string as post body (optional)
|
||||
|
||||
try
|
||||
@ -315,9 +348,11 @@ namespace Example
|
||||
string result = apiInstance.FakeOuterStringSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.FakeOuterStringSerialize: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -344,6 +379,11 @@ No authorization required
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: */*
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Output string | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -361,7 +401,7 @@ For this test, the body for this request much reference a schema named `File`.
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -371,18 +411,21 @@ namespace Example
|
||||
{
|
||||
public class TestBodyWithFileSchemaExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithFileSchema(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestBodyWithFileSchema: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -409,6 +452,11 @@ No authorization required
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -424,7 +472,7 @@ No authorization required
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -434,9 +482,10 @@ namespace Example
|
||||
{
|
||||
public class TestBodyWithQueryParamsExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
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 |
|
||||
|
||||
@ -444,9 +493,11 @@ namespace Example
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParams(query, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestBodyWithQueryParams: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -474,6 +525,11 @@ No authorization required
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | Success | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -491,7 +547,7 @@ To test \"client\" model
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -501,9 +557,10 @@ namespace Example
|
||||
{
|
||||
public class TestClientModelExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
@ -512,9 +569,11 @@ namespace Example
|
||||
ModelClient result = apiInstance.TestClientModel(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestClientModel: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -541,6 +600,11 @@ No authorization required
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -549,7 +613,7 @@ No authorization required
|
||||
|
||||
## TestEndpointParameters
|
||||
|
||||
> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||
> 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
@ -558,7 +622,7 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -568,25 +632,26 @@ namespace Example
|
||||
{
|
||||
public class TestEndpointParametersExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure HTTP basic authorization: http_basic_test
|
||||
Configuration.Default.Username = "YOUR_USERNAME";
|
||||
Configuration.Default.Password = "YOUR_PASSWORD";
|
||||
|
||||
var apiInstance = new FakeApi();
|
||||
var number = 8.14; // decimal? | None
|
||||
var _double = 1.2D; // double? | None
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var number = 8.14; // decimal | None
|
||||
var _double = 1.2D; // double | None
|
||||
var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None
|
||||
var _byte = BYTE_ARRAY_DATA_HERE; // byte[] | None
|
||||
var integer = 56; // int? | None (optional)
|
||||
var int32 = 56; // int? | None (optional)
|
||||
var int64 = 789; // long? | None (optional)
|
||||
var _float = 3.4F; // float? | None (optional)
|
||||
var integer = 56; // int | None (optional)
|
||||
var int32 = 56; // int | None (optional)
|
||||
var int64 = 789; // long | None (optional)
|
||||
var _float = 3.4F; // float | None (optional)
|
||||
var _string = _string_example; // string | None (optional)
|
||||
var binary = BINARY_DATA_HERE; // System.IO.Stream | None (optional)
|
||||
var date = 2013-10-20; // DateTime? | None (optional)
|
||||
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional)
|
||||
var date = 2013-10-20; // DateTime | None (optional)
|
||||
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None (optional)
|
||||
var password = password_example; // string | None (optional)
|
||||
var callback = callback_example; // string | None (optional)
|
||||
|
||||
@ -595,9 +660,11 @@ namespace Example
|
||||
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestEndpointParameters: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -609,18 +676,18 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**number** | **decimal?**| None |
|
||||
**_double** | **double?**| None |
|
||||
**number** | **decimal**| None |
|
||||
**_double** | **double**| None |
|
||||
**patternWithoutDelimiter** | **string**| None |
|
||||
**_byte** | **byte[]**| None |
|
||||
**integer** | **int?**| None | [optional]
|
||||
**int32** | **int?**| None | [optional]
|
||||
**int64** | **long?**| None | [optional]
|
||||
**_float** | **float?**| None | [optional]
|
||||
**integer** | **int**| None | [optional]
|
||||
**int32** | **int**| None | [optional]
|
||||
**int64** | **long**| None | [optional]
|
||||
**_float** | **float**| None | [optional]
|
||||
**_string** | **string**| None | [optional]
|
||||
**binary** | **System.IO.Stream**| None | [optional]
|
||||
**date** | **DateTime?**| None | [optional]
|
||||
**dateTime** | **DateTime?**| None | [optional]
|
||||
**date** | **DateTime**| None | [optional]
|
||||
**dateTime** | **DateTime**| None | [optional]
|
||||
**password** | **string**| None | [optional]
|
||||
**callback** | **string**| None | [optional]
|
||||
|
||||
@ -637,6 +704,12 @@ void (empty response body)
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **400** | Invalid username supplied | - |
|
||||
| **404** | User not found | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -645,7 +718,7 @@ void (empty response body)
|
||||
|
||||
## TestEnumParameters
|
||||
|
||||
> void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
|
||||
> void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
|
||||
|
||||
To test enum parameters
|
||||
|
||||
@ -654,7 +727,7 @@ To test enum parameters
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -664,15 +737,16 @@ namespace Example
|
||||
{
|
||||
public class TestEnumParametersExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var enumHeaderStringArray = enumHeaderStringArray_example; // List<string> | Header parameter enum test (string array) (optional)
|
||||
var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg)
|
||||
var enumQueryStringArray = enumQueryStringArray_example; // List<string> | Query parameter enum test (string array) (optional)
|
||||
var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg)
|
||||
var enumQueryInteger = 56; // int? | Query parameter enum test (double) (optional)
|
||||
var enumQueryDouble = 1.2D; // double? | Query parameter enum test (double) (optional)
|
||||
var enumQueryInteger = 56; // int | Query parameter enum test (double) (optional)
|
||||
var enumQueryDouble = 1.2D; // double | Query parameter enum test (double) (optional)
|
||||
var enumFormStringArray = new List<string>(); // List<string> | Form parameter enum test (string array) (optional) (default to $)
|
||||
var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg)
|
||||
|
||||
@ -681,9 +755,11 @@ namespace Example
|
||||
// To test enum parameters
|
||||
apiInstance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestEnumParameters: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -699,8 +775,8 @@ Name | Type | Description | Notes
|
||||
**enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
|
||||
**enumQueryStringArray** | **List<string>**| Query parameter enum test (string array) | [optional]
|
||||
**enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
|
||||
**enumQueryInteger** | **int?**| Query parameter enum test (double) | [optional]
|
||||
**enumQueryDouble** | **double?**| Query parameter enum test (double) | [optional]
|
||||
**enumQueryInteger** | **int**| Query parameter enum test (double) | [optional]
|
||||
**enumQueryDouble** | **double**| Query parameter enum test (double) | [optional]
|
||||
**enumFormStringArray** | [**List<string>**](string.md)| Form parameter enum test (string array) | [optional] [default to $]
|
||||
**enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
|
||||
|
||||
@ -717,6 +793,12 @@ No authorization required
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **400** | Invalid request | - |
|
||||
| **404** | Not found | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -725,7 +807,7 @@ No authorization required
|
||||
|
||||
## TestGroupParameters
|
||||
|
||||
> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null)
|
||||
> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = null, bool booleanGroup = null, long int64Group = null)
|
||||
|
||||
Fake endpoint to test group parameters (optional)
|
||||
|
||||
@ -734,7 +816,7 @@ Fake endpoint to test group parameters (optional)
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -744,24 +826,27 @@ namespace Example
|
||||
{
|
||||
public class TestGroupParametersExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var requiredStringGroup = 56; // int? | Required String in group parameters
|
||||
var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters
|
||||
var requiredInt64Group = 789; // long? | Required Integer in group parameters
|
||||
var stringGroup = 56; // int? | String in group parameters (optional)
|
||||
var booleanGroup = true; // bool? | Boolean in group parameters (optional)
|
||||
var int64Group = 789; // long? | Integer in group parameters (optional)
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var requiredStringGroup = 56; // int | Required String in group parameters
|
||||
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
||||
var requiredInt64Group = 789; // long | Required Integer in group parameters
|
||||
var stringGroup = 56; // int | String in group parameters (optional)
|
||||
var booleanGroup = true; // bool | Boolean in group parameters (optional)
|
||||
var int64Group = 789; // long | Integer in group parameters (optional)
|
||||
|
||||
try
|
||||
{
|
||||
// Fake endpoint to test group parameters (optional)
|
||||
apiInstance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestGroupParameters: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -773,12 +858,12 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requiredStringGroup** | **int?**| Required String in group parameters |
|
||||
**requiredBooleanGroup** | **bool?**| Required Boolean in group parameters |
|
||||
**requiredInt64Group** | **long?**| Required Integer in group parameters |
|
||||
**stringGroup** | **int?**| String in group parameters | [optional]
|
||||
**booleanGroup** | **bool?**| Boolean in group parameters | [optional]
|
||||
**int64Group** | **long?**| Integer in group parameters | [optional]
|
||||
**requiredStringGroup** | **int**| Required String in group parameters |
|
||||
**requiredBooleanGroup** | **bool**| Required Boolean in group parameters |
|
||||
**requiredInt64Group** | **long**| Required Integer in group parameters |
|
||||
**stringGroup** | **int**| String in group parameters | [optional]
|
||||
**booleanGroup** | **bool**| Boolean in group parameters | [optional]
|
||||
**int64Group** | **long**| Integer in group parameters | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@ -793,6 +878,11 @@ No authorization required
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **400** | Someting wrong | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -808,7 +898,7 @@ test inline additionalProperties
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -818,9 +908,10 @@ namespace Example
|
||||
{
|
||||
public class TestInlineAdditionalPropertiesExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
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
|
||||
|
||||
try
|
||||
@ -828,9 +919,11 @@ namespace Example
|
||||
// test inline additionalProperties
|
||||
apiInstance.TestInlineAdditionalProperties(param);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestInlineAdditionalProperties: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -857,6 +950,11 @@ No authorization required
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -872,7 +970,7 @@ test json serialization of form data
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -882,9 +980,10 @@ namespace Example
|
||||
{
|
||||
public class TestJsonFormDataExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(Configuration.Default);
|
||||
var param = param_example; // string | field1
|
||||
var param2 = param2_example; // string | field2
|
||||
|
||||
@ -893,9 +992,11 @@ namespace Example
|
||||
// test json serialization of form data
|
||||
apiInstance.TestJsonFormData(param, param2);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeApi.TestJsonFormData: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -923,6 +1024,11 @@ No authorization required
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -19,7 +19,7 @@ To test class name in snake case
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -29,14 +29,15 @@ namespace Example
|
||||
{
|
||||
public class TestClassnameExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure API key authorization: api_key_query
|
||||
Configuration.Default.AddApiKey("api_key_query", "YOUR_API_KEY");
|
||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||
|
||||
var apiInstance = new FakeClassnameTags123Api();
|
||||
var apiInstance = new FakeClassnameTags123Api(Configuration.Default);
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
@ -45,9 +46,11 @@ namespace Example
|
||||
ModelClient result = apiInstance.TestClassname(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling FakeClassnameTags123Api.TestClassname: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -74,6 +77,11 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -5,18 +5,18 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Integer** | **int?** | | [optional]
|
||||
**Int32** | **int?** | | [optional]
|
||||
**Int64** | **long?** | | [optional]
|
||||
**Number** | **decimal?** | |
|
||||
**Float** | **float?** | | [optional]
|
||||
**Double** | **double?** | | [optional]
|
||||
**Integer** | **int** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
**String** | **string** | | [optional]
|
||||
**Byte** | **byte[]** | |
|
||||
**Binary** | **System.IO.Stream** | | [optional]
|
||||
**Date** | **DateTime?** | |
|
||||
**DateTime** | **DateTime?** | | [optional]
|
||||
**Uuid** | **Guid?** | | [optional]
|
||||
**Date** | **DateTime** | |
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**Password** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
**MapOfEnumString** | **Dictionary<string, string>** | | [optional]
|
||||
**DirectMap** | **Dictionary<string, bool?>** | | [optional]
|
||||
**IndirectMap** | **Dictionary<string, bool?>** | | [optional]
|
||||
**DirectMap** | **Dictionary<string, bool>** | | [optional]
|
||||
**IndirectMap** | **Dictionary<string, bool>** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Uuid** | **Guid?** | | [optional]
|
||||
**DateTime** | **DateTime?** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | **int?** | | [optional]
|
||||
**Name** | **int** | | [optional]
|
||||
**Class** | **string** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -5,10 +5,10 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**_Name** | **int?** | |
|
||||
**SnakeCase** | **int?** | | [optional]
|
||||
**_Name** | **int** | |
|
||||
**SnakeCase** | **int** | | [optional]
|
||||
**Property** | **string** | | [optional]
|
||||
**_123Number** | **int?** | | [optional]
|
||||
**_123Number** | **int** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**JustNumber** | **decimal?** | | [optional]
|
||||
**JustNumber** | **decimal** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,12 +5,12 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**PetId** | **long?** | | [optional]
|
||||
**Quantity** | **int?** | | [optional]
|
||||
**ShipDate** | **DateTime?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**PetId** | **long** | | [optional]
|
||||
**Quantity** | **int** | | [optional]
|
||||
**ShipDate** | **DateTime** | | [optional]
|
||||
**Status** | **string** | Order Status | [optional]
|
||||
**Complete** | **bool?** | | [optional] [default to false]
|
||||
**Complete** | **bool** | | [optional] [default to false]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,9 +5,9 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MyNumber** | **decimal?** | | [optional]
|
||||
**MyNumber** | **decimal** | | [optional]
|
||||
**MyString** | **string** | | [optional]
|
||||
**MyBoolean** | **bool?** | | [optional]
|
||||
**MyBoolean** | **bool** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**Category** | [**Category**](Category.md) | | [optional]
|
||||
**Name** | **string** | |
|
||||
**PhotoUrls** | **List<string>** | |
|
||||
|
@ -25,7 +25,7 @@ Add a new pet to the store
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -35,12 +35,13 @@ namespace Example
|
||||
{
|
||||
public class AddPetExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
@ -48,9 +49,11 @@ namespace Example
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.AddPet: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -77,6 +80,12 @@ void (empty response body)
|
||||
- **Content-Type**: application/json, application/xml
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **405** | Invalid input | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -85,14 +94,14 @@ void (empty response body)
|
||||
|
||||
## DeletePet
|
||||
|
||||
> void DeletePet (long? petId, string apiKey = null)
|
||||
> void DeletePet (long petId, string apiKey = null)
|
||||
|
||||
Deletes a pet
|
||||
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -102,13 +111,14 @@ namespace Example
|
||||
{
|
||||
public class DeletePetExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var petId = 789; // long? | Pet id to delete
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long | Pet id to delete
|
||||
var apiKey = apiKey_example; // string | (optional)
|
||||
|
||||
try
|
||||
@ -116,9 +126,11 @@ namespace Example
|
||||
// Deletes a pet
|
||||
apiInstance.DeletePet(petId, apiKey);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.DeletePet: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -130,7 +142,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| Pet id to delete |
|
||||
**petId** | **long**| Pet id to delete |
|
||||
**apiKey** | **string**| | [optional]
|
||||
|
||||
### Return type
|
||||
@ -146,6 +158,12 @@ void (empty response body)
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid pet value | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -154,7 +172,7 @@ void (empty response body)
|
||||
|
||||
## FindPetsByStatus
|
||||
|
||||
> List<Pet> FindPetsByStatus (List<string> status)
|
||||
> List<Pet> FindPetsByStatus (List<string> status)
|
||||
|
||||
Finds Pets by status
|
||||
|
||||
@ -163,7 +181,7 @@ Multiple status values can be provided with comma separated strings
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -173,23 +191,26 @@ namespace Example
|
||||
{
|
||||
public class FindPetsByStatusExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var status = status_example; // List<string> | Status values that need to be considered for filter
|
||||
|
||||
try
|
||||
{
|
||||
// Finds Pets by status
|
||||
List<Pet> result = apiInstance.FindPetsByStatus(status);
|
||||
List<Pet> result = apiInstance.FindPetsByStatus(status);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.FindPetsByStatus: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -205,7 +226,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<Pet>**](Pet.md)
|
||||
[**List<Pet>**](Pet.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -216,6 +237,12 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid status value | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -224,7 +251,7 @@ Name | Type | Description | Notes
|
||||
|
||||
## FindPetsByTags
|
||||
|
||||
> List<Pet> FindPetsByTags (List<string> tags)
|
||||
> List<Pet> FindPetsByTags (List<string> tags)
|
||||
|
||||
Finds Pets by tags
|
||||
|
||||
@ -233,7 +260,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -243,23 +270,26 @@ namespace Example
|
||||
{
|
||||
public class FindPetsByTagsExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var tags = new List<string>(); // List<string> | Tags to filter by
|
||||
|
||||
try
|
||||
{
|
||||
// Finds Pets by tags
|
||||
List<Pet> result = apiInstance.FindPetsByTags(tags);
|
||||
List<Pet> result = apiInstance.FindPetsByTags(tags);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.FindPetsByTags: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -275,7 +305,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<Pet>**](Pet.md)
|
||||
[**List<Pet>**](Pet.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -286,6 +316,12 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -294,7 +330,7 @@ Name | Type | Description | Notes
|
||||
|
||||
## GetPetById
|
||||
|
||||
> Pet GetPetById (long? petId)
|
||||
> Pet GetPetById (long petId)
|
||||
|
||||
Find pet by ID
|
||||
|
||||
@ -303,7 +339,7 @@ Returns a single pet
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -313,15 +349,16 @@ namespace Example
|
||||
{
|
||||
public class GetPetByIdExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure API key authorization: api_key
|
||||
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
|
||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var petId = 789; // long? | ID of pet to return
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long | ID of pet to return
|
||||
|
||||
try
|
||||
{
|
||||
@ -329,9 +366,11 @@ namespace Example
|
||||
Pet result = apiInstance.GetPetById(petId);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.GetPetById: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -343,7 +382,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| ID of pet to return |
|
||||
**petId** | **long**| ID of pet to return |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -358,6 +397,13 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid ID supplied | - |
|
||||
| **404** | Pet not found | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -373,7 +419,7 @@ Update an existing pet
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -383,12 +429,13 @@ namespace Example
|
||||
{
|
||||
public class UpdatePetExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
@ -396,9 +443,11 @@ namespace Example
|
||||
// Update an existing pet
|
||||
apiInstance.UpdatePet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.UpdatePet: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -425,6 +474,14 @@ void (empty response body)
|
||||
- **Content-Type**: application/json, application/xml
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid ID supplied | - |
|
||||
| **404** | Pet not found | - |
|
||||
| **405** | Validation exception | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -433,14 +490,14 @@ void (empty response body)
|
||||
|
||||
## UpdatePetWithForm
|
||||
|
||||
> void UpdatePetWithForm (long? petId, string name = null, string status = null)
|
||||
> void UpdatePetWithForm (long petId, string name = null, string status = null)
|
||||
|
||||
Updates a pet in the store with form data
|
||||
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -450,13 +507,14 @@ namespace Example
|
||||
{
|
||||
public class UpdatePetWithFormExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var petId = 789; // long? | ID of pet that needs to be updated
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long | ID of pet that needs to be updated
|
||||
var name = name_example; // string | Updated name of the pet (optional)
|
||||
var status = status_example; // string | Updated status of the pet (optional)
|
||||
|
||||
@ -465,9 +523,11 @@ namespace Example
|
||||
// Updates a pet in the store with form data
|
||||
apiInstance.UpdatePetWithForm(petId, name, status);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.UpdatePetWithForm: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -479,7 +539,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| ID of pet that needs to be updated |
|
||||
**petId** | **long**| ID of pet that needs to be updated |
|
||||
**name** | **string**| Updated name of the pet | [optional]
|
||||
**status** | **string**| Updated status of the pet | [optional]
|
||||
|
||||
@ -496,6 +556,11 @@ void (empty response body)
|
||||
- **Content-Type**: application/x-www-form-urlencoded
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **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)
|
||||
@ -504,14 +569,14 @@ void (empty response body)
|
||||
|
||||
## UploadFile
|
||||
|
||||
> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||
> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||
|
||||
uploads an image
|
||||
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -521,13 +586,14 @@ namespace Example
|
||||
{
|
||||
public class UploadFileExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var petId = 789; // long? | ID of pet to update
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long | ID of pet to update
|
||||
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
|
||||
var file = BINARY_DATA_HERE; // System.IO.Stream | file to upload (optional)
|
||||
|
||||
@ -537,9 +603,11 @@ namespace Example
|
||||
ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, file);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.UploadFile: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -551,7 +619,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| ID of pet to update |
|
||||
**petId** | **long**| ID of pet to update |
|
||||
**additionalMetadata** | **string**| Additional data to pass to server | [optional]
|
||||
**file** | **System.IO.Stream**| file to upload | [optional]
|
||||
|
||||
@ -568,6 +636,11 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -576,14 +649,14 @@ Name | Type | Description | Notes
|
||||
|
||||
## UploadFileWithRequiredFile
|
||||
|
||||
> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null)
|
||||
> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null)
|
||||
|
||||
uploads an image (required)
|
||||
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -593,13 +666,14 @@ namespace Example
|
||||
{
|
||||
public class UploadFileWithRequiredFileExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure OAuth2 access token for authorization: petstore_auth
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var petId = 789; // long? | ID of pet to update
|
||||
var apiInstance = new PetApi(Configuration.Default);
|
||||
var petId = 789; // long | ID of pet to update
|
||||
var requiredFile = BINARY_DATA_HERE; // System.IO.Stream | file to upload
|
||||
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
|
||||
|
||||
@ -609,9 +683,11 @@ namespace Example
|
||||
ApiResponse result = apiInstance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling PetApi.UploadFileWithRequiredFile: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -623,7 +699,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **long?**| ID of pet to update |
|
||||
**petId** | **long**| ID of pet to update |
|
||||
**requiredFile** | **System.IO.Stream**| file to upload |
|
||||
**additionalMetadata** | **string**| Additional data to pass to server | [optional]
|
||||
|
||||
@ -640,6 +716,11 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**_Return** | **int?** | | [optional]
|
||||
**_Return** | **int** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**SpecialPropertyName** | **long?** | | [optional]
|
||||
**SpecialPropertyName** | **long** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
|
@ -22,7 +22,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -32,9 +32,10 @@ namespace Example
|
||||
{
|
||||
public class DeleteOrderExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new StoreApi();
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new StoreApi(Configuration.Default);
|
||||
var orderId = orderId_example; // string | ID of the order that needs to be deleted
|
||||
|
||||
try
|
||||
@ -42,9 +43,11 @@ namespace Example
|
||||
// Delete purchase order by ID
|
||||
apiInstance.DeleteOrder(orderId);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling StoreApi.DeleteOrder: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -71,6 +74,12 @@ No authorization required
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **400** | Invalid ID supplied | - |
|
||||
| **404** | Order not found | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -79,7 +88,7 @@ No authorization required
|
||||
|
||||
## GetInventory
|
||||
|
||||
> Dictionary<string, int?> GetInventory ()
|
||||
> Dictionary<string, int> GetInventory ()
|
||||
|
||||
Returns pet inventories by status
|
||||
|
||||
@ -88,7 +97,7 @@ Returns a map of status codes to quantities
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -98,24 +107,27 @@ namespace Example
|
||||
{
|
||||
public class GetInventoryExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
// Configure API key authorization: api_key
|
||||
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
|
||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
|
||||
|
||||
var apiInstance = new StoreApi();
|
||||
var apiInstance = new StoreApi(Configuration.Default);
|
||||
|
||||
try
|
||||
{
|
||||
// Returns pet inventories by status
|
||||
Dictionary<string, int?> result = apiInstance.GetInventory();
|
||||
Dictionary<string, int> result = apiInstance.GetInventory();
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling StoreApi.GetInventory: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -128,7 +140,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
**Dictionary<string, int?>**
|
||||
**Dictionary<string, int>**
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -139,6 +151,11 @@ This endpoint does not need any parameter.
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -147,7 +164,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
## GetOrderById
|
||||
|
||||
> Order GetOrderById (long? orderId)
|
||||
> Order GetOrderById (long orderId)
|
||||
|
||||
Find purchase order by ID
|
||||
|
||||
@ -156,7 +173,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -166,10 +183,11 @@ namespace Example
|
||||
{
|
||||
public class GetOrderByIdExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new StoreApi();
|
||||
var orderId = 789; // long? | ID of pet that needs to be fetched
|
||||
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new StoreApi(Configuration.Default);
|
||||
var orderId = 789; // long | ID of pet that needs to be fetched
|
||||
|
||||
try
|
||||
{
|
||||
@ -177,9 +195,11 @@ namespace Example
|
||||
Order result = apiInstance.GetOrderById(orderId);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling StoreApi.GetOrderById: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -191,7 +211,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**orderId** | **long?**| ID of pet that needs to be fetched |
|
||||
**orderId** | **long**| ID of pet that needs to be fetched |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -206,6 +226,13 @@ No authorization required
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid ID supplied | - |
|
||||
| **404** | Order not found | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
@ -221,7 +248,7 @@ Place an order for a pet
|
||||
### Example
|
||||
|
||||
```csharp
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
@ -231,9 +258,10 @@ namespace Example
|
||||
{
|
||||
public class PlaceOrderExample
|
||||
{
|
||||
public void main()
|
||||
public static void Main()
|
||||
{
|
||||
var apiInstance = new StoreApi();
|
||||
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
|
||||
|
||||
try
|
||||
@ -242,9 +270,11 @@ namespace Example
|
||||
Order result = apiInstance.PlaceOrder(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ApiException e)
|
||||
{
|
||||
Debug.Print("Exception when calling StoreApi.PlaceOrder: " + e.Message );
|
||||
Debug.Print("Status Code: "+ e.ErrorCode);
|
||||
Debug.Print(e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -271,6 +301,12 @@ No authorization required
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid Order | - |
|
||||
|
||||
[[Back to top]](#)
|
||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long?** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**Name** | **string** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
|
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