mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Merge pull request #2541 from wing328/csharp_remove_trailing_whitespace
[C#] remove trailing spaces from C# API client
This commit is contained in:
commit
f66046c932
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<Category> (instance, "instance is a Category");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
@ -59,7 +58,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Id'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
@ -69,7 +67,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'Name'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<InlineResponse200> (instance, "instance is a InlineResponse200");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Tags'
|
||||
/// </summary>
|
||||
@ -59,7 +58,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Tags'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
@ -68,7 +66,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Id'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Category'
|
||||
/// </summary>
|
||||
@ -77,7 +74,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Category'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Status'
|
||||
/// </summary>
|
||||
@ -86,7 +82,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Status'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
@ -95,7 +90,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Name'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'PhotoUrls'
|
||||
/// </summary>
|
||||
@ -105,7 +99,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'PhotoUrls'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<Model200Response> (instance, "instance is a Model200Response");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
@ -60,7 +59,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'Name'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<ModelReturn> (instance, "instance is a ModelReturn");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Return'
|
||||
/// </summary>
|
||||
@ -60,7 +59,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property '_Return'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<Name> (instance, "instance is a Name");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Name'
|
||||
/// </summary>
|
||||
@ -59,7 +58,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property '_Name'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'SnakeCase'
|
||||
/// </summary>
|
||||
@ -69,7 +67,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'SnakeCase'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<Order> (instance, "instance is a Order");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
@ -59,7 +58,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Id'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'PetId'
|
||||
/// </summary>
|
||||
@ -68,7 +66,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'PetId'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Quantity'
|
||||
/// </summary>
|
||||
@ -77,7 +74,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Quantity'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShipDate'
|
||||
/// </summary>
|
||||
@ -86,7 +82,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'ShipDate'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Status'
|
||||
/// </summary>
|
||||
@ -95,7 +90,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Status'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Complete'
|
||||
/// </summary>
|
||||
@ -105,7 +99,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'Complete'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'AddPet'
|
||||
Pet body = null; // TODO: replace null with proper value
|
||||
|
||||
instance.AddPet(body);
|
||||
|
||||
}
|
||||
@ -74,7 +73,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'AddPetUsingByteArray'
|
||||
byte[] body = null; // TODO: replace null with proper value
|
||||
|
||||
instance.AddPetUsingByteArray(body);
|
||||
|
||||
}
|
||||
@ -87,8 +85,7 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'DeletePet'
|
||||
long? petId = null; // TODO: replace null with proper value
|
||||
string apiKey = null; // TODO: replace null with proper value
|
||||
|
||||
string apiKey = null; // TODO: replace null with proper value
|
||||
instance.DeletePet(petId, apiKey);
|
||||
|
||||
}
|
||||
@ -101,7 +98,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'FindPetsByStatus'
|
||||
List<string> status = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.FindPetsByStatus(status);
|
||||
Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
|
||||
}
|
||||
@ -114,7 +110,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'FindPetsByTags'
|
||||
List<string> tags = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.FindPetsByTags(tags);
|
||||
Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
|
||||
}
|
||||
@ -127,7 +122,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'GetPetById'
|
||||
long? petId = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.GetPetById(petId);
|
||||
Assert.IsInstanceOf<Pet> (response, "response is Pet");
|
||||
}
|
||||
@ -140,7 +134,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'GetPetByIdInObject'
|
||||
long? petId = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.GetPetByIdInObject(petId);
|
||||
Assert.IsInstanceOf<InlineResponse200> (response, "response is InlineResponse200");
|
||||
}
|
||||
@ -153,7 +146,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'PetPetIdtestingByteArraytrueGet'
|
||||
long? petId = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.PetPetIdtestingByteArraytrueGet(petId);
|
||||
Assert.IsInstanceOf<byte[]> (response, "response is byte[]");
|
||||
}
|
||||
@ -166,7 +158,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'UpdatePet'
|
||||
Pet body = null; // TODO: replace null with proper value
|
||||
|
||||
instance.UpdatePet(body);
|
||||
|
||||
}
|
||||
@ -179,9 +170,8 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'UpdatePetWithForm'
|
||||
string petId = null; // TODO: replace null with proper value
|
||||
string name = null; // TODO: replace null with proper value
|
||||
string status = null; // TODO: replace null with proper value
|
||||
|
||||
string name = null; // TODO: replace null with proper value
|
||||
string status = null; // TODO: replace null with proper value
|
||||
instance.UpdatePetWithForm(petId, name, status);
|
||||
|
||||
}
|
||||
@ -194,9 +184,8 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'UploadFile'
|
||||
long? petId = null; // TODO: replace null with proper value
|
||||
string additionalMetadata = null; // TODO: replace null with proper value
|
||||
Stream file = null; // TODO: replace null with proper value
|
||||
|
||||
string additionalMetadata = null; // TODO: replace null with proper value
|
||||
Stream file = null; // TODO: replace null with proper value
|
||||
instance.UploadFile(petId, additionalMetadata, file);
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<Pet> (instance, "instance is a Pet");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
@ -59,7 +58,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Id'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Category'
|
||||
/// </summary>
|
||||
@ -68,7 +66,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Category'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
@ -77,7 +74,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Name'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'PhotoUrls'
|
||||
/// </summary>
|
||||
@ -86,7 +82,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'PhotoUrls'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Tags'
|
||||
/// </summary>
|
||||
@ -95,7 +90,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Tags'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Status'
|
||||
/// </summary>
|
||||
@ -105,7 +99,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'Status'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<SpecialModelName> (instance, "instance is a SpecialModelName");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'SpecialPropertyName'
|
||||
/// </summary>
|
||||
@ -60,7 +59,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'SpecialPropertyName'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'DeleteOrder'
|
||||
string orderId = null; // TODO: replace null with proper value
|
||||
|
||||
instance.DeleteOrder(orderId);
|
||||
|
||||
}
|
||||
@ -74,7 +73,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'FindOrdersByStatus'
|
||||
string status = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.FindOrdersByStatus(status);
|
||||
Assert.IsInstanceOf<List<Order>> (response, "response is List<Order>");
|
||||
}
|
||||
@ -86,7 +84,6 @@ namespace IO.Swagger.Test
|
||||
public void GetInventoryTest()
|
||||
{
|
||||
// TODO: add unit test for the method 'GetInventory'
|
||||
|
||||
var response = instance.GetInventory();
|
||||
Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>");
|
||||
}
|
||||
@ -98,7 +95,6 @@ namespace IO.Swagger.Test
|
||||
public void GetInventoryInObjectTest()
|
||||
{
|
||||
// TODO: add unit test for the method 'GetInventoryInObject'
|
||||
|
||||
var response = instance.GetInventoryInObject();
|
||||
Assert.IsInstanceOf<Object> (response, "response is Object");
|
||||
}
|
||||
@ -111,7 +107,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'GetOrderById'
|
||||
string orderId = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.GetOrderById(orderId);
|
||||
Assert.IsInstanceOf<Order> (response, "response is Order");
|
||||
}
|
||||
@ -124,7 +119,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'PlaceOrder'
|
||||
Order body = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.PlaceOrder(body);
|
||||
Assert.IsInstanceOf<Order> (response, "response is Order");
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<Tag> (instance, "instance is a Tag");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
@ -59,7 +58,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Id'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
@ -69,7 +67,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'Name'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'CreateUser'
|
||||
User body = null; // TODO: replace null with proper value
|
||||
|
||||
instance.CreateUser(body);
|
||||
|
||||
}
|
||||
@ -74,7 +73,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'CreateUsersWithArrayInput'
|
||||
List<User> body = null; // TODO: replace null with proper value
|
||||
|
||||
instance.CreateUsersWithArrayInput(body);
|
||||
|
||||
}
|
||||
@ -87,7 +85,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'CreateUsersWithListInput'
|
||||
List<User> body = null; // TODO: replace null with proper value
|
||||
|
||||
instance.CreateUsersWithListInput(body);
|
||||
|
||||
}
|
||||
@ -100,7 +97,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'DeleteUser'
|
||||
string username = null; // TODO: replace null with proper value
|
||||
|
||||
instance.DeleteUser(username);
|
||||
|
||||
}
|
||||
@ -113,7 +109,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'GetUserByName'
|
||||
string username = null; // TODO: replace null with proper value
|
||||
|
||||
var response = instance.GetUserByName(username);
|
||||
Assert.IsInstanceOf<User> (response, "response is User");
|
||||
}
|
||||
@ -126,8 +121,7 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'LoginUser'
|
||||
string username = null; // TODO: replace null with proper value
|
||||
string password = null; // TODO: replace null with proper value
|
||||
|
||||
string password = null; // TODO: replace null with proper value
|
||||
var response = instance.LoginUser(username, password);
|
||||
Assert.IsInstanceOf<string> (response, "response is string");
|
||||
}
|
||||
@ -139,7 +133,6 @@ namespace IO.Swagger.Test
|
||||
public void LogoutUserTest()
|
||||
{
|
||||
// TODO: add unit test for the method 'LogoutUser'
|
||||
|
||||
instance.LogoutUser();
|
||||
|
||||
}
|
||||
@ -152,8 +145,7 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: add unit test for the method 'UpdateUser'
|
||||
string username = null; // TODO: replace null with proper value
|
||||
User body = null; // TODO: replace null with proper value
|
||||
|
||||
User body = null; // TODO: replace null with proper value
|
||||
instance.UpdateUser(username, body);
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ namespace IO.Swagger.Test
|
||||
Assert.IsInstanceOf<User> (instance, "instance is a User");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
@ -59,7 +58,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Id'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Username'
|
||||
/// </summary>
|
||||
@ -68,7 +66,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Username'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'FirstName'
|
||||
/// </summary>
|
||||
@ -77,7 +74,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'FirstName'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'LastName'
|
||||
/// </summary>
|
||||
@ -86,7 +82,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'LastName'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Email'
|
||||
/// </summary>
|
||||
@ -95,7 +90,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Email'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Password'
|
||||
/// </summary>
|
||||
@ -104,7 +98,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Password'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Phone'
|
||||
/// </summary>
|
||||
@ -113,7 +106,6 @@ namespace IO.Swagger.Test
|
||||
{
|
||||
// TODO: unit test for the property 'Phone'
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'UserStatus'
|
||||
/// </summary>
|
||||
@ -123,7 +115,6 @@ namespace IO.Swagger.Test
|
||||
// TODO: unit test for the property 'UserStatus'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,14 +9,12 @@ using IO.Swagger.Model;
|
||||
|
||||
namespace IO.Swagger.Api
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a collection of functions to interact with the API endpoints
|
||||
/// </summary>
|
||||
public interface IPetApi
|
||||
{
|
||||
#region Synchronous Operations
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
@ -38,7 +36,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Pet object that needs to be added to the store (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
||||
/// </summary>
|
||||
@ -60,7 +57,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Pet object in the form of byte array (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> AddPetUsingByteArrayWithHttpInfo (byte[] body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -84,7 +80,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> DeletePetWithHttpInfo (long? petId, string apiKey = null);
|
||||
|
||||
/// <summary>
|
||||
/// Finds Pets by status
|
||||
/// </summary>
|
||||
@ -106,7 +101,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="status">Status values that need to be considered for query (optional, default to available)</param>
|
||||
/// <returns>ApiResponse of List<Pet></returns>
|
||||
ApiResponse<List<Pet>> FindPetsByStatusWithHttpInfo (List<string> status = null);
|
||||
|
||||
/// <summary>
|
||||
/// Finds Pets by tags
|
||||
/// </summary>
|
||||
@ -128,7 +122,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="tags">Tags to filter by (optional)</param>
|
||||
/// <returns>ApiResponse of List<Pet></returns>
|
||||
ApiResponse<List<Pet>> FindPetsByTagsWithHttpInfo (List<string> tags = null);
|
||||
|
||||
/// <summary>
|
||||
/// Find pet by ID
|
||||
/// </summary>
|
||||
@ -150,7 +143,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="petId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>ApiResponse of Pet</returns>
|
||||
ApiResponse<Pet> GetPetByIdWithHttpInfo (long? petId);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test inline arbitrary object return by 'Find pet by ID'
|
||||
/// </summary>
|
||||
@ -172,7 +164,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="petId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>ApiResponse of InlineResponse200</returns>
|
||||
ApiResponse<InlineResponse200> GetPetByIdInObjectWithHttpInfo (long? petId);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test byte array return by 'Find pet by ID'
|
||||
/// </summary>
|
||||
@ -194,7 +185,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="petId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>ApiResponse of byte[]</returns>
|
||||
ApiResponse<byte[]> PetPetIdtestingByteArraytrueGetWithHttpInfo (long? petId);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
@ -216,7 +206,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Pet object that needs to be added to the store (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -242,7 +231,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdatePetWithFormWithHttpInfo (string petId, string name = null, string status = null);
|
||||
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
/// </summary>
|
||||
@ -268,11 +256,8 @@ namespace IO.Swagger.Api
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, Stream file = null);
|
||||
|
||||
#endregion Synchronous Operations
|
||||
|
||||
#region Asynchronous Operations
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
@ -294,7 +279,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Pet object that needs to be added to the store (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
||||
/// </summary>
|
||||
@ -316,7 +300,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Pet object in the form of byte array (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetUsingByteArrayAsyncWithHttpInfo (byte[] body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -340,7 +323,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="apiKey"> (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long? petId, string apiKey = null);
|
||||
|
||||
/// <summary>
|
||||
/// Finds Pets by status
|
||||
/// </summary>
|
||||
@ -362,7 +344,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="status">Status values that need to be considered for query (optional, default to available)</param>
|
||||
/// <returns>Task of ApiResponse (List<Pet>)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByStatusAsyncWithHttpInfo (List<string> status = null);
|
||||
|
||||
/// <summary>
|
||||
/// Finds Pets by tags
|
||||
/// </summary>
|
||||
@ -384,7 +365,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="tags">Tags to filter by (optional)</param>
|
||||
/// <returns>Task of ApiResponse (List<Pet>)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByTagsAsyncWithHttpInfo (List<string> tags = null);
|
||||
|
||||
/// <summary>
|
||||
/// Find pet by ID
|
||||
/// </summary>
|
||||
@ -406,7 +386,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="petId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Task of ApiResponse (Pet)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long? petId);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test inline arbitrary object return by 'Find pet by ID'
|
||||
/// </summary>
|
||||
@ -428,7 +407,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="petId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Task of ApiResponse (InlineResponse200)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<InlineResponse200>> GetPetByIdInObjectAsyncWithHttpInfo (long? petId);
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test byte array return by 'Find pet by ID'
|
||||
/// </summary>
|
||||
@ -450,7 +428,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="petId">ID of pet that needs to be fetched</param>
|
||||
/// <returns>Task of ApiResponse (byte[])</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<byte[]>> PetPetIdtestingByteArraytrueGetAsyncWithHttpInfo (long? petId);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
@ -472,7 +449,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Pet object that needs to be added to the store (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -498,7 +474,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="status">Updated status of the pet (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (string petId, string name = null, string status = null);
|
||||
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
/// </summary>
|
||||
@ -524,9 +499,7 @@ namespace IO.Swagger.Api
|
||||
/// <param name="file">file to upload (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, Stream file = null);
|
||||
|
||||
#endregion Asynchronous Operations
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -616,7 +589,6 @@ namespace IO.Swagger.Api
|
||||
this.Configuration.AddDefaultHeader(key, value);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
@ -664,10 +636,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -685,7 +653,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -704,7 +671,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
@ -753,10 +719,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -766,7 +728,6 @@ namespace IO.Swagger.Api
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -775,7 +736,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -793,7 +753,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
||||
/// </summary>
|
||||
@ -815,7 +774,7 @@ namespace IO.Swagger.Api
|
||||
{
|
||||
|
||||
|
||||
var localVarPath = "/pet?testing_byte_array=true";
|
||||
var localVarPath = "/pet?testing_byte_array=true";
|
||||
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new Dictionary<String, String>();
|
||||
@ -841,10 +800,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -862,7 +817,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -881,7 +835,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
||||
/// </summary>
|
||||
@ -904,7 +857,7 @@ namespace IO.Swagger.Api
|
||||
{
|
||||
|
||||
|
||||
var localVarPath = "/pet?testing_byte_array=true";
|
||||
var localVarPath = "/pet?testing_byte_array=true";
|
||||
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new Dictionary<String, String>();
|
||||
@ -930,10 +883,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -943,7 +892,6 @@ namespace IO.Swagger.Api
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -952,7 +900,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -970,7 +917,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -1025,13 +971,9 @@ namespace IO.Swagger.Api
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
if (apiKey != null) localVarHeaderParams.Add("api_key", Configuration.ApiClient.ParameterToString(apiKey)); // header parameter
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -1040,7 +982,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1059,7 +1000,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -1113,14 +1053,9 @@ namespace IO.Swagger.Api
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
if (apiKey != null) localVarHeaderParams.Add("api_key", Configuration.ApiClient.ParameterToString(apiKey)); // header parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -1129,7 +1064,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1147,7 +1081,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finds Pets by status Multiple status values can be provided with comma separated strings
|
||||
/// </summary>
|
||||
@ -1196,13 +1129,9 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -1211,7 +1140,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1230,7 +1158,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Finds Pets by status Multiple status values can be provided with comma separated strings
|
||||
/// </summary>
|
||||
@ -1280,14 +1207,9 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -1296,7 +1218,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1314,7 +1235,6 @@ namespace IO.Swagger.Api
|
||||
(List<Pet>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Pet>)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
|
||||
/// </summary>
|
||||
@ -1363,13 +1283,9 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
if (tags != null) localVarQueryParams.Add("tags", Configuration.ApiClient.ParameterToString(tags)); // query parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -1378,7 +1294,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1397,7 +1312,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
|
||||
/// </summary>
|
||||
@ -1447,14 +1361,9 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
if (tags != null) localVarQueryParams.Add("tags", Configuration.ApiClient.ParameterToString(tags)); // query parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -1463,7 +1372,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1481,7 +1389,6 @@ namespace IO.Swagger.Api
|
||||
(List<Pet>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Pet>)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||
/// </summary>
|
||||
@ -1537,17 +1444,13 @@ namespace IO.Swagger.Api
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(Configuration.AccessToken))
|
||||
@ -1555,7 +1458,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1574,7 +1476,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||
/// </summary>
|
||||
@ -1629,18 +1530,12 @@ namespace IO.Swagger.Api
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -1649,7 +1544,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1667,7 +1561,6 @@ namespace IO.Swagger.Api
|
||||
(Pet) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Pet)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test inline arbitrary object return by 'Find pet by ID' Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||
/// </summary>
|
||||
@ -1694,7 +1587,7 @@ namespace IO.Swagger.Api
|
||||
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetByIdInObject");
|
||||
|
||||
|
||||
var localVarPath = "/pet/{petId}?response=inline_arbitrary_object";
|
||||
var localVarPath = "/pet/{petId}?response=inline_arbitrary_object";
|
||||
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new Dictionary<String, String>();
|
||||
@ -1723,17 +1616,13 @@ namespace IO.Swagger.Api
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(Configuration.AccessToken))
|
||||
@ -1741,7 +1630,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1760,7 +1648,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test inline arbitrary object return by 'Find pet by ID' Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||
/// </summary>
|
||||
@ -1786,7 +1673,7 @@ namespace IO.Swagger.Api
|
||||
if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling GetPetByIdInObject");
|
||||
|
||||
|
||||
var localVarPath = "/pet/{petId}?response=inline_arbitrary_object";
|
||||
var localVarPath = "/pet/{petId}?response=inline_arbitrary_object";
|
||||
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new Dictionary<String, String>();
|
||||
@ -1815,18 +1702,12 @@ namespace IO.Swagger.Api
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -1835,7 +1716,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1853,7 +1733,6 @@ namespace IO.Swagger.Api
|
||||
(InlineResponse200) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse200)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test byte array return by 'Find pet by ID' Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||
/// </summary>
|
||||
@ -1880,7 +1759,7 @@ namespace IO.Swagger.Api
|
||||
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->PetPetIdtestingByteArraytrueGet");
|
||||
|
||||
|
||||
var localVarPath = "/pet/{petId}?testing_byte_array=true";
|
||||
var localVarPath = "/pet/{petId}?testing_byte_array=true";
|
||||
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new Dictionary<String, String>();
|
||||
@ -1909,17 +1788,13 @@ namespace IO.Swagger.Api
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
// authentication (petstore_auth) required
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
if (!String.IsNullOrEmpty(Configuration.AccessToken))
|
||||
@ -1927,7 +1802,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1946,7 +1820,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test byte array return by 'Find pet by ID' Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||
/// </summary>
|
||||
@ -1972,7 +1845,7 @@ namespace IO.Swagger.Api
|
||||
if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling PetPetIdtestingByteArraytrueGet");
|
||||
|
||||
|
||||
var localVarPath = "/pet/{petId}?testing_byte_array=true";
|
||||
var localVarPath = "/pet/{petId}?testing_byte_array=true";
|
||||
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new Dictionary<String, String>();
|
||||
@ -2001,18 +1874,12 @@ namespace IO.Swagger.Api
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -2021,7 +1888,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -2039,7 +1905,6 @@ namespace IO.Swagger.Api
|
||||
(byte[]) Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[])));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
@ -2087,10 +1952,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -2108,7 +1969,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -2127,7 +1987,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
@ -2176,10 +2035,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -2189,7 +2044,6 @@ namespace IO.Swagger.Api
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
||||
// oauth required
|
||||
@ -2198,7 +2052,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -2216,7 +2069,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -2273,12 +2125,8 @@ namespace IO.Swagger.Api
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
if (name != null) localVarFormParams.Add("name", Configuration.ApiClient.ParameterToString(name)); // form parameter
|
||||
if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // form parameter
|
||||
|
||||
if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // form parameter
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -2289,7 +2137,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -2308,7 +2155,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -2364,13 +2210,8 @@ namespace IO.Swagger.Api
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
if (name != null) localVarFormParams.Add("name", Configuration.ApiClient.ParameterToString(name)); // form parameter
|
||||
if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // form parameter
|
||||
|
||||
|
||||
if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // form parameter
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -2381,7 +2222,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -2399,7 +2239,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
/// </summary>
|
||||
@ -2456,12 +2295,8 @@ namespace IO.Swagger.Api
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
if (additionalMetadata != null) localVarFormParams.Add("additionalMetadata", Configuration.ApiClient.ParameterToString(additionalMetadata)); // form parameter
|
||||
if (file != null) localVarFileParams.Add("file", Configuration.ApiClient.ParameterToFile("file", file));
|
||||
|
||||
if (file != null) localVarFileParams.Add("file", Configuration.ApiClient.ParameterToFile("file", file));
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -2472,7 +2307,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -2491,7 +2325,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
/// </summary>
|
||||
@ -2547,13 +2380,8 @@ namespace IO.Swagger.Api
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
|
||||
|
||||
|
||||
|
||||
if (additionalMetadata != null) localVarFormParams.Add("additionalMetadata", Configuration.ApiClient.ParameterToString(additionalMetadata)); // form parameter
|
||||
if (file != null) localVarFileParams.Add("file", Configuration.ApiClient.ParameterToFile("file", file));
|
||||
|
||||
|
||||
if (file != null) localVarFileParams.Add("file", Configuration.ApiClient.ParameterToFile("file", file));
|
||||
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -2564,7 +2392,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -2582,7 +2409,5 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,14 +9,12 @@ using IO.Swagger.Model;
|
||||
|
||||
namespace IO.Swagger.Api
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a collection of functions to interact with the API endpoints
|
||||
/// </summary>
|
||||
public interface IStoreApi
|
||||
{
|
||||
#region Synchronous Operations
|
||||
|
||||
/// <summary>
|
||||
/// Delete purchase order by ID
|
||||
/// </summary>
|
||||
@ -38,7 +36,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId);
|
||||
|
||||
/// <summary>
|
||||
/// Finds orders by status
|
||||
/// </summary>
|
||||
@ -60,7 +57,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
||||
/// <returns>ApiResponse of List<Order></returns>
|
||||
ApiResponse<List<Order>> FindOrdersByStatusWithHttpInfo (string status = null);
|
||||
|
||||
/// <summary>
|
||||
/// Returns pet inventories by status
|
||||
/// </summary>
|
||||
@ -80,7 +76,6 @@ namespace IO.Swagger.Api
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of Dictionary<string, int?></returns>
|
||||
ApiResponse<Dictionary<string, int?>> GetInventoryWithHttpInfo ();
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test arbitrary object return by 'Get inventory'
|
||||
/// </summary>
|
||||
@ -100,12 +95,11 @@ namespace IO.Swagger.Api
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of Object</returns>
|
||||
ApiResponse<Object> GetInventoryInObjectWithHttpInfo ();
|
||||
|
||||
/// <summary>
|
||||
/// Find purchase order by ID
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
@ -116,13 +110,12 @@ namespace IO.Swagger.Api
|
||||
/// Find purchase order by ID
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.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 (string orderId);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
@ -144,11 +137,8 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body = null);
|
||||
|
||||
#endregion Synchronous Operations
|
||||
|
||||
#region Asynchronous Operations
|
||||
|
||||
/// <summary>
|
||||
/// Delete purchase order by ID
|
||||
/// </summary>
|
||||
@ -170,7 +160,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="orderId">ID of the order that needs to be deleted</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId);
|
||||
|
||||
/// <summary>
|
||||
/// Finds orders by status
|
||||
/// </summary>
|
||||
@ -192,7 +181,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="status">Status value that needs to be considered for query (optional, default to placed)</param>
|
||||
/// <returns>Task of ApiResponse (List<Order>)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<List<Order>>> FindOrdersByStatusAsyncWithHttpInfo (string status = null);
|
||||
|
||||
/// <summary>
|
||||
/// Returns pet inventories by status
|
||||
/// </summary>
|
||||
@ -212,7 +200,6 @@ namespace IO.Swagger.Api
|
||||
/// <exception cref="IO.Swagger.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 ();
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test arbitrary object return by 'Get inventory'
|
||||
/// </summary>
|
||||
@ -232,12 +219,11 @@ namespace IO.Swagger.Api
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>Task of ApiResponse (Object)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> GetInventoryInObjectAsyncWithHttpInfo ();
|
||||
|
||||
/// <summary>
|
||||
/// Find purchase order by ID
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
@ -248,13 +234,12 @@ namespace IO.Swagger.Api
|
||||
/// Find purchase order by ID
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.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 (string orderId);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
@ -276,9 +261,7 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">order placed for purchasing the pet (optional)</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body = null);
|
||||
|
||||
#endregion Asynchronous Operations
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -368,7 +351,6 @@ namespace IO.Swagger.Api
|
||||
this.Configuration.AddDefaultHeader(key, value);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||
/// </summary>
|
||||
@ -424,11 +406,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -447,7 +424,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||
/// </summary>
|
||||
@ -502,11 +478,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -524,7 +495,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finds orders by status A single status value can be provided as a string
|
||||
/// </summary>
|
||||
@ -573,27 +543,22 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (test_api_client_id) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
|
||||
{
|
||||
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
||||
}
|
||||
// authentication (test_api_client_secret) required
|
||||
// authentication (test_api_client_secret) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
||||
{
|
||||
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -612,7 +577,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Finds orders by status A single status value can be provided as a string
|
||||
/// </summary>
|
||||
@ -662,21 +626,15 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (test_api_client_id) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
|
||||
{
|
||||
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
||||
}
|
||||
|
||||
// authentication (test_api_client_secret) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
||||
@ -684,7 +642,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -702,7 +659,6 @@ namespace IO.Swagger.Api
|
||||
(List<Order>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Order>)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||
/// </summary>
|
||||
@ -751,10 +707,6 @@ namespace IO.Swagger.Api
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
@ -762,7 +714,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -781,7 +732,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||
/// </summary>
|
||||
@ -831,11 +781,6 @@ namespace IO.Swagger.Api
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
@ -843,7 +788,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -861,7 +805,6 @@ namespace IO.Swagger.Api
|
||||
(Dictionary<string, int?>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test arbitrary object return by 'Get inventory' Returns an arbitrary object which is actually a map of status codes to quantities
|
||||
/// </summary>
|
||||
@ -882,7 +825,7 @@ namespace IO.Swagger.Api
|
||||
{
|
||||
|
||||
|
||||
var localVarPath = "/store/inventory?response=arbitrary_object";
|
||||
var localVarPath = "/store/inventory?response=arbitrary_object";
|
||||
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new Dictionary<String, String>();
|
||||
@ -910,10 +853,6 @@ namespace IO.Swagger.Api
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
@ -921,7 +860,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -940,7 +878,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Fake endpoint to test arbitrary object return by 'Get inventory' Returns an arbitrary object which is actually a map of status codes to quantities
|
||||
/// </summary>
|
||||
@ -962,7 +899,7 @@ namespace IO.Swagger.Api
|
||||
{
|
||||
|
||||
|
||||
var localVarPath = "/store/inventory?response=arbitrary_object";
|
||||
var localVarPath = "/store/inventory?response=arbitrary_object";
|
||||
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
var localVarQueryParams = new Dictionary<String, String>();
|
||||
@ -990,11 +927,6 @@ namespace IO.Swagger.Api
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
@ -1002,7 +934,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1020,9 +951,8 @@ namespace IO.Swagger.Api
|
||||
(Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
@ -1034,7 +964,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
@ -1076,24 +1006,19 @@ namespace IO.Swagger.Api
|
||||
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (test_api_key_header) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header")))
|
||||
{
|
||||
localVarHeaderParams["test_api_key_header"] = Configuration.GetApiKeyWithPrefix("test_api_key_header");
|
||||
}
|
||||
// authentication (test_api_key_query) required
|
||||
// authentication (test_api_key_query) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_query")))
|
||||
{
|
||||
localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1112,9 +1037,8 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
@ -1127,7 +1051,7 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="orderId">ID of pet that needs to be fetched</param>
|
||||
@ -1167,18 +1091,12 @@ namespace IO.Swagger.Api
|
||||
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (test_api_key_header) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header")))
|
||||
{
|
||||
localVarHeaderParams["test_api_key_header"] = Configuration.GetApiKeyWithPrefix("test_api_key_header");
|
||||
}
|
||||
|
||||
// authentication (test_api_key_query) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_query")))
|
||||
@ -1186,7 +1104,6 @@ namespace IO.Swagger.Api
|
||||
localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1204,7 +1121,6 @@ namespace IO.Swagger.Api
|
||||
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
@ -1253,10 +1169,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -1272,14 +1184,13 @@ namespace IO.Swagger.Api
|
||||
{
|
||||
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
||||
}
|
||||
// authentication (test_api_client_secret) required
|
||||
// authentication (test_api_client_secret) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
||||
{
|
||||
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1298,7 +1209,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
@ -1348,10 +1258,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -1361,14 +1267,12 @@ namespace IO.Swagger.Api
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
// authentication (test_api_client_id) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
|
||||
{
|
||||
localVarHeaderParams["x-test_api_client_id"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_id");
|
||||
}
|
||||
|
||||
// authentication (test_api_client_secret) required
|
||||
|
||||
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
|
||||
@ -1376,7 +1280,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1394,7 +1297,5 @@ namespace IO.Swagger.Api
|
||||
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,14 +9,12 @@ using IO.Swagger.Model;
|
||||
|
||||
namespace IO.Swagger.Api
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a collection of functions to interact with the API endpoints
|
||||
/// </summary>
|
||||
public interface IUserApi
|
||||
{
|
||||
#region Synchronous Operations
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
/// </summary>
|
||||
@ -38,7 +36,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Created user object (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -60,7 +57,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">List of user object (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -82,7 +78,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">List of user object (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@ -104,7 +99,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="username">The name that needs to be deleted</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> DeleteUserWithHttpInfo (string username);
|
||||
|
||||
/// <summary>
|
||||
/// Get user by user name
|
||||
/// </summary>
|
||||
@ -112,7 +106,7 @@ namespace IO.Swagger.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.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>
|
||||
/// <param name="username">The name that needs to be fetched. Use user1 for testing. </param>
|
||||
/// <returns>User</returns>
|
||||
User GetUserByName (string username);
|
||||
|
||||
@ -123,10 +117,9 @@ namespace IO.Swagger.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.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>
|
||||
/// <param name="username">The name that needs to be fetched. Use user1 for testing. </param>
|
||||
/// <returns>ApiResponse of User</returns>
|
||||
ApiResponse<User> GetUserByNameWithHttpInfo (string username);
|
||||
|
||||
/// <summary>
|
||||
/// Logs user into the system
|
||||
/// </summary>
|
||||
@ -150,7 +143,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="password">The password for login in clear text (optional)</param>
|
||||
/// <returns>ApiResponse of string</returns>
|
||||
ApiResponse<string> LoginUserWithHttpInfo (string username = null, string password = null);
|
||||
|
||||
/// <summary>
|
||||
/// Logs out current logged in user session
|
||||
/// </summary>
|
||||
@ -170,7 +162,6 @@ namespace IO.Swagger.Api
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> LogoutUserWithHttpInfo ();
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
/// </summary>
|
||||
@ -194,11 +185,8 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Updated user object (optional)</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body = null);
|
||||
|
||||
#endregion Synchronous Operations
|
||||
|
||||
#region Asynchronous Operations
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
/// </summary>
|
||||
@ -220,7 +208,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Created user object (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -242,7 +229,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">List of user object (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -264,7 +250,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">List of user object (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body = null);
|
||||
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@ -286,7 +271,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="username">The name that needs to be deleted</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteUserAsyncWithHttpInfo (string username);
|
||||
|
||||
/// <summary>
|
||||
/// Get user by user name
|
||||
/// </summary>
|
||||
@ -294,7 +278,7 @@ namespace IO.Swagger.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.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>
|
||||
/// <param name="username">The name that needs to be fetched. Use user1 for testing. </param>
|
||||
/// <returns>Task of User</returns>
|
||||
System.Threading.Tasks.Task<User> GetUserByNameAsync (string username);
|
||||
|
||||
@ -305,10 +289,9 @@ namespace IO.Swagger.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="IO.Swagger.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>
|
||||
/// <param name="username">The name that needs to be fetched. Use user1 for testing. </param>
|
||||
/// <returns>Task of ApiResponse (User)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<User>> GetUserByNameAsyncWithHttpInfo (string username);
|
||||
|
||||
/// <summary>
|
||||
/// Logs user into the system
|
||||
/// </summary>
|
||||
@ -332,7 +315,6 @@ namespace IO.Swagger.Api
|
||||
/// <param name="password">The password for login in clear text (optional)</param>
|
||||
/// <returns>Task of ApiResponse (string)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<string>> LoginUserAsyncWithHttpInfo (string username = null, string password = null);
|
||||
|
||||
/// <summary>
|
||||
/// Logs out current logged in user session
|
||||
/// </summary>
|
||||
@ -352,7 +334,6 @@ namespace IO.Swagger.Api
|
||||
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> LogoutUserAsyncWithHttpInfo ();
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
/// </summary>
|
||||
@ -376,9 +357,7 @@ namespace IO.Swagger.Api
|
||||
/// <param name="body">Updated user object (optional)</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body = null);
|
||||
|
||||
#endregion Asynchronous Operations
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -468,7 +447,6 @@ namespace IO.Swagger.Api
|
||||
this.Configuration.AddDefaultHeader(key, value);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
@ -516,10 +494,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -530,7 +504,6 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -549,7 +522,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
@ -598,10 +570,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -612,7 +580,6 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -630,7 +597,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -678,10 +644,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -692,7 +654,6 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -711,7 +672,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -760,10 +720,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -774,7 +730,6 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -792,7 +747,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -840,10 +794,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -854,7 +804,6 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -873,7 +822,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -922,10 +870,6 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -936,7 +880,6 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -954,7 +897,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Delete user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
@ -1009,10 +951,6 @@ namespace IO.Swagger.Api
|
||||
if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (test_http_basic) required
|
||||
|
||||
// http basic authentication required
|
||||
@ -1021,7 +959,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(Configuration.Username + ":" + Configuration.Password);
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1040,7 +977,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Delete user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
@ -1094,11 +1030,6 @@ namespace IO.Swagger.Api
|
||||
if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// authentication (test_http_basic) required
|
||||
|
||||
// http basic authentication required
|
||||
@ -1107,7 +1038,6 @@ namespace IO.Swagger.Api
|
||||
localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(Configuration.Username + ":" + Configuration.Password);
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1125,12 +1055,11 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get user by user name
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.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>
|
||||
/// <param name="username">The name that needs to be fetched. Use user1 for testing. </param>
|
||||
/// <returns>User</returns>
|
||||
public User GetUserByName (string username)
|
||||
{
|
||||
@ -1142,7 +1071,7 @@ namespace IO.Swagger.Api
|
||||
/// Get user by user name
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.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>
|
||||
/// <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)
|
||||
{
|
||||
@ -1182,11 +1111,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1205,12 +1129,11 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get user by user name
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.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>
|
||||
/// <param name="username">The name that needs to be fetched. Use user1 for testing. </param>
|
||||
/// <returns>Task of User</returns>
|
||||
public async System.Threading.Tasks.Task<User> GetUserByNameAsync (string username)
|
||||
{
|
||||
@ -1223,7 +1146,7 @@ namespace IO.Swagger.Api
|
||||
/// Get user by user name
|
||||
/// </summary>
|
||||
/// <exception cref="IO.Swagger.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>
|
||||
/// <param name="username">The name that needs to be fetched. Use user1 for testing. </param>
|
||||
/// <returns>Task of ApiResponse (User)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<User>> GetUserByNameAsyncWithHttpInfo (string username)
|
||||
{
|
||||
@ -1261,11 +1184,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1283,7 +1201,6 @@ namespace IO.Swagger.Api
|
||||
(User) Configuration.ApiClient.Deserialize(localVarResponse, typeof(User)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs user into the system
|
||||
/// </summary>
|
||||
@ -1334,13 +1251,8 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
if (username != null) localVarQueryParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // query parameter
|
||||
if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter
|
||||
|
||||
|
||||
|
||||
|
||||
if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter
|
||||
|
||||
|
||||
|
||||
@ -1362,7 +1274,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Logs user into the system
|
||||
/// </summary>
|
||||
@ -1414,13 +1325,8 @@ namespace IO.Swagger.Api
|
||||
// set "format" to json by default
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
|
||||
if (username != null) localVarQueryParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // query parameter
|
||||
if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter
|
||||
|
||||
|
||||
|
||||
|
||||
if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter
|
||||
|
||||
|
||||
|
||||
@ -1441,7 +1347,6 @@ namespace IO.Swagger.Api
|
||||
(string) Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs out current logged in user session
|
||||
/// </summary>
|
||||
@ -1490,11 +1395,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1513,7 +1413,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Logs out current logged in user session
|
||||
/// </summary>
|
||||
@ -1563,11 +1462,6 @@ namespace IO.Swagger.Api
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1585,7 +1479,6 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updated user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
@ -1640,10 +1533,6 @@ namespace IO.Swagger.Api
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -1654,7 +1543,6 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
|
||||
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1673,7 +1561,6 @@ namespace IO.Swagger.Api
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Updated user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
@ -1727,10 +1614,6 @@ namespace IO.Swagger.Api
|
||||
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
|
||||
localVarPathParams.Add("format", "json");
|
||||
if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
|
||||
|
||||
if (body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
@ -1741,7 +1624,6 @@ namespace IO.Swagger.Api
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
|
||||
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
|
||||
@ -1759,7 +1641,5 @@ namespace IO.Swagger.Api
|
||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
|
||||
null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -151,7 +151,6 @@ namespace IO.Swagger.Client
|
||||
var response = RestClient.Execute(request);
|
||||
return (Object) response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Makes the asynchronous HTTP request.
|
||||
/// </summary>
|
||||
|
@ -54,7 +54,6 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Animal {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -109,10 +108,8 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.ClassName != null)
|
||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -62,8 +62,7 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Cat {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -123,13 +122,10 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.ClassName != null)
|
||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
||||
|
||||
if (this.Declawed != null)
|
||||
hash = hash * 59 + this.Declawed.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -54,8 +54,7 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Category {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -115,13 +114,10 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.Id != null)
|
||||
hash = hash * 59 + this.Id.GetHashCode();
|
||||
|
||||
if (this.Name != null)
|
||||
hash = hash * 59 + this.Name.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -62,8 +62,7 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Dog {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -123,13 +122,10 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.ClassName != null)
|
||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
||||
|
||||
if (this.Breed != null)
|
||||
hash = hash * 59 + this.Breed.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -134,17 +134,16 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" _Float: ").Append(_Float).Append("\n");
|
||||
sb.Append(" _Double: ").Append(_Double).Append("\n");
|
||||
sb.Append(" _String: ").Append(_String).Append("\n");
|
||||
sb.Append(" _Byte: ").Append(_Byte).Append("\n");
|
||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
sb.Append(" Int64: ").Append(Int64).Append("\n");
|
||||
sb.Append(" Number: ").Append(Number).Append("\n");
|
||||
sb.Append(" _Float: ").Append(_Float).Append("\n");
|
||||
sb.Append(" _Double: ").Append(_Double).Append("\n");
|
||||
sb.Append(" _String: ").Append(_String).Append("\n");
|
||||
sb.Append(" _Byte: ").Append(_Byte).Append("\n");
|
||||
sb.Append(" Binary: ").Append(Binary).Append("\n");
|
||||
sb.Append(" Date: ").Append(Date).Append("\n");
|
||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -249,40 +248,28 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.Integer != null)
|
||||
hash = hash * 59 + this.Integer.GetHashCode();
|
||||
|
||||
if (this.Int32 != null)
|
||||
hash = hash * 59 + this.Int32.GetHashCode();
|
||||
|
||||
if (this.Int64 != null)
|
||||
hash = hash * 59 + this.Int64.GetHashCode();
|
||||
|
||||
if (this.Number != null)
|
||||
hash = hash * 59 + this.Number.GetHashCode();
|
||||
|
||||
if (this._Float != null)
|
||||
hash = hash * 59 + this._Float.GetHashCode();
|
||||
|
||||
if (this._Double != null)
|
||||
hash = hash * 59 + this._Double.GetHashCode();
|
||||
|
||||
if (this._String != null)
|
||||
hash = hash * 59 + this._String.GetHashCode();
|
||||
|
||||
if (this._Byte != null)
|
||||
hash = hash * 59 + this._Byte.GetHashCode();
|
||||
|
||||
if (this.Binary != null)
|
||||
hash = hash * 59 + this.Binary.GetHashCode();
|
||||
|
||||
if (this.Date != null)
|
||||
hash = hash * 59 + this.Date.GetHashCode();
|
||||
|
||||
if (this.DateTime != null)
|
||||
hash = hash * 59 + this.DateTime.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -113,12 +113,11 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class InlineResponse200 {\n");
|
||||
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Category: ").Append(Category).Append("\n");
|
||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
|
||||
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Category: ").Append(Category).Append("\n");
|
||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -198,25 +197,18 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.Tags != null)
|
||||
hash = hash * 59 + this.Tags.GetHashCode();
|
||||
|
||||
if (this.Id != null)
|
||||
hash = hash * 59 + this.Id.GetHashCode();
|
||||
|
||||
if (this.Category != null)
|
||||
hash = hash * 59 + this.Category.GetHashCode();
|
||||
|
||||
if (this.Status != null)
|
||||
hash = hash * 59 + this.Status.GetHashCode();
|
||||
|
||||
if (this.Name != null)
|
||||
hash = hash * 59 + this.Name.GetHashCode();
|
||||
|
||||
if (this.PhotoUrls != null)
|
||||
hash = hash * 59 + this.PhotoUrls.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ using Newtonsoft.Json.Converters;
|
||||
namespace IO.Swagger.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// Model for testing model name starting with number
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Model200Response : IEquatable<Model200Response>
|
||||
@ -46,7 +46,6 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Model200Response {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -101,10 +100,8 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.Name != null)
|
||||
hash = hash * 59 + this.Name.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ using Newtonsoft.Json.Converters;
|
||||
namespace IO.Swagger.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// Model for testing reserved words
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ModelReturn : IEquatable<ModelReturn>
|
||||
@ -46,7 +46,6 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class ModelReturn {\n");
|
||||
sb.Append(" _Return: ").Append(_Return).Append("\n");
|
||||
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -101,10 +100,8 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this._Return != null)
|
||||
hash = hash * 59 + this._Return.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ using Newtonsoft.Json.Converters;
|
||||
namespace IO.Swagger.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// Model for testing model name same as property name
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Name : IEquatable<Name>
|
||||
@ -60,8 +60,7 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Name {\n");
|
||||
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
||||
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
||||
|
||||
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -121,13 +120,10 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this._Name != null)
|
||||
hash = hash * 59 + this._Name.GetHashCode();
|
||||
|
||||
if (this.SnakeCase != null)
|
||||
hash = hash * 59 + this.SnakeCase.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -103,12 +103,11 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Order {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" PetId: ").Append(PetId).Append("\n");
|
||||
sb.Append(" Quantity: ").Append(Quantity).Append("\n");
|
||||
sb.Append(" ShipDate: ").Append(ShipDate).Append("\n");
|
||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||
sb.Append(" Complete: ").Append(Complete).Append("\n");
|
||||
|
||||
sb.Append(" PetId: ").Append(PetId).Append("\n");
|
||||
sb.Append(" Quantity: ").Append(Quantity).Append("\n");
|
||||
sb.Append(" ShipDate: ").Append(ShipDate).Append("\n");
|
||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||
sb.Append(" Complete: ").Append(Complete).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -188,25 +187,18 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.Id != null)
|
||||
hash = hash * 59 + this.Id.GetHashCode();
|
||||
|
||||
if (this.PetId != null)
|
||||
hash = hash * 59 + this.PetId.GetHashCode();
|
||||
|
||||
if (this.Quantity != null)
|
||||
hash = hash * 59 + this.Quantity.GetHashCode();
|
||||
|
||||
if (this.ShipDate != null)
|
||||
hash = hash * 59 + this.ShipDate.GetHashCode();
|
||||
|
||||
if (this.Status != null)
|
||||
hash = hash * 59 + this.Status.GetHashCode();
|
||||
|
||||
if (this.Complete != null)
|
||||
hash = hash * 59 + this.Complete.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -121,12 +121,11 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Pet {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Category: ").Append(Category).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
|
||||
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||
|
||||
sb.Append(" Category: ").Append(Category).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
|
||||
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -206,25 +205,18 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.Id != null)
|
||||
hash = hash * 59 + this.Id.GetHashCode();
|
||||
|
||||
if (this.Category != null)
|
||||
hash = hash * 59 + this.Category.GetHashCode();
|
||||
|
||||
if (this.Name != null)
|
||||
hash = hash * 59 + this.Name.GetHashCode();
|
||||
|
||||
if (this.PhotoUrls != null)
|
||||
hash = hash * 59 + this.PhotoUrls.GetHashCode();
|
||||
|
||||
if (this.Tags != null)
|
||||
hash = hash * 59 + this.Tags.GetHashCode();
|
||||
|
||||
if (this.Status != null)
|
||||
hash = hash * 59 + this.Status.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,6 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class SpecialModelName {\n");
|
||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -101,10 +100,8 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.SpecialPropertyName != null)
|
||||
hash = hash * 59 + this.SpecialPropertyName.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -54,8 +54,7 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Tag {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -115,13 +114,10 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.Id != null)
|
||||
hash = hash * 59 + this.Id.GetHashCode();
|
||||
|
||||
if (this.Name != null)
|
||||
hash = hash * 59 + this.Name.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
@ -103,14 +103,13 @@ namespace IO.Swagger.Model
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class User {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Username: ").Append(Username).Append("\n");
|
||||
sb.Append(" FirstName: ").Append(FirstName).Append("\n");
|
||||
sb.Append(" LastName: ").Append(LastName).Append("\n");
|
||||
sb.Append(" Email: ").Append(Email).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||
sb.Append(" Phone: ").Append(Phone).Append("\n");
|
||||
sb.Append(" UserStatus: ").Append(UserStatus).Append("\n");
|
||||
|
||||
sb.Append(" Username: ").Append(Username).Append("\n");
|
||||
sb.Append(" FirstName: ").Append(FirstName).Append("\n");
|
||||
sb.Append(" LastName: ").Append(LastName).Append("\n");
|
||||
sb.Append(" Email: ").Append(Email).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||
sb.Append(" Phone: ").Append(Phone).Append("\n");
|
||||
sb.Append(" UserStatus: ").Append(UserStatus).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
@ -200,31 +199,22 @@ namespace IO.Swagger.Model
|
||||
{
|
||||
int hash = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
|
||||
if (this.Id != null)
|
||||
hash = hash * 59 + this.Id.GetHashCode();
|
||||
|
||||
if (this.Username != null)
|
||||
hash = hash * 59 + this.Username.GetHashCode();
|
||||
|
||||
if (this.FirstName != null)
|
||||
hash = hash * 59 + this.FirstName.GetHashCode();
|
||||
|
||||
if (this.LastName != null)
|
||||
hash = hash * 59 + this.LastName.GetHashCode();
|
||||
|
||||
if (this.Email != null)
|
||||
hash = hash * 59 + this.Email.GetHashCode();
|
||||
|
||||
if (this.Password != null)
|
||||
hash = hash * 59 + this.Password.GetHashCode();
|
||||
|
||||
if (this.Phone != null)
|
||||
hash = hash * 59 + this.Phone.GetHashCode();
|
||||
|
||||
if (this.UserStatus != null)
|
||||
hash = hash * 59 + this.UserStatus.GetHashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user