diff --git a/modules/swagger-codegen/src/main/resources/csharp/api.mustache b/modules/swagger-codegen/src/main/resources/csharp/api.mustache
index 47139b52865..2f72f89cde6 100644
--- a/modules/swagger-codegen/src/main/resources/csharp/api.mustache
+++ b/modules/swagger-codegen/src/main/resources/csharp/api.mustache
@@ -24,6 +24,7 @@ namespace {{packageName}}.Api
///
/// {{notes}}
///
+ /// Thrown when fails to make API call
{{#allParams}}/// {{description}}
{{/allParams}}/// {{#returnType}}{{returnType}}{{/returnType}}
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
@@ -34,6 +35,7 @@ namespace {{packageName}}.Api
///
/// {{notes}}
///
+ /// Thrown when fails to make API call
{{#allParams}}/// {{description}}
{{/allParams}}/// ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}
ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
@@ -48,6 +50,7 @@ namespace {{packageName}}.Api
///
/// {{notes}}
///
+ /// Thrown when fails to make API call
{{#allParams}}/// {{description}}
{{/allParams}}/// Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}
{{#returnType}}System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
@@ -58,6 +61,7 @@ namespace {{packageName}}.Api
///
/// {{notes}}
///
+ /// Thrown when fails to make API call
{{#allParams}}/// {{description}}
{{/allParams}}/// Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}
System.Threading.Tasks.Task> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
@@ -145,6 +149,7 @@ namespace {{packageName}}.Api
///
/// {{summary}} {{notes}}
///
+ /// Thrown when fails to make API call
{{#allParams}}/// {{description}}
{{/allParams}}/// {{#returnType}}{{returnType}}{{/returnType}}
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
@@ -156,6 +161,7 @@ namespace {{packageName}}.Api
///
/// {{summary}} {{notes}}
///
+ /// Thrown when fails to make API call
{{#allParams}}/// {{description}}
{{/allParams}}/// ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}
public ApiResponse<{{#returnType}} {{{returnType}}} {{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
@@ -211,15 +217,13 @@ namespace {{packageName}}.Api
{{#authMethods}}// authentication ({{name}}) required
{{#isApiKey}}{{#isKeyInHeader}}
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
{
- headerParams["{{keyParamName}}"] = apiKeyValue;
+ headerParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
}{{/isKeyInHeader}}{{#isKeyInQuery}}
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
{
- queryParams["{{keyParamName}}"] = apiKeyValue;
+ queryParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
}{{/isKeyInQuery}}{{/isApiKey}}{{#isBasic}}
// http basic authentication required
if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password))
@@ -257,6 +261,7 @@ namespace {{packageName}}.Api
///
/// {{summary}} {{notes}}
///
+ /// Thrown when fails to make API call
{{#allParams}}/// {{description}}
{{/allParams}}/// Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}
{{#returnType}}public async System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
@@ -269,6 +274,7 @@ namespace {{packageName}}.Api
///
/// {{summary}} {{notes}}
///
+ /// Thrown when fails to make API call
{{#allParams}}/// {{description}}
{{/allParams}}/// Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}
public async System.Threading.Tasks.Task> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
@@ -317,15 +323,13 @@ namespace {{packageName}}.Api
{{#authMethods}}
// authentication ({{name}}) required
{{#isApiKey}}{{#isKeyInHeader}}
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
{
- headerParams["{{keyParamName}}"] = apiKeyValue;
+ headerParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
}{{/isKeyInHeader}}{{#isKeyInQuery}}
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
{
- queryParams["{{keyParamName}}"] = apiKeyValue;
+ queryParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
}{{/isKeyInQuery}}{{/isApiKey}}{{#isBasic}}
// http basic authentication required
if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password))
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/README.md b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/README.md
index 3ce83da957b..794a7c49b1b 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/README.md
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/README.md
@@ -6,12 +6,14 @@
- [RestSharp] (https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
- [Json.NET] (https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later
-NOTE: The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
+The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
```
Install-Package RestSharp
Install-Package Newtonsoft.Json
```
+NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
+
## Installation
Run the following command to generate the DLL
- [Mac/Linux] compile-mono.sh
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs
index 27c73638479..5ef6e286a8d 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs
@@ -23,6 +23,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
///
void UpdatePet (Pet body = null);
@@ -33,6 +34,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// ApiResponse of Object(void)
ApiResponse UpdatePetWithHttpInfo (Pet body = null);
@@ -43,6 +45,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
///
void AddPet (Pet body = null);
@@ -53,6 +56,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// ApiResponse of Object(void)
ApiResponse AddPetWithHttpInfo (Pet body = null);
@@ -63,6 +67,7 @@ namespace IO.Swagger.Api
///
/// Multiple status values can be provided with comma seperated strings
///
+ /// Thrown when fails to make API call
/// Status values that need to be considered for filter
/// List<Pet>
List FindPetsByStatus (List status = null);
@@ -73,6 +78,7 @@ namespace IO.Swagger.Api
///
/// Multiple status values can be provided with comma seperated strings
///
+ /// Thrown when fails to make API call
/// Status values that need to be considered for filter
/// ApiResponse of List<Pet>
ApiResponse> FindPetsByStatusWithHttpInfo (List status = null);
@@ -83,6 +89,7 @@ namespace IO.Swagger.Api
///
/// Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
+ /// Thrown when fails to make API call
/// Tags to filter by
/// List<Pet>
List FindPetsByTags (List tags = null);
@@ -93,6 +100,7 @@ namespace IO.Swagger.Api
///
/// Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
+ /// Thrown when fails to make API call
/// Tags to filter by
/// ApiResponse of List<Pet>
ApiResponse> FindPetsByTagsWithHttpInfo (List tags = null);
@@ -103,6 +111,7 @@ namespace IO.Swagger.Api
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Pet
Pet GetPetById (long? petId);
@@ -113,6 +122,7 @@ namespace IO.Swagger.Api
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// ApiResponse of Pet
ApiResponse GetPetByIdWithHttpInfo (long? petId);
@@ -123,6 +133,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be updated
/// Updated name of the pet
/// Updated status of the pet
@@ -135,6 +146,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be updated
/// Updated name of the pet
/// Updated status of the pet
@@ -147,6 +159,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet id to delete
///
///
@@ -158,6 +171,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet id to delete
///
/// ApiResponse of Object(void)
@@ -169,6 +183,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ID of pet to update
/// Additional data to pass to server
/// file to upload
@@ -181,6 +196,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ID of pet to update
/// Additional data to pass to server
/// file to upload
@@ -193,6 +209,7 @@ namespace IO.Swagger.Api
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// byte[]
byte[] GetPetByIdWithByteArray (long? petId);
@@ -203,6 +220,7 @@ namespace IO.Swagger.Api
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// ApiResponse of byte[]
ApiResponse GetPetByIdWithByteArrayWithHttpInfo (long? petId);
@@ -213,6 +231,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object in the form of byte array
///
void AddPetUsingByteArray (byte[] body = null);
@@ -223,6 +242,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object in the form of byte array
/// ApiResponse of Object(void)
ApiResponse AddPetUsingByteArrayWithHttpInfo (byte[] body = null);
@@ -237,6 +257,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Task of void
System.Threading.Tasks.Task UpdatePetAsync (Pet body = null);
@@ -247,6 +268,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Task of ApiResponse
System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet body = null);
@@ -257,6 +279,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Task of void
System.Threading.Tasks.Task AddPetAsync (Pet body = null);
@@ -267,6 +290,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Task of ApiResponse
System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet body = null);
@@ -277,6 +301,7 @@ namespace IO.Swagger.Api
///
/// Multiple status values can be provided with comma seperated strings
///
+ /// Thrown when fails to make API call
/// Status values that need to be considered for filter
/// Task of List<Pet>
System.Threading.Tasks.Task> FindPetsByStatusAsync (List status = null);
@@ -287,6 +312,7 @@ namespace IO.Swagger.Api
///
/// Multiple status values can be provided with comma seperated strings
///
+ /// Thrown when fails to make API call
/// Status values that need to be considered for filter
/// Task of ApiResponse (List<Pet>)
System.Threading.Tasks.Task>> FindPetsByStatusAsyncWithHttpInfo (List status = null);
@@ -297,6 +323,7 @@ namespace IO.Swagger.Api
///
/// Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
+ /// Thrown when fails to make API call
/// Tags to filter by
/// Task of List<Pet>
System.Threading.Tasks.Task> FindPetsByTagsAsync (List tags = null);
@@ -307,6 +334,7 @@ namespace IO.Swagger.Api
///
/// Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
+ /// Thrown when fails to make API call
/// Tags to filter by
/// Task of ApiResponse (List<Pet>)
System.Threading.Tasks.Task>> FindPetsByTagsAsyncWithHttpInfo (List tags = null);
@@ -317,6 +345,7 @@ namespace IO.Swagger.Api
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of Pet
System.Threading.Tasks.Task GetPetByIdAsync (long? petId);
@@ -327,6 +356,7 @@ namespace IO.Swagger.Api
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of ApiResponse (Pet)
System.Threading.Tasks.Task> GetPetByIdAsyncWithHttpInfo (long? petId);
@@ -337,6 +367,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be updated
/// Updated name of the pet
/// Updated status of the pet
@@ -349,6 +380,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be updated
/// Updated name of the pet
/// Updated status of the pet
@@ -361,6 +393,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet id to delete
///
/// Task of void
@@ -372,6 +405,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet id to delete
///
/// Task of ApiResponse
@@ -383,6 +417,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ID of pet to update
/// Additional data to pass to server
/// file to upload
@@ -395,6 +430,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ID of pet to update
/// Additional data to pass to server
/// file to upload
@@ -407,6 +443,7 @@ namespace IO.Swagger.Api
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of byte[]
System.Threading.Tasks.Task GetPetByIdWithByteArrayAsync (long? petId);
@@ -417,6 +454,7 @@ namespace IO.Swagger.Api
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of ApiResponse (byte[])
System.Threading.Tasks.Task> GetPetByIdWithByteArrayAsyncWithHttpInfo (long? petId);
@@ -427,6 +465,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object in the form of byte array
/// Task of void
System.Threading.Tasks.Task AddPetUsingByteArrayAsync (byte[] body = null);
@@ -437,6 +476,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Pet object in the form of byte array
/// Task of ApiResponse
System.Threading.Tasks.Task> AddPetUsingByteArrayAsyncWithHttpInfo (byte[] body = null);
@@ -524,6 +564,7 @@ namespace IO.Swagger.Api
///
/// Update an existing pet
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
///
public void UpdatePet (Pet body = null)
@@ -534,6 +575,7 @@ namespace IO.Swagger.Api
///
/// Update an existing pet
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// ApiResponse of Object(void)
public ApiResponse UpdatePetWithHttpInfo (Pet body = null)
@@ -610,6 +652,7 @@ namespace IO.Swagger.Api
///
/// Update an existing pet
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Task of void
public async System.Threading.Tasks.Task UpdatePetAsync (Pet body = null)
@@ -621,6 +664,7 @@ namespace IO.Swagger.Api
///
/// Update an existing pet
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Task of ApiResponse
public async System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet body = null)
@@ -691,6 +735,7 @@ namespace IO.Swagger.Api
///
/// Add a new pet to the store
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
///
public void AddPet (Pet body = null)
@@ -701,6 +746,7 @@ namespace IO.Swagger.Api
///
/// Add a new pet to the store
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// ApiResponse of Object(void)
public ApiResponse AddPetWithHttpInfo (Pet body = null)
@@ -777,6 +823,7 @@ namespace IO.Swagger.Api
///
/// Add a new pet to the store
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Task of void
public async System.Threading.Tasks.Task AddPetAsync (Pet body = null)
@@ -788,6 +835,7 @@ namespace IO.Swagger.Api
///
/// Add a new pet to the store
///
+ /// Thrown when fails to make API call
/// Pet object that needs to be added to the store
/// Task of ApiResponse
public async System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet body = null)
@@ -858,6 +906,7 @@ namespace IO.Swagger.Api
///
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
///
+ /// Thrown when fails to make API call
/// Status values that need to be considered for filter
/// List<Pet>
public List FindPetsByStatus (List status = null)
@@ -869,6 +918,7 @@ namespace IO.Swagger.Api
///
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
///
+ /// Thrown when fails to make API call
/// Status values that need to be considered for filter
/// ApiResponse of List<Pet>
public ApiResponse< List > FindPetsByStatusWithHttpInfo (List status = null)
@@ -939,6 +989,7 @@ namespace IO.Swagger.Api
///
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
///
+ /// Thrown when fails to make API call
/// Status values that need to be considered for filter
/// Task of List<Pet>
public async System.Threading.Tasks.Task> FindPetsByStatusAsync (List status = null)
@@ -951,6 +1002,7 @@ namespace IO.Swagger.Api
///
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
///
+ /// Thrown when fails to make API call
/// Status values that need to be considered for filter
/// Task of ApiResponse (List<Pet>)
public async System.Threading.Tasks.Task>> FindPetsByStatusAsyncWithHttpInfo (List status = null)
@@ -1021,6 +1073,7 @@ namespace IO.Swagger.Api
///
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
+ /// Thrown when fails to make API call
/// Tags to filter by
/// List<Pet>
public List FindPetsByTags (List tags = null)
@@ -1032,6 +1085,7 @@ namespace IO.Swagger.Api
///
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
+ /// Thrown when fails to make API call
/// Tags to filter by
/// ApiResponse of List<Pet>
public ApiResponse< List > FindPetsByTagsWithHttpInfo (List tags = null)
@@ -1102,6 +1156,7 @@ namespace IO.Swagger.Api
///
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
+ /// Thrown when fails to make API call
/// Tags to filter by
/// Task of List<Pet>
public async System.Threading.Tasks.Task> FindPetsByTagsAsync (List tags = null)
@@ -1114,6 +1169,7 @@ namespace IO.Swagger.Api
///
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
+ /// Thrown when fails to make API call
/// Tags to filter by
/// Task of ApiResponse (List<Pet>)
public async System.Threading.Tasks.Task>> FindPetsByTagsAsyncWithHttpInfo (List tags = null)
@@ -1184,6 +1240,7 @@ namespace IO.Swagger.Api
///
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Pet
public Pet GetPetById (long? petId)
@@ -1195,6 +1252,7 @@ namespace IO.Swagger.Api
///
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// ApiResponse of Pet
public ApiResponse< Pet > GetPetByIdWithHttpInfo (long? petId)
@@ -1240,10 +1298,16 @@ namespace IO.Swagger.Api
// authentication (api_key) required
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("api_key");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{
- headerParams["api_key"] = apiKeyValue;
+ headerParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
+ }
+ // authentication (petstore_auth) required
+
+ // oauth required
+ if (!String.IsNullOrEmpty(Configuration.AccessToken))
+ {
+ headerParams["Authorization"] = "Bearer " + Configuration.AccessToken;
}
@@ -1269,6 +1333,7 @@ namespace IO.Swagger.Api
///
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of Pet
public async System.Threading.Tasks.Task GetPetByIdAsync (long? petId)
@@ -1281,6 +1346,7 @@ namespace IO.Swagger.Api
///
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of ApiResponse (Pet)
public async System.Threading.Tasks.Task> GetPetByIdAsyncWithHttpInfo (long? petId)
@@ -1325,10 +1391,17 @@ namespace IO.Swagger.Api
// authentication (api_key) required
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("api_key");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{
- headerParams["api_key"] = apiKeyValue;
+ headerParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
+ }
+
+ // authentication (petstore_auth) required
+
+ // oauth required
+ if (!String.IsNullOrEmpty(Configuration.AccessToken))
+ {
+ headerParams["Authorization"] = "Bearer " + Configuration.AccessToken;
}
@@ -1353,6 +1426,7 @@ namespace IO.Swagger.Api
///
/// Updates a pet in the store with form data
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be updated
/// Updated name of the pet
/// Updated status of the pet
@@ -1365,6 +1439,7 @@ namespace IO.Swagger.Api
///
/// Updates a pet in the store with form data
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be updated
/// Updated name of the pet
/// Updated status of the pet
@@ -1443,6 +1518,7 @@ namespace IO.Swagger.Api
///
/// Updates a pet in the store with form data
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be updated
/// Updated name of the pet
/// Updated status of the pet
@@ -1456,6 +1532,7 @@ namespace IO.Swagger.Api
///
/// Updates a pet in the store with form data
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be updated
/// Updated name of the pet
/// Updated status of the pet
@@ -1532,6 +1609,7 @@ namespace IO.Swagger.Api
///
/// Deletes a pet
///
+ /// Thrown when fails to make API call
/// Pet id to delete
///
///
@@ -1543,6 +1621,7 @@ namespace IO.Swagger.Api
///
/// Deletes a pet
///
+ /// Thrown when fails to make API call
/// Pet id to delete
///
/// ApiResponse of Object(void)
@@ -1619,6 +1698,7 @@ namespace IO.Swagger.Api
///
/// Deletes a pet
///
+ /// Thrown when fails to make API call
/// Pet id to delete
///
/// Task of void
@@ -1631,6 +1711,7 @@ namespace IO.Swagger.Api
///
/// Deletes a pet
///
+ /// Thrown when fails to make API call
/// Pet id to delete
///
/// Task of ApiResponse
@@ -1705,6 +1786,7 @@ namespace IO.Swagger.Api
///
/// uploads an image
///
+ /// Thrown when fails to make API call
/// ID of pet to update
/// Additional data to pass to server
/// file to upload
@@ -1717,6 +1799,7 @@ namespace IO.Swagger.Api
///
/// uploads an image
///
+ /// Thrown when fails to make API call
/// ID of pet to update
/// Additional data to pass to server
/// file to upload
@@ -1795,6 +1878,7 @@ namespace IO.Swagger.Api
///
/// uploads an image
///
+ /// Thrown when fails to make API call
/// ID of pet to update
/// Additional data to pass to server
/// file to upload
@@ -1808,6 +1892,7 @@ namespace IO.Swagger.Api
///
/// uploads an image
///
+ /// Thrown when fails to make API call
/// ID of pet to update
/// Additional data to pass to server
/// file to upload
@@ -1884,6 +1969,7 @@ namespace IO.Swagger.Api
///
/// 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
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// byte[]
public byte[] GetPetByIdWithByteArray (long? petId)
@@ -1895,6 +1981,7 @@ namespace IO.Swagger.Api
///
/// 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
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// ApiResponse of byte[]
public ApiResponse< byte[] > GetPetByIdWithByteArrayWithHttpInfo (long? petId)
@@ -1940,10 +2027,16 @@ namespace IO.Swagger.Api
// authentication (api_key) required
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("api_key");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{
- headerParams["api_key"] = apiKeyValue;
+ headerParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
+ }
+ // authentication (petstore_auth) required
+
+ // oauth required
+ if (!String.IsNullOrEmpty(Configuration.AccessToken))
+ {
+ headerParams["Authorization"] = "Bearer " + Configuration.AccessToken;
}
@@ -1969,6 +2062,7 @@ namespace IO.Swagger.Api
///
/// 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
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of byte[]
public async System.Threading.Tasks.Task GetPetByIdWithByteArrayAsync (long? petId)
@@ -1981,6 +2075,7 @@ namespace IO.Swagger.Api
///
/// 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
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of ApiResponse (byte[])
public async System.Threading.Tasks.Task> GetPetByIdWithByteArrayAsyncWithHttpInfo (long? petId)
@@ -2025,10 +2120,17 @@ namespace IO.Swagger.Api
// authentication (api_key) required
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("api_key");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{
- headerParams["api_key"] = apiKeyValue;
+ headerParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
+ }
+
+ // authentication (petstore_auth) required
+
+ // oauth required
+ if (!String.IsNullOrEmpty(Configuration.AccessToken))
+ {
+ headerParams["Authorization"] = "Bearer " + Configuration.AccessToken;
}
@@ -2053,6 +2155,7 @@ namespace IO.Swagger.Api
///
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store
///
+ /// Thrown when fails to make API call
/// Pet object in the form of byte array
///
public void AddPetUsingByteArray (byte[] body = null)
@@ -2063,6 +2166,7 @@ namespace IO.Swagger.Api
///
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store
///
+ /// Thrown when fails to make API call
/// Pet object in the form of byte array
/// ApiResponse of Object(void)
public ApiResponse AddPetUsingByteArrayWithHttpInfo (byte[] body = null)
@@ -2139,6 +2243,7 @@ namespace IO.Swagger.Api
///
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store
///
+ /// Thrown when fails to make API call
/// Pet object in the form of byte array
/// Task of void
public async System.Threading.Tasks.Task AddPetUsingByteArrayAsync (byte[] body = null)
@@ -2150,6 +2255,7 @@ namespace IO.Swagger.Api
///
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store
///
+ /// Thrown when fails to make API call
/// Pet object in the form of byte array
/// Task of ApiResponse
public async System.Threading.Tasks.Task> AddPetUsingByteArrayAsyncWithHttpInfo (byte[] body = null)
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs
index 2646ef0619a..914e28dd6fb 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs
@@ -23,6 +23,7 @@ namespace IO.Swagger.Api
///
/// Returns a map of status codes to quantities
///
+ /// Thrown when fails to make API call
/// Dictionary<string, int?>
Dictionary GetInventory ();
@@ -32,6 +33,7 @@ namespace IO.Swagger.Api
///
/// Returns a map of status codes to quantities
///
+ /// Thrown when fails to make API call
/// ApiResponse of Dictionary<string, int?>
ApiResponse> GetInventoryWithHttpInfo ();
@@ -41,6 +43,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// order placed for purchasing the pet
/// Order
Order PlaceOrder (Order body = null);
@@ -51,6 +54,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// order placed for purchasing the pet
/// ApiResponse of Order
ApiResponse PlaceOrderWithHttpInfo (Order body = null);
@@ -61,6 +65,7 @@ namespace IO.Swagger.Api
///
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Order
Order GetOrderById (string orderId);
@@ -71,6 +76,7 @@ namespace IO.Swagger.Api
///
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// ApiResponse of Order
ApiResponse GetOrderByIdWithHttpInfo (string orderId);
@@ -81,6 +87,7 @@ namespace IO.Swagger.Api
///
/// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
+ /// Thrown when fails to make API call
/// ID of the order that needs to be deleted
///
void DeleteOrder (string orderId);
@@ -91,6 +98,7 @@ namespace IO.Swagger.Api
///
/// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
+ /// Thrown when fails to make API call
/// ID of the order that needs to be deleted
/// ApiResponse of Object(void)
ApiResponse DeleteOrderWithHttpInfo (string orderId);
@@ -105,6 +113,7 @@ namespace IO.Swagger.Api
///
/// Returns a map of status codes to quantities
///
+ /// Thrown when fails to make API call
/// Task of Dictionary<string, int?>
System.Threading.Tasks.Task> GetInventoryAsync ();
@@ -114,6 +123,7 @@ namespace IO.Swagger.Api
///
/// Returns a map of status codes to quantities
///
+ /// Thrown when fails to make API call
/// Task of ApiResponse (Dictionary<string, int?>)
System.Threading.Tasks.Task>> GetInventoryAsyncWithHttpInfo ();
@@ -123,6 +133,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// order placed for purchasing the pet
/// Task of Order
System.Threading.Tasks.Task PlaceOrderAsync (Order body = null);
@@ -133,6 +144,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// order placed for purchasing the pet
/// Task of ApiResponse (Order)
System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order body = null);
@@ -143,6 +155,7 @@ namespace IO.Swagger.Api
///
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of Order
System.Threading.Tasks.Task GetOrderByIdAsync (string orderId);
@@ -153,6 +166,7 @@ namespace IO.Swagger.Api
///
/// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of ApiResponse (Order)
System.Threading.Tasks.Task> GetOrderByIdAsyncWithHttpInfo (string orderId);
@@ -163,6 +177,7 @@ namespace IO.Swagger.Api
///
/// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
+ /// Thrown when fails to make API call
/// ID of the order that needs to be deleted
/// Task of void
System.Threading.Tasks.Task DeleteOrderAsync (string orderId);
@@ -173,6 +188,7 @@ namespace IO.Swagger.Api
///
/// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
+ /// Thrown when fails to make API call
/// ID of the order that needs to be deleted
/// Task of ApiResponse
System.Threading.Tasks.Task> DeleteOrderAsyncWithHttpInfo (string orderId);
@@ -260,6 +276,7 @@ namespace IO.Swagger.Api
///
/// Returns pet inventories by status Returns a map of status codes to quantities
///
+ /// Thrown when fails to make API call
/// Dictionary<string, int?>
public Dictionary GetInventory ()
{
@@ -270,6 +287,7 @@ namespace IO.Swagger.Api
///
/// Returns pet inventories by status Returns a map of status codes to quantities
///
+ /// Thrown when fails to make API call
/// ApiResponse of Dictionary<string, int?>
public ApiResponse< Dictionary > GetInventoryWithHttpInfo ()
{
@@ -309,10 +327,9 @@ namespace IO.Swagger.Api
// authentication (api_key) required
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("api_key");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{
- headerParams["api_key"] = apiKeyValue;
+ headerParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
}
@@ -338,6 +355,7 @@ namespace IO.Swagger.Api
///
/// Returns pet inventories by status Returns a map of status codes to quantities
///
+ /// Thrown when fails to make API call
/// Task of Dictionary<string, int?>
public async System.Threading.Tasks.Task> GetInventoryAsync ()
{
@@ -349,6 +367,7 @@ namespace IO.Swagger.Api
///
/// Returns pet inventories by status Returns a map of status codes to quantities
///
+ /// Thrown when fails to make API call
/// Task of ApiResponse (Dictionary<string, int?>)
public async System.Threading.Tasks.Task>> GetInventoryAsyncWithHttpInfo ()
{
@@ -389,10 +408,9 @@ namespace IO.Swagger.Api
// authentication (api_key) required
- var apiKeyValue = Configuration.GetApiKeyWithPrefix("api_key");
- if (!String.IsNullOrEmpty(apiKeyValue))
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{
- headerParams["api_key"] = apiKeyValue;
+ headerParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
}
@@ -417,6 +435,7 @@ namespace IO.Swagger.Api
///
/// Place an order for a pet
///
+ /// Thrown when fails to make API call
/// order placed for purchasing the pet
/// Order
public Order PlaceOrder (Order body = null)
@@ -428,6 +447,7 @@ namespace IO.Swagger.Api
///
/// Place an order for a pet
///
+ /// Thrown when fails to make API call
/// order placed for purchasing the pet
/// ApiResponse of Order
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body = null)
@@ -473,6 +493,18 @@ namespace IO.Swagger.Api
postBody = body; // byte array
}
+ // authentication (test_api_client_id) required
+
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
+ {
+ headerParams["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")))
+ {
+ headerParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
+ }
// make the HTTP request
@@ -497,6 +529,7 @@ namespace IO.Swagger.Api
///
/// Place an order for a pet
///
+ /// Thrown when fails to make API call
/// order placed for purchasing the pet
/// Task of Order
public async System.Threading.Tasks.Task PlaceOrderAsync (Order body = null)
@@ -509,6 +542,7 @@ namespace IO.Swagger.Api
///
/// Place an order for a pet
///
+ /// Thrown when fails to make API call
/// order placed for purchasing the pet
/// Task of ApiResponse (Order)
public async System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order body = null)
@@ -549,6 +583,20 @@ namespace IO.Swagger.Api
+ // authentication (test_api_client_id) required
+
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
+ {
+ headerParams["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")))
+ {
+ headerParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
+ }
+
// make the HTTP request
IRestResponse response = (IRestResponse) await Configuration.ApiClient.CallApiAsync(path_,
@@ -571,6 +619,7 @@ namespace IO.Swagger.Api
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Order
public Order GetOrderById (string orderId)
@@ -582,6 +631,7 @@ namespace IO.Swagger.Api
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// ApiResponse of Order
public ApiResponse< Order > GetOrderByIdWithHttpInfo (string orderId)
@@ -625,6 +675,18 @@ namespace IO.Swagger.Api
+ // authentication (test_api_key_header) required
+
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header")))
+ {
+ headerParams["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")))
+ {
+ queryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
+ }
// make the HTTP request
@@ -649,6 +711,7 @@ namespace IO.Swagger.Api
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of Order
public async System.Threading.Tasks.Task GetOrderByIdAsync (string orderId)
@@ -661,6 +724,7 @@ namespace IO.Swagger.Api
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
+ /// Thrown when fails to make API call
/// ID of pet that needs to be fetched
/// Task of ApiResponse (Order)
public async System.Threading.Tasks.Task> GetOrderByIdAsyncWithHttpInfo (string orderId)
@@ -703,6 +767,20 @@ namespace IO.Swagger.Api
+ // authentication (test_api_key_header) required
+
+ if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header")))
+ {
+ headerParams["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")))
+ {
+ queryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
+ }
+
// make the HTTP request
IRestResponse response = (IRestResponse) await Configuration.ApiClient.CallApiAsync(path_,
@@ -725,6 +803,7 @@ namespace IO.Swagger.Api
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
+ /// Thrown when fails to make API call
/// ID of the order that needs to be deleted
///
public void DeleteOrder (string orderId)
@@ -735,6 +814,7 @@ namespace IO.Swagger.Api
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
+ /// Thrown when fails to make API call
/// ID of the order that needs to be deleted
/// ApiResponse of Object(void)
public ApiResponse DeleteOrderWithHttpInfo (string orderId)
@@ -802,6 +882,7 @@ namespace IO.Swagger.Api
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
+ /// Thrown when fails to make API call
/// ID of the order that needs to be deleted
/// Task of void
public async System.Threading.Tasks.Task DeleteOrderAsync (string orderId)
@@ -813,6 +894,7 @@ namespace IO.Swagger.Api
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
+ /// Thrown when fails to make API call
/// ID of the order that needs to be deleted
/// Task of ApiResponse
public async System.Threading.Tasks.Task> DeleteOrderAsyncWithHttpInfo (string orderId)
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs
index b97bb313873..ba4d7c345d1 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs
@@ -23,6 +23,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// Created user object
///
void CreateUser (User body = null);
@@ -33,6 +34,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// Created user object
/// ApiResponse of Object(void)
ApiResponse CreateUserWithHttpInfo (User body = null);
@@ -43,6 +45,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// List of user object
///
void CreateUsersWithArrayInput (List body = null);
@@ -53,6 +56,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// List of user object
/// ApiResponse of Object(void)
ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body = null);
@@ -63,6 +67,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// List of user object
///
void CreateUsersWithListInput (List body = null);
@@ -73,6 +78,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// List of user object
/// ApiResponse of Object(void)
ApiResponse CreateUsersWithListInputWithHttpInfo (List body = null);
@@ -83,6 +89,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// The user name for login
/// The password for login in clear text
/// string
@@ -94,6 +101,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// The user name for login
/// The password for login in clear text
/// ApiResponse of string
@@ -105,6 +113,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
///
void LogoutUser ();
@@ -114,6 +123,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// ApiResponse of Object(void)
ApiResponse LogoutUserWithHttpInfo ();
@@ -123,6 +133,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// The name that needs to be fetched. Use user1 for testing.
/// User
User GetUserByName (string username);
@@ -133,6 +144,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// The name that needs to be fetched. Use user1 for testing.
/// ApiResponse of User
ApiResponse GetUserByNameWithHttpInfo (string username);
@@ -143,6 +155,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// name that need to be deleted
/// Updated user object
///
@@ -154,6 +167,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// name that need to be deleted
/// Updated user object
/// ApiResponse of Object(void)
@@ -165,6 +179,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// The name that needs to be deleted
///
void DeleteUser (string username);
@@ -175,6 +190,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// The name that needs to be deleted
/// ApiResponse of Object(void)
ApiResponse DeleteUserWithHttpInfo (string username);
@@ -189,6 +205,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// Created user object
/// Task of void
System.Threading.Tasks.Task CreateUserAsync (User body = null);
@@ -199,6 +216,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// Created user object
/// Task of ApiResponse
System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User body = null);
@@ -209,6 +227,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// List of user object
/// Task of void
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List body = null);
@@ -219,6 +238,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// List of user object
/// Task of ApiResponse
System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List body = null);
@@ -229,6 +249,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// List of user object
/// Task of void
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List body = null);
@@ -239,6 +260,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// List of user object
/// Task of ApiResponse
System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List body = null);
@@ -249,6 +271,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// The user name for login
/// The password for login in clear text
/// Task of string
@@ -260,6 +283,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// The user name for login
/// The password for login in clear text
/// Task of ApiResponse (string)
@@ -271,6 +295,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Task of void
System.Threading.Tasks.Task LogoutUserAsync ();
@@ -280,6 +305,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// Task of ApiResponse
System.Threading.Tasks.Task> LogoutUserAsyncWithHttpInfo ();
@@ -289,6 +315,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// The name that needs to be fetched. Use user1 for testing.
/// Task of User
System.Threading.Tasks.Task GetUserByNameAsync (string username);
@@ -299,6 +326,7 @@ namespace IO.Swagger.Api
///
///
///
+ /// Thrown when fails to make API call
/// The name that needs to be fetched. Use user1 for testing.
/// Task of ApiResponse (User)
System.Threading.Tasks.Task> GetUserByNameAsyncWithHttpInfo (string username);
@@ -309,6 +337,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// name that need to be deleted
/// Updated user object
/// Task of void
@@ -320,6 +349,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// name that need to be deleted
/// Updated user object
/// Task of ApiResponse
@@ -331,6 +361,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// The name that needs to be deleted
/// Task of void
System.Threading.Tasks.Task DeleteUserAsync (string username);
@@ -341,6 +372,7 @@ namespace IO.Swagger.Api
///
/// This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// The name that needs to be deleted
/// Task of ApiResponse
System.Threading.Tasks.Task> DeleteUserAsyncWithHttpInfo (string username);
@@ -428,6 +460,7 @@ namespace IO.Swagger.Api
///
/// Create user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// Created user object
///
public void CreateUser (User body = null)
@@ -438,6 +471,7 @@ namespace IO.Swagger.Api
///
/// Create user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// Created user object
/// ApiResponse of Object(void)
public ApiResponse CreateUserWithHttpInfo (User body = null)
@@ -507,6 +541,7 @@ namespace IO.Swagger.Api
///
/// Create user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// Created user object
/// Task of void
public async System.Threading.Tasks.Task CreateUserAsync (User body = null)
@@ -518,6 +553,7 @@ namespace IO.Swagger.Api
///
/// Create user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// Created user object
/// Task of ApiResponse
public async System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User body = null)
@@ -580,6 +616,7 @@ namespace IO.Swagger.Api
///
/// Creates list of users with given input array
///
+ /// Thrown when fails to make API call
/// List of user object
///
public void CreateUsersWithArrayInput (List body = null)
@@ -590,6 +627,7 @@ namespace IO.Swagger.Api
///
/// Creates list of users with given input array
///
+ /// Thrown when fails to make API call
/// List of user object
/// ApiResponse of Object(void)
public ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body = null)
@@ -659,6 +697,7 @@ namespace IO.Swagger.Api
///
/// Creates list of users with given input array
///
+ /// Thrown when fails to make API call
/// List of user object
/// Task of void
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List body = null)
@@ -670,6 +709,7 @@ namespace IO.Swagger.Api
///
/// Creates list of users with given input array
///
+ /// Thrown when fails to make API call
/// List of user object
/// Task of ApiResponse
public async System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List body = null)
@@ -732,6 +772,7 @@ namespace IO.Swagger.Api
///
/// Creates list of users with given input array
///
+ /// Thrown when fails to make API call
/// List of user object
///
public void CreateUsersWithListInput (List body = null)
@@ -742,6 +783,7 @@ namespace IO.Swagger.Api
///
/// Creates list of users with given input array
///
+ /// Thrown when fails to make API call
/// List of user object
/// ApiResponse of Object(void)
public ApiResponse CreateUsersWithListInputWithHttpInfo (List body = null)
@@ -811,6 +853,7 @@ namespace IO.Swagger.Api
///
/// Creates list of users with given input array
///
+ /// Thrown when fails to make API call
/// List of user object
/// Task of void
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List body = null)
@@ -822,6 +865,7 @@ namespace IO.Swagger.Api
///
/// Creates list of users with given input array
///
+ /// Thrown when fails to make API call
/// List of user object
/// Task of ApiResponse
public async System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List body = null)
@@ -884,6 +928,7 @@ namespace IO.Swagger.Api
///
/// Logs user into the system
///
+ /// Thrown when fails to make API call
/// The user name for login
/// The password for login in clear text
/// string
@@ -896,6 +941,7 @@ namespace IO.Swagger.Api
///
/// Logs user into the system
///
+ /// Thrown when fails to make API call
/// The user name for login
/// The password for login in clear text
/// ApiResponse of string
@@ -961,6 +1007,7 @@ namespace IO.Swagger.Api
///
/// Logs user into the system
///
+ /// Thrown when fails to make API call
/// The user name for login
/// The password for login in clear text
/// Task of string
@@ -974,6 +1021,7 @@ namespace IO.Swagger.Api
///
/// Logs user into the system
///
+ /// Thrown when fails to make API call
/// The user name for login
/// The password for login in clear text
/// Task of ApiResponse (string)
@@ -1038,6 +1086,7 @@ namespace IO.Swagger.Api
///
/// Logs out current logged in user session
///
+ /// Thrown when fails to make API call
///
public void LogoutUser ()
{
@@ -1047,6 +1096,7 @@ namespace IO.Swagger.Api
///
/// Logs out current logged in user session
///
+ /// Thrown when fails to make API call
/// ApiResponse of Object(void)
public ApiResponse LogoutUserWithHttpInfo ()
{
@@ -1108,6 +1158,7 @@ namespace IO.Swagger.Api
///
/// Logs out current logged in user session
///
+ /// Thrown when fails to make API call
/// Task of void
public async System.Threading.Tasks.Task LogoutUserAsync ()
{
@@ -1118,6 +1169,7 @@ namespace IO.Swagger.Api
///
/// Logs out current logged in user session
///
+ /// Thrown when fails to make API call
/// Task of ApiResponse
public async System.Threading.Tasks.Task> LogoutUserAsyncWithHttpInfo ()
{
@@ -1178,6 +1230,7 @@ namespace IO.Swagger.Api
///
/// Get user by user name
///
+ /// Thrown when fails to make API call
/// The name that needs to be fetched. Use user1 for testing.
/// User
public User GetUserByName (string username)
@@ -1189,6 +1242,7 @@ namespace IO.Swagger.Api
///
/// Get user by user name
///
+ /// Thrown when fails to make API call
/// The name that needs to be fetched. Use user1 for testing.
/// ApiResponse of User
public ApiResponse< User > GetUserByNameWithHttpInfo (string username)
@@ -1256,6 +1310,7 @@ namespace IO.Swagger.Api
///
/// Get user by user name
///
+ /// Thrown when fails to make API call
/// The name that needs to be fetched. Use user1 for testing.
/// Task of User
public async System.Threading.Tasks.Task GetUserByNameAsync (string username)
@@ -1268,6 +1323,7 @@ namespace IO.Swagger.Api
///
/// Get user by user name
///
+ /// Thrown when fails to make API call
/// The name that needs to be fetched. Use user1 for testing.
/// Task of ApiResponse (User)
public async System.Threading.Tasks.Task> GetUserByNameAsyncWithHttpInfo (string username)
@@ -1332,6 +1388,7 @@ namespace IO.Swagger.Api
///
/// Updated user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// name that need to be deleted
/// Updated user object
///
@@ -1343,6 +1400,7 @@ namespace IO.Swagger.Api
///
/// Updated user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// name that need to be deleted
/// Updated user object
/// ApiResponse of Object(void)
@@ -1418,6 +1476,7 @@ namespace IO.Swagger.Api
///
/// Updated user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// name that need to be deleted
/// Updated user object
/// Task of void
@@ -1430,6 +1489,7 @@ namespace IO.Swagger.Api
///
/// Updated user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// name that need to be deleted
/// Updated user object
/// Task of ApiResponse
@@ -1496,6 +1556,7 @@ namespace IO.Swagger.Api
///
/// Delete user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// The name that needs to be deleted
///
public void DeleteUser (string username)
@@ -1506,6 +1567,7 @@ namespace IO.Swagger.Api
///
/// Delete user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// The name that needs to be deleted
/// ApiResponse of Object(void)
public ApiResponse DeleteUserWithHttpInfo (string username)
@@ -1573,6 +1635,7 @@ namespace IO.Swagger.Api
///
/// Delete user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// The name that needs to be deleted
/// Task of void
public async System.Threading.Tasks.Task DeleteUserAsync (string username)
@@ -1584,6 +1647,7 @@ namespace IO.Swagger.Api
///
/// Delete user This can only be done by the logged in user.
///
+ /// Thrown when fails to make API call
/// The name that needs to be deleted
/// Task of ApiResponse
public async System.Threading.Tasks.Task> DeleteUserAsyncWithHttpInfo (string username)