forked from loafle/openapi-generator-original
minor fix to constructor
This commit is contained in:
parent
aea6697abd
commit
6075f078b6
@ -41,7 +41,7 @@ namespace {{packageName}}.Model
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
{{#vars}}{{^isReadOnly}} /// <param name="{{name}}">{{#description}}{{description}}{{/description}}{{^description}}{{name}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{defaultValue}}){{/defaultValue}}.</param>
|
{{#vars}}{{^isReadOnly}} /// <param name="{{name}}">{{#description}}{{description}}{{/description}}{{^description}}{{name}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{defaultValue}}){{/defaultValue}}.</param>
|
||||||
{{/isReadOnly}}{{/vars}}
|
{{/isReadOnly}}{{/vars}}
|
||||||
public {{classname}}({{#vars}}{{^isReadOnly}}{{{datatypeWithEnum}}} {{name}} = null{{#hasMoreNonReadOnly}}, {{/hasMoreNonReadOnly}}{{/isReadOnly}}{{/vars}})
|
public {{classname}}({{#vars}}{{^isReadOnly}}{{{datatypeWithEnum}}} {{name}} = null{{/isReadOnly}}{{#hasMoreNonReadOnly}}, {{/hasMoreNonReadOnly}}{{/vars}})
|
||||||
{
|
{
|
||||||
{{#vars}}{{^isReadOnly}}{{#required}}// to ensure "{{name}}" is required (not null)
|
{{#vars}}{{^isReadOnly}}{{#required}}// to ensure "{{name}}" is required (not null)
|
||||||
if ({{name}} == null)
|
if ({{name}} == null)
|
||||||
|
@ -66,6 +66,14 @@ namespace IO.Swagger.Test
|
|||||||
{
|
{
|
||||||
// TODO: unit test for the property 'SnakeCase'
|
// TODO: unit test for the property 'SnakeCase'
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Property'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void PropertyTest()
|
||||||
|
{
|
||||||
|
// TODO: unit test for the property 'Property'
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
# IO.Swagger - the C# library for the Swagger Petstore
|
# IO.Swagger - the C# library for the Swagger Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose.
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose.
|
||||||
|
|
||||||
This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package version: 1.0.0
|
- SDK version: 1.0.0
|
||||||
- Build date: 2016-04-17T23:54:21.676+08:00
|
- Build date: 2016-04-21T17:03:44.297+08:00
|
||||||
- Build package: class io.swagger.codegen.languages.CSharpClientCodegen
|
- Build package: class io.swagger.codegen.languages.CSharpClientCodegen
|
||||||
|
|
||||||
## Frameworks supported
|
## Frameworks supported
|
||||||
@ -29,10 +30,11 @@ Run the following command to generate the DLL
|
|||||||
- [Mac/Linux] `/bin/sh compile-mono.sh`
|
- [Mac/Linux] `/bin/sh compile-mono.sh`
|
||||||
- [Windows] `compile.bat`
|
- [Windows] `compile.bat`
|
||||||
|
|
||||||
Then include the DLL (under the `bin` folder) in the C# project, and import the packages:
|
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
|
||||||
```csharp
|
```csharp
|
||||||
using IO.Swagger.Api;
|
using IO.Swagger.Api;
|
||||||
using IO.Swagger.Client;
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
@ -42,7 +44,7 @@ using System;
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using IO.Swagger.Api;
|
using IO.Swagger.Api;
|
||||||
using IO.Swagger.Client;
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
namespace Example
|
namespace Example
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
# IO.Swagger.Model.Animal
|
# IO.Swagger.Model.Animal
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**ClassName** | **string** | |
|
**ClassName** | **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)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.ApiResponse
|
# IO.Swagger.Model.ApiResponse
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -8,3 +7,5 @@ Name | Type | Description | Notes
|
|||||||
**Type** | **string** | | [optional]
|
**Type** | **string** | | [optional]
|
||||||
**Message** | **string** | | [optional]
|
**Message** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.Cat
|
# IO.Swagger.Model.Cat
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -7,3 +6,5 @@ Name | Type | Description | Notes
|
|||||||
**ClassName** | **string** | |
|
**ClassName** | **string** | |
|
||||||
**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) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.Category
|
# IO.Swagger.Model.Category
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -7,3 +6,5 @@ Name | Type | Description | Notes
|
|||||||
**Id** | **long?** | | [optional]
|
**Id** | **long?** | | [optional]
|
||||||
**Name** | **string** | | [optional]
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.Dog
|
# IO.Swagger.Model.Dog
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -7,3 +6,5 @@ Name | Type | Description | Notes
|
|||||||
**ClassName** | **string** | |
|
**ClassName** | **string** | |
|
||||||
**Breed** | **string** | | [optional]
|
**Breed** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.FormatTest
|
# IO.Swagger.Model.FormatTest
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -17,3 +16,5 @@ Name | Type | Description | Notes
|
|||||||
**DateTime** | **DateTime?** | | [optional]
|
**DateTime** | **DateTime?** | | [optional]
|
||||||
**Password** | **string** | | [optional]
|
**Password** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
# IO.Swagger.Model.Model200Response
|
# IO.Swagger.Model.Model200Response
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**Name** | **int?** | | [optional]
|
**Name** | **int?** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
# IO.Swagger.Model.ModelReturn
|
# IO.Swagger.Model.ModelReturn
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
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) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# IO.Swagger.Model.Name
|
# IO.Swagger.Model.Name
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**_Name** | **int?** | |
|
**_Name** | **int?** | |
|
||||||
**SnakeCase** | **int?** | | [optional]
|
**SnakeCase** | **int?** | | [optional]
|
||||||
|
**Property** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.Order
|
# IO.Swagger.Model.Order
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -11,3 +10,5 @@ Name | Type | Description | Notes
|
|||||||
**Status** | **string** | Order Status | [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) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.Pet
|
# IO.Swagger.Model.Pet
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -11,3 +10,5 @@ Name | Type | Description | Notes
|
|||||||
**Tags** | [**List<Tag>**](Tag.md) | | [optional]
|
**Tags** | [**List<Tag>**](Tag.md) | | [optional]
|
||||||
**Status** | **string** | pet status in the store | [optional]
|
**Status** | **string** | pet status in the store | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -75,6 +75,8 @@ void (empty response body)
|
|||||||
- **Content-Type**: application/json, application/xml
|
- **Content-Type**: application/json, application/xml
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **DeletePet**
|
# **DeletePet**
|
||||||
> void DeletePet (long? petId, string apiKey = null)
|
> void DeletePet (long? petId, string apiKey = null)
|
||||||
|
|
||||||
@ -138,6 +140,8 @@ void (empty response body)
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **FindPetsByStatus**
|
# **FindPetsByStatus**
|
||||||
> List<Pet> FindPetsByStatus (List<string> status)
|
> List<Pet> FindPetsByStatus (List<string> status)
|
||||||
|
|
||||||
@ -200,6 +204,8 @@ Name | Type | Description | Notes
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **FindPetsByTags**
|
# **FindPetsByTags**
|
||||||
> List<Pet> FindPetsByTags (List<string> tags)
|
> List<Pet> FindPetsByTags (List<string> tags)
|
||||||
|
|
||||||
@ -262,6 +268,8 @@ Name | Type | Description | Notes
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **GetPetById**
|
# **GetPetById**
|
||||||
> Pet GetPetById (long? petId)
|
> Pet GetPetById (long? petId)
|
||||||
|
|
||||||
@ -326,6 +334,8 @@ Name | Type | Description | Notes
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **UpdatePet**
|
# **UpdatePet**
|
||||||
> void UpdatePet (Pet body)
|
> void UpdatePet (Pet body)
|
||||||
|
|
||||||
@ -387,6 +397,8 @@ void (empty response body)
|
|||||||
- **Content-Type**: application/json, application/xml
|
- **Content-Type**: application/json, application/xml
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **UpdatePetWithForm**
|
# **UpdatePetWithForm**
|
||||||
> void UpdatePetWithForm (long? petId, string name = null, string status = null)
|
> void UpdatePetWithForm (long? petId, string name = null, string status = null)
|
||||||
|
|
||||||
@ -452,6 +464,8 @@ void (empty response body)
|
|||||||
- **Content-Type**: application/x-www-form-urlencoded
|
- **Content-Type**: application/x-www-form-urlencoded
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **UploadFile**
|
# **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)
|
||||||
|
|
||||||
@ -518,3 +532,5 @@ Name | Type | Description | Notes
|
|||||||
- **Content-Type**: multipart/form-data
|
- **Content-Type**: multipart/form-data
|
||||||
- **Accept**: application/json
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
# IO.Swagger.Model.SpecialModelName
|
# IO.Swagger.Model.SpecialModelName
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
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) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -68,6 +68,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **GetInventory**
|
# **GetInventory**
|
||||||
> Dictionary<string, int?> GetInventory ()
|
> Dictionary<string, int?> GetInventory ()
|
||||||
|
|
||||||
@ -128,6 +130,8 @@ This endpoint does not need any parameter.
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/json
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **GetOrderById**
|
# **GetOrderById**
|
||||||
> Order GetOrderById (long? orderId)
|
> Order GetOrderById (long? orderId)
|
||||||
|
|
||||||
@ -187,6 +191,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **PlaceOrder**
|
# **PlaceOrder**
|
||||||
> Order PlaceOrder (Order body)
|
> Order PlaceOrder (Order body)
|
||||||
|
|
||||||
@ -246,3 +252,5 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.Tag
|
# IO.Swagger.Model.Tag
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -7,3 +6,5 @@ Name | Type | Description | Notes
|
|||||||
**Id** | **long?** | | [optional]
|
**Id** | **long?** | | [optional]
|
||||||
**Name** | **string** | | [optional]
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# IO.Swagger.Model.User
|
# IO.Swagger.Model.User
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
@ -13,3 +12,5 @@ Name | Type | Description | Notes
|
|||||||
**Phone** | **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) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -72,6 +72,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **CreateUsersWithArrayInput**
|
# **CreateUsersWithArrayInput**
|
||||||
> void CreateUsersWithArrayInput (List<User> body)
|
> void CreateUsersWithArrayInput (List<User> body)
|
||||||
|
|
||||||
@ -130,6 +132,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **CreateUsersWithListInput**
|
# **CreateUsersWithListInput**
|
||||||
> void CreateUsersWithListInput (List<User> body)
|
> void CreateUsersWithListInput (List<User> body)
|
||||||
|
|
||||||
@ -188,6 +192,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **DeleteUser**
|
# **DeleteUser**
|
||||||
> void DeleteUser (string username)
|
> void DeleteUser (string username)
|
||||||
|
|
||||||
@ -246,6 +252,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **GetUserByName**
|
# **GetUserByName**
|
||||||
> User GetUserByName (string username)
|
> User GetUserByName (string username)
|
||||||
|
|
||||||
@ -305,6 +313,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **LoginUser**
|
# **LoginUser**
|
||||||
> string LoginUser (string username, string password)
|
> string LoginUser (string username, string password)
|
||||||
|
|
||||||
@ -366,6 +376,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **LogoutUser**
|
# **LogoutUser**
|
||||||
> void LogoutUser ()
|
> void LogoutUser ()
|
||||||
|
|
||||||
@ -420,6 +432,8 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **UpdateUser**
|
# **UpdateUser**
|
||||||
> void UpdateUser (string username, User body)
|
> void UpdateUser (string username, User body)
|
||||||
|
|
||||||
@ -480,3 +494,5 @@ No authorization required
|
|||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -23,8 +23,9 @@ namespace IO.Swagger.Model
|
|||||||
/// Initializes a new instance of the <see cref="Name" />class.
|
/// Initializes a new instance of the <see cref="Name" />class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="_Name">_Name (required).</param>
|
/// <param name="_Name">_Name (required).</param>
|
||||||
|
/// <param name="Property">Property.</param>
|
||||||
|
|
||||||
public Name(int? _Name = null)
|
public Name(int? _Name = null, string Property = null)
|
||||||
{
|
{
|
||||||
// to ensure "_Name" is required (not null)
|
// to ensure "_Name" is required (not null)
|
||||||
if (_Name == null)
|
if (_Name == null)
|
||||||
@ -35,6 +36,7 @@ namespace IO.Swagger.Model
|
|||||||
{
|
{
|
||||||
this._Name = _Name;
|
this._Name = _Name;
|
||||||
}
|
}
|
||||||
|
this.Property = Property;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,6 +53,12 @@ namespace IO.Swagger.Model
|
|||||||
[DataMember(Name="snake_case", EmitDefaultValue=false)]
|
[DataMember(Name="snake_case", EmitDefaultValue=false)]
|
||||||
public int? SnakeCase { get; private set; }
|
public int? SnakeCase { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Property
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name="property", EmitDefaultValue=false)]
|
||||||
|
public string Property { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -61,6 +69,7 @@ namespace IO.Swagger.Model
|
|||||||
sb.Append("class Name {\n");
|
sb.Append("class Name {\n");
|
||||||
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
||||||
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
||||||
|
sb.Append(" Property: ").Append(Property).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -106,6 +115,11 @@ namespace IO.Swagger.Model
|
|||||||
this.SnakeCase == other.SnakeCase ||
|
this.SnakeCase == other.SnakeCase ||
|
||||||
this.SnakeCase != null &&
|
this.SnakeCase != null &&
|
||||||
this.SnakeCase.Equals(other.SnakeCase)
|
this.SnakeCase.Equals(other.SnakeCase)
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.Property == other.Property ||
|
||||||
|
this.Property != null &&
|
||||||
|
this.Property.Equals(other.Property)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,6 +138,8 @@ namespace IO.Swagger.Model
|
|||||||
hash = hash * 59 + this._Name.GetHashCode();
|
hash = hash * 59 + this._Name.GetHashCode();
|
||||||
if (this.SnakeCase != null)
|
if (this.SnakeCase != null)
|
||||||
hash = hash * 59 + this.SnakeCase.GetHashCode();
|
hash = hash * 59 + this.SnakeCase.GetHashCode();
|
||||||
|
if (this.Property != null)
|
||||||
|
hash = hash * 59 + this.Property.GetHashCode();
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs
|
||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.swagger-logo.png
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.swagger-logo.png
|
||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/Newtonsoft.Json.dll
|
|
||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/nunit.framework.dll
|
|
||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/RestSharp.dll
|
|
||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb
|
||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll
|
||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll
|
||||||
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb
|
||||||
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/Newtonsoft.Json.dll
|
||||||
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/nunit.framework.dll
|
||||||
|
/Users/williamcheng/Code/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/RestSharp.dll
|
||||||
|
Loading…
x
Reference in New Issue
Block a user