fix indention in c#

This commit is contained in:
wing328 2016-04-12 12:42:09 +08:00
parent 3e13f69b53
commit b34c9dd7ee
5 changed files with 317 additions and 384 deletions

View File

@ -178,14 +178,15 @@ namespace {{packageName}}.Api
{{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns> {{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns>
public ApiResponse<{{#returnType}} {{{returnType}}} {{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) public ApiResponse<{{#returnType}} {{{returnType}}} {{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{ {
{{#allParams}}{{#required}} {{#allParams}}
{{#required}}
// verify the required parameter '{{paramName}}' is set // verify the required parameter '{{paramName}}' is set
if ({{paramName}} == null) if ({{paramName}} == null)
throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}"); throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}");
{{/required}}{{/allParams}} {{/required}}
{{/allParams}}
var localVarPath = "{{path}}"; var localVarPath = "{{path}}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -195,13 +196,17 @@ namespace {{packageName}}.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
{{#consumes}}"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} {{#consumes}}
"{{mediaType}}"{{#hasMore}}, {{/hasMore}}
{{/consumes}}
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
{{#produces}}"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/produces}} {{#produces}}
"{{mediaType}}"{{#hasMore}}, {{/hasMore}}
{{/produces}}
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -210,38 +215,53 @@ namespace {{packageName}}.Api
// set "format" to json by default // set "format" to json by default
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
{{#pathParams}}if ({{paramName}} != null) localVarPathParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // path parameter {{#pathParams}}
if ({{paramName}} != null) localVarPathParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // path parameter
{{/pathParams}} {{/pathParams}}
{{#queryParams}}if ({{paramName}} != null) localVarQueryParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // query parameter {{#queryParams}}
if ({{paramName}} != null) localVarQueryParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // query parameter
{{/queryParams}} {{/queryParams}}
{{#headerParams}}if ({{paramName}} != null) localVarHeaderParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // header parameter {{#headerParams}}
if ({{paramName}} != null) localVarHeaderParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // header parameter
{{/headerParams}} {{/headerParams}}
{{#formParams}}if ({{paramName}} != null) {{#isFile}}localVarFileParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToFile("{{baseName}}", {{paramName}}));{{/isFile}}{{^isFile}}localVarFormParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // form parameter{{/isFile}} {{#formParams}}
if ({{paramName}} != null) {{#isFile}}localVarFileParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToFile("{{baseName}}", {{paramName}}));{{/isFile}}{{^isFile}}localVarFormParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // form parameter{{/isFile}}
{{/formParams}} {{/formParams}}
{{#bodyParam}}if ({{paramName}}.GetType() != typeof(byte[])) {{#bodyParam}}
if ({{paramName}}.GetType() != typeof(byte[]))
{ {
localVarPostBody = Configuration.ApiClient.Serialize({{paramName}}); // http body (model) parameter localVarPostBody = Configuration.ApiClient.Serialize({{paramName}}); // http body (model) parameter
} }
else else
{ {
localVarPostBody = {{paramName}}; // byte array localVarPostBody = {{paramName}}; // byte array
}{{/bodyParam}} }
{{/bodyParam}}
{{#authMethods}}// authentication ({{name}}) required {{#authMethods}}
{{#isApiKey}}{{#isKeyInHeader}} // authentication ({{name}}) required
{{#isApiKey}}
{{#isKeyInHeader}}
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
{ {
localVarHeaderParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}"); localVarHeaderParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
}{{/isKeyInHeader}}{{#isKeyInQuery}} }
{{/isKeyInHeader}}
{{#isKeyInQuery}}
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
{ {
localVarQueryParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}"); localVarQueryParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
}{{/isKeyInQuery}}{{/isApiKey}}{{#isBasic}} }
{{/isKeyInQuery}}
{{/isApiKey}}
{{#isBasic}}
// http basic authentication required // http basic authentication required
if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password)) if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password))
{ {
localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(Configuration.Username + ":" + Configuration.Password); localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(Configuration.Username + ":" + Configuration.Password);
}{{/isBasic}}{{#isOAuth}} }
{{/isBasic}}
{{#isOAuth}}
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -291,12 +311,15 @@ namespace {{packageName}}.Api
{{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns> {{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
public async System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) public async System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{ {
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set {{#allParams}}
if ({{paramName}} == null) throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{operationId}}"); {{#required}}
{{/required}}{{/allParams}} // verify the required parameter '{{paramName}}' is set
if ({{paramName}} == null)
throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}");
{{/required}}
{{/allParams}}
var localVarPath = "{{path}}"; var localVarPath = "{{path}}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -306,13 +329,17 @@ namespace {{packageName}}.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
{{#consumes}}"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} {{#consumes}}
"{{mediaType}}"{{#hasMore}}, {{/hasMore}}
{{/consumes}}
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
{{#produces}}"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/produces}} {{#produces}}
"{{mediaType}}"{{#hasMore}}, {{/hasMore}}
{{/produces}}
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -321,44 +348,59 @@ namespace {{packageName}}.Api
// set "format" to json by default // set "format" to json by default
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
{{#pathParams}}if ({{paramName}} != null) localVarPathParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // path parameter {{#pathParams}}
if ({{paramName}} != null) localVarPathParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // path parameter
{{/pathParams}} {{/pathParams}}
{{#queryParams}}if ({{paramName}} != null) localVarQueryParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // query parameter {{#queryParams}}
if ({{paramName}} != null) localVarQueryParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // query parameter
{{/queryParams}} {{/queryParams}}
{{#headerParams}}if ({{paramName}} != null) localVarHeaderParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // header parameter {{#headerParams}}
if ({{paramName}} != null) localVarHeaderParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // header parameter
{{/headerParams}} {{/headerParams}}
{{#formParams}}if ({{paramName}} != null) {{#isFile}}localVarFileParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToFile("{{baseName}}", {{paramName}}));{{/isFile}}{{^isFile}}localVarFormParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // form parameter{{/isFile}} {{#formParams}}
if ({{paramName}} != null) {{#isFile}}localVarFileParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToFile("{{baseName}}", {{paramName}}));{{/isFile}}{{^isFile}}localVarFormParams.Add("{{baseName}}", Configuration.ApiClient.ParameterToString({{paramName}})); // form parameter{{/isFile}}
{{/formParams}} {{/formParams}}
{{#bodyParam}}if ({{paramName}}.GetType() != typeof(byte[])) {{#bodyParam}}
if ({{paramName}}.GetType() != typeof(byte[]))
{ {
localVarPostBody = Configuration.ApiClient.Serialize({{paramName}}); // http body (model) parameter localVarPostBody = Configuration.ApiClient.Serialize({{paramName}}); // http body (model) parameter
} }
else else
{ {
localVarPostBody = {{paramName}}; // byte array localVarPostBody = {{paramName}}; // byte array
}{{/bodyParam}} }
{{/bodyParam}}
{{#authMethods}} {{#authMethods}}
// authentication ({{name}}) required // authentication ({{name}}) required
{{#isApiKey}}{{#isKeyInHeader}} {{#isApiKey}}
{{#isKeyInHeader}}
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
{ {
localVarHeaderParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}"); localVarHeaderParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
}{{/isKeyInHeader}}{{#isKeyInQuery}} }
{{/isKeyInHeader}}
{{#isKeyInQuery}}
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
{ {
localVarQueryParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}"); localVarQueryParams["{{keyParamName}}"] = Configuration.GetApiKeyWithPrefix("{{keyParamName}}");
}{{/isKeyInQuery}}{{/isApiKey}}{{#isBasic}} }
{{/isKeyInQuery}}
{{/isApiKey}}
{{#isBasic}}
// http basic authentication required // http basic authentication required
if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password)) if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password))
{ {
localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(Configuration.Username + ":" + Configuration.Password); localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(Configuration.Username + ":" + Configuration.Password);
}{{/isBasic}}{{#isOAuth}} }
{{/isBasic}}
{{#isOAuth}}
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken; localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken;
}{{/isOAuth}} }
{{/isOAuth}}
{{/authMethods}} {{/authMethods}}
// make the HTTP request // make the HTTP request
@ -379,7 +421,9 @@ namespace {{packageName}}.Api
{{^returnType}}return new ApiResponse<Object>(localVarStatusCode, {{^returnType}}return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null);{{/returnType}} null);{{/returnType}}
}{{/supportsAsync}} }
{{/supportsAsync}}
{{/operation}} {{/operation}}
} }
{{/operations}} {{/operations}}

View File

@ -609,9 +609,7 @@ namespace IO.Swagger.Api
public ApiResponse<Object> AddPetWithHttpInfo (Pet body = null) public ApiResponse<Object> AddPetWithHttpInfo (Pet body = null)
{ {
var localVarPath = "/pet"; var localVarPath = "/pet";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -621,13 +619,15 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -646,7 +646,6 @@ namespace IO.Swagger.Api
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -692,9 +691,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body = null)
{ {
var localVarPath = "/pet"; var localVarPath = "/pet";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -704,13 +701,15 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -729,7 +728,6 @@ namespace IO.Swagger.Api
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -753,6 +751,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Fake endpoint to test byte array in body parameter for adding a new pet to the store /// Fake endpoint to test byte array in body parameter for adding a new pet to the store
/// </summary> /// </summary>
@ -773,9 +772,7 @@ namespace IO.Swagger.Api
public ApiResponse<Object> AddPetUsingByteArrayWithHttpInfo (byte[] body = null) public ApiResponse<Object> AddPetUsingByteArrayWithHttpInfo (byte[] body = null)
{ {
var localVarPath = "/pet?testing_byte_array&#x3D;true"; var localVarPath = "/pet?testing_byte_array&#x3D;true";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -785,13 +782,15 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -810,7 +809,6 @@ namespace IO.Swagger.Api
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -856,9 +854,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetUsingByteArrayAsyncWithHttpInfo (byte[] body = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetUsingByteArrayAsyncWithHttpInfo (byte[] body = null)
{ {
var localVarPath = "/pet?testing_byte_array&#x3D;true"; var localVarPath = "/pet?testing_byte_array&#x3D;true";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -868,13 +864,15 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -893,7 +891,6 @@ namespace IO.Swagger.Api
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -917,6 +914,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Deletes a pet /// Deletes a pet
/// </summary> /// </summary>
@ -938,14 +936,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> DeletePetWithHttpInfo (long? petId, string apiKey = null) public ApiResponse<Object> DeletePetWithHttpInfo (long? petId, string apiKey = null)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet");
var localVarPath = "/pet/{petId}"; var localVarPath = "/pet/{petId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -955,13 +950,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -973,9 +968,7 @@ namespace IO.Swagger.Api
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter 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 if (apiKey != null) localVarHeaderParams.Add("api_key", Configuration.ApiClient.ParameterToString(apiKey)); // header parameter
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1023,11 +1016,10 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long? petId, string apiKey = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long? petId, string apiKey = null)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling DeletePet"); if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet");
var localVarPath = "/pet/{petId}"; var localVarPath = "/pet/{petId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1037,13 +1029,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1055,9 +1047,7 @@ namespace IO.Swagger.Api
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter 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 if (apiKey != null) localVarHeaderParams.Add("api_key", Configuration.ApiClient.ParameterToString(apiKey)); // header parameter
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1081,6 +1071,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Finds Pets by status Multiple status values can be provided with comma separated strings /// Finds Pets by status Multiple status values can be provided with comma separated strings
/// </summary> /// </summary>
@ -1102,9 +1093,7 @@ namespace IO.Swagger.Api
public ApiResponse< List<Pet> > FindPetsByStatusWithHttpInfo (List<string> status = null) public ApiResponse< List<Pet> > FindPetsByStatusWithHttpInfo (List<string> status = null)
{ {
var localVarPath = "/pet/findByStatus"; var localVarPath = "/pet/findByStatus";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1114,13 +1103,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1131,9 +1120,7 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1180,9 +1167,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByStatusAsyncWithHttpInfo (List<string> status = null) public async System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByStatusAsyncWithHttpInfo (List<string> status = null)
{ {
var localVarPath = "/pet/findByStatus"; var localVarPath = "/pet/findByStatus";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1192,13 +1177,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1209,9 +1194,7 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1235,6 +1218,7 @@ namespace IO.Swagger.Api
(List<Pet>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Pet>))); (List<Pet>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Pet>)));
} }
/// <summary> /// <summary>
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing. /// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
/// </summary> /// </summary>
@ -1256,9 +1240,7 @@ namespace IO.Swagger.Api
public ApiResponse< List<Pet> > FindPetsByTagsWithHttpInfo (List<string> tags = null) public ApiResponse< List<Pet> > FindPetsByTagsWithHttpInfo (List<string> tags = null)
{ {
var localVarPath = "/pet/findByTags"; var localVarPath = "/pet/findByTags";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1268,13 +1250,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1285,9 +1267,7 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (tags != null) localVarQueryParams.Add("tags", Configuration.ApiClient.ParameterToString(tags)); // query parameter if (tags != null) localVarQueryParams.Add("tags", Configuration.ApiClient.ParameterToString(tags)); // query parameter
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1334,9 +1314,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByTagsAsyncWithHttpInfo (List<string> tags = null) public async System.Threading.Tasks.Task<ApiResponse<List<Pet>>> FindPetsByTagsAsyncWithHttpInfo (List<string> tags = null)
{ {
var localVarPath = "/pet/findByTags"; var localVarPath = "/pet/findByTags";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1346,13 +1324,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1363,9 +1341,7 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (tags != null) localVarQueryParams.Add("tags", Configuration.ApiClient.ParameterToString(tags)); // query parameter if (tags != null) localVarQueryParams.Add("tags", Configuration.ApiClient.ParameterToString(tags)); // query parameter
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1389,6 +1365,7 @@ namespace IO.Swagger.Api
(List<Pet>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Pet>))); (List<Pet>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Pet>)));
} }
/// <summary> /// <summary>
/// Find pet by ID Returns a pet when ID &lt; 10. ID &gt; 10 or nonintegers will simulate API error conditions /// Find pet by ID Returns a pet when ID &lt; 10. ID &gt; 10 or nonintegers will simulate API error conditions
/// </summary> /// </summary>
@ -1409,14 +1386,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of Pet</returns> /// <returns>ApiResponse of Pet</returns>
public ApiResponse< Pet > GetPetByIdWithHttpInfo (long? petId) public ApiResponse< Pet > GetPetByIdWithHttpInfo (long? petId)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById");
var localVarPath = "/pet/{petId}"; var localVarPath = "/pet/{petId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1426,13 +1400,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1443,15 +1417,13 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
} }
// authentication (petstore_auth) required
// authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1498,11 +1470,10 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long? petId) public async System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long? petId)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling GetPetById"); if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById");
var localVarPath = "/pet/{petId}"; var localVarPath = "/pet/{petId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1512,13 +1483,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1529,15 +1500,12 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1561,6 +1529,7 @@ namespace IO.Swagger.Api
(Pet) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Pet))); (Pet) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Pet)));
} }
/// <summary> /// <summary>
/// Fake endpoint to test inline arbitrary object return by &#39;Find pet by ID&#39; Returns a pet when ID &lt; 10. ID &gt; 10 or nonintegers will simulate API error conditions /// Fake endpoint to test inline arbitrary object return by &#39;Find pet by ID&#39; Returns a pet when ID &lt; 10. ID &gt; 10 or nonintegers will simulate API error conditions
/// </summary> /// </summary>
@ -1581,14 +1550,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of InlineResponse200</returns> /// <returns>ApiResponse of InlineResponse200</returns>
public ApiResponse< InlineResponse200 > GetPetByIdInObjectWithHttpInfo (long? petId) public ApiResponse< InlineResponse200 > GetPetByIdInObjectWithHttpInfo (long? petId)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetByIdInObject"); throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetByIdInObject");
var localVarPath = "/pet/{petId}?response&#x3D;inline_arbitrary_object"; var localVarPath = "/pet/{petId}?response&#x3D;inline_arbitrary_object";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1598,13 +1564,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1615,15 +1581,13 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
} }
// authentication (petstore_auth) required
// authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1670,11 +1634,10 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<InlineResponse200>> GetPetByIdInObjectAsyncWithHttpInfo (long? petId) public async System.Threading.Tasks.Task<ApiResponse<InlineResponse200>> GetPetByIdInObjectAsyncWithHttpInfo (long? petId)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling GetPetByIdInObject"); if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetByIdInObject");
var localVarPath = "/pet/{petId}?response&#x3D;inline_arbitrary_object"; var localVarPath = "/pet/{petId}?response&#x3D;inline_arbitrary_object";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1684,13 +1647,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1701,15 +1664,12 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1733,6 +1693,7 @@ namespace IO.Swagger.Api
(InlineResponse200) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse200))); (InlineResponse200) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse200)));
} }
/// <summary> /// <summary>
/// Fake endpoint to test byte array return by &#39;Find pet by ID&#39; Returns a pet when ID &lt; 10. ID &gt; 10 or nonintegers will simulate API error conditions /// Fake endpoint to test byte array return by &#39;Find pet by ID&#39; Returns a pet when ID &lt; 10. ID &gt; 10 or nonintegers will simulate API error conditions
/// </summary> /// </summary>
@ -1753,14 +1714,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of byte[]</returns> /// <returns>ApiResponse of byte[]</returns>
public ApiResponse< byte[] > PetPetIdtestingByteArraytrueGetWithHttpInfo (long? petId) public ApiResponse< byte[] > PetPetIdtestingByteArraytrueGetWithHttpInfo (long? petId)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->PetPetIdtestingByteArraytrueGet"); throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->PetPetIdtestingByteArraytrueGet");
var localVarPath = "/pet/{petId}?testing_byte_array&#x3D;true"; var localVarPath = "/pet/{petId}?testing_byte_array&#x3D;true";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1770,13 +1728,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1787,15 +1745,13 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
} }
// authentication (petstore_auth) required
// authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1842,11 +1798,10 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<byte[]>> PetPetIdtestingByteArraytrueGetAsyncWithHttpInfo (long? petId) public async System.Threading.Tasks.Task<ApiResponse<byte[]>> PetPetIdtestingByteArraytrueGetAsyncWithHttpInfo (long? petId)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling PetPetIdtestingByteArraytrueGet"); if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->PetPetIdtestingByteArraytrueGet");
var localVarPath = "/pet/{petId}?testing_byte_array&#x3D;true"; var localVarPath = "/pet/{petId}?testing_byte_array&#x3D;true";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1856,13 +1811,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1873,15 +1828,12 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter if (petId != null) localVarPathParams.Add("petId", Configuration.ApiClient.ParameterToString(petId)); // path parameter
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -1905,6 +1857,7 @@ namespace IO.Swagger.Api
(byte[]) Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[]))); (byte[]) Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[])));
} }
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
@ -1925,9 +1878,7 @@ namespace IO.Swagger.Api
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet body = null) public ApiResponse<Object> UpdatePetWithHttpInfo (Pet body = null)
{ {
var localVarPath = "/pet"; var localVarPath = "/pet";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1937,13 +1888,15 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1962,7 +1915,6 @@ namespace IO.Swagger.Api
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -2008,9 +1960,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body = null)
{ {
var localVarPath = "/pet"; var localVarPath = "/pet";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -2020,13 +1970,15 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -2045,7 +1997,6 @@ namespace IO.Swagger.Api
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -2069,6 +2020,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Updates a pet in the store with form data /// Updates a pet in the store with form data
/// </summary> /// </summary>
@ -2092,14 +2044,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> UpdatePetWithFormWithHttpInfo (string petId, string name = null, string status = null) public ApiResponse<Object> UpdatePetWithFormWithHttpInfo (string petId, string name = null, string status = null)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm");
var localVarPath = "/pet/{petId}"; var localVarPath = "/pet/{petId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -2115,7 +2064,8 @@ namespace IO.Swagger.Api
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -2128,9 +2078,7 @@ namespace IO.Swagger.Api
if (name != null) localVarFormParams.Add("name", Configuration.ApiClient.ParameterToString(name)); // form 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 // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -2180,11 +2128,10 @@ if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.Par
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (string petId, string name = null, string status = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (string petId, string name = null, string status = null)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UpdatePetWithForm"); if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm");
var localVarPath = "/pet/{petId}"; var localVarPath = "/pet/{petId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -2200,7 +2147,8 @@ if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.Par
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -2213,9 +2161,7 @@ if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.Par
if (name != null) localVarFormParams.Add("name", Configuration.ApiClient.ParameterToString(name)); // form 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 // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -2239,6 +2185,7 @@ if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.Par
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// uploads an image /// uploads an image
/// </summary> /// </summary>
@ -2262,14 +2209,11 @@ if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.Par
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, Stream file = null) public ApiResponse<Object> UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, Stream file = null)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile");
var localVarPath = "/pet/{petId}/uploadImage"; var localVarPath = "/pet/{petId}/uploadImage";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -2285,7 +2229,8 @@ if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.Par
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -2298,9 +2243,7 @@ if (status != null) localVarFormParams.Add("status", Configuration.ApiClient.Par
if (additionalMetadata != null) localVarFormParams.Add("additionalMetadata", Configuration.ApiClient.ParameterToString(additionalMetadata)); // form 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 // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -2350,11 +2293,10 @@ if (file != null) localVarFileParams.Add("file", Configuration.ApiClient.Paramet
public async System.Threading.Tasks.Task<ApiResponse<Object>> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, Stream file = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, Stream file = null)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UploadFile"); if (petId == null)
throw new ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile");
var localVarPath = "/pet/{petId}/uploadImage"; var localVarPath = "/pet/{petId}/uploadImage";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -2370,7 +2312,8 @@ if (file != null) localVarFileParams.Add("file", Configuration.ApiClient.Paramet
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -2383,9 +2326,7 @@ if (file != null) localVarFileParams.Add("file", Configuration.ApiClient.Paramet
if (additionalMetadata != null) localVarFormParams.Add("additionalMetadata", Configuration.ApiClient.ParameterToString(additionalMetadata)); // form 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 // authentication (petstore_auth) required
// oauth required // oauth required
if (!String.IsNullOrEmpty(Configuration.AccessToken)) if (!String.IsNullOrEmpty(Configuration.AccessToken))
{ {
@ -2409,5 +2350,6 @@ if (file != null) localVarFileParams.Add("file", Configuration.ApiClient.Paramet
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
} }
} }

View File

@ -370,14 +370,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId) public ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId)
{ {
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId == null) if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder"); throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
var localVarPath = "/store/order/{orderId}"; var localVarPath = "/store/order/{orderId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -387,13 +384,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -405,7 +402,6 @@ namespace IO.Swagger.Api
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -445,11 +441,10 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId) public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWithHttpInfo (string orderId)
{ {
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling DeleteOrder"); if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
var localVarPath = "/store/order/{orderId}"; var localVarPath = "/store/order/{orderId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -459,13 +454,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -477,7 +472,6 @@ namespace IO.Swagger.Api
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath, IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -495,6 +489,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Finds orders by status A single status value can be provided as a string /// Finds orders by status A single status value can be provided as a string
/// </summary> /// </summary>
@ -516,9 +511,7 @@ namespace IO.Swagger.Api
public ApiResponse< List<Order> > FindOrdersByStatusWithHttpInfo (string status = null) public ApiResponse< List<Order> > FindOrdersByStatusWithHttpInfo (string status = null)
{ {
var localVarPath = "/store/findByStatus"; var localVarPath = "/store/findByStatus";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -528,13 +521,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -545,20 +538,19 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
// authentication (test_api_client_id) required // authentication (test_api_client_id) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
{ {
localVarHeaderParams["x-test_api_client_id"] = 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"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
{ {
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret"); localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
} }
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -599,9 +591,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<List<Order>>> FindOrdersByStatusAsyncWithHttpInfo (string status = null) public async System.Threading.Tasks.Task<ApiResponse<List<Order>>> FindOrdersByStatusAsyncWithHttpInfo (string status = null)
{ {
var localVarPath = "/store/findByStatus"; var localVarPath = "/store/findByStatus";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -611,13 +601,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -628,15 +618,12 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter if (status != null) localVarQueryParams.Add("status", Configuration.ApiClient.ParameterToString(status)); // query parameter
// authentication (test_api_client_id) required // authentication (test_api_client_id) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
{ {
localVarHeaderParams["x-test_api_client_id"] = 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"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
{ {
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret"); localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
@ -659,6 +646,7 @@ namespace IO.Swagger.Api
(List<Order>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Order>))); (List<Order>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Order>)));
} }
/// <summary> /// <summary>
/// Returns pet inventories by status Returns a map of status codes to quantities /// Returns pet inventories by status Returns a map of status codes to quantities
/// </summary> /// </summary>
@ -678,9 +666,7 @@ namespace IO.Swagger.Api
public ApiResponse< Dictionary<string, int?> > GetInventoryWithHttpInfo () public ApiResponse< Dictionary<string, int?> > GetInventoryWithHttpInfo ()
{ {
var localVarPath = "/store/inventory"; var localVarPath = "/store/inventory";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -690,13 +676,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -706,14 +692,13 @@ namespace IO.Swagger.Api
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
} }
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -752,9 +737,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo () public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo ()
{ {
var localVarPath = "/store/inventory"; var localVarPath = "/store/inventory";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -764,13 +747,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -780,9 +763,7 @@ namespace IO.Swagger.Api
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
@ -805,6 +786,7 @@ namespace IO.Swagger.Api
(Dictionary<string, int?>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>))); (Dictionary<string, int?>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>)));
} }
/// <summary> /// <summary>
/// Fake endpoint to test arbitrary object return by &#39;Get inventory&#39; Returns an arbitrary object which is actually a map of status codes to quantities /// Fake endpoint to test arbitrary object return by &#39;Get inventory&#39; Returns an arbitrary object which is actually a map of status codes to quantities
/// </summary> /// </summary>
@ -824,9 +806,7 @@ namespace IO.Swagger.Api
public ApiResponse< Object > GetInventoryInObjectWithHttpInfo () public ApiResponse< Object > GetInventoryInObjectWithHttpInfo ()
{ {
var localVarPath = "/store/inventory?response&#x3D;arbitrary_object"; var localVarPath = "/store/inventory?response&#x3D;arbitrary_object";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -836,13 +816,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -852,14 +832,13 @@ namespace IO.Swagger.Api
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
} }
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -898,9 +877,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> GetInventoryInObjectAsyncWithHttpInfo () public async System.Threading.Tasks.Task<ApiResponse<Object>> GetInventoryInObjectAsyncWithHttpInfo ()
{ {
var localVarPath = "/store/inventory?response&#x3D;arbitrary_object"; var localVarPath = "/store/inventory?response&#x3D;arbitrary_object";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -910,13 +887,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -926,9 +903,7 @@ namespace IO.Swagger.Api
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
// authentication (api_key) required // authentication (api_key) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("api_key")))
{ {
localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key"); localVarHeaderParams["api_key"] = Configuration.GetApiKeyWithPrefix("api_key");
@ -951,6 +926,7 @@ namespace IO.Swagger.Api
(Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); (Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object)));
} }
/// <summary> /// <summary>
/// Find purchase order by ID For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions /// Find purchase order by ID For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
/// </summary> /// </summary>
@ -971,14 +947,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of Order</returns> /// <returns>ApiResponse of Order</returns>
public ApiResponse< Order > GetOrderByIdWithHttpInfo (string orderId) public ApiResponse< Order > GetOrderByIdWithHttpInfo (string orderId)
{ {
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId == null) if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");
var localVarPath = "/store/order/{orderId}"; var localVarPath = "/store/order/{orderId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -988,13 +961,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1005,20 +978,19 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
// authentication (test_api_key_header) required // authentication (test_api_key_header) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header")))
{ {
localVarHeaderParams["test_api_key_header"] = 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"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_query")))
{ {
localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query"); localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
} }
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -1059,11 +1031,10 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (string orderId) public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (string orderId)
{ {
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling GetOrderById"); if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");
var localVarPath = "/store/order/{orderId}"; var localVarPath = "/store/order/{orderId}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1073,13 +1044,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1090,15 +1061,12 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
// authentication (test_api_key_header) required // authentication (test_api_key_header) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_header")))
{ {
localVarHeaderParams["test_api_key_header"] = 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"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("test_api_key_query")))
{ {
localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query"); localVarQueryParams["test_api_key_query"] = Configuration.GetApiKeyWithPrefix("test_api_key_query");
@ -1121,6 +1089,7 @@ namespace IO.Swagger.Api
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order))); (Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
} }
/// <summary> /// <summary>
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
@ -1142,9 +1111,7 @@ namespace IO.Swagger.Api
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body = null) public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body = null)
{ {
var localVarPath = "/store/order"; var localVarPath = "/store/order";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1154,13 +1121,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1179,18 +1146,18 @@ namespace IO.Swagger.Api
} }
// authentication (test_api_client_id) required // authentication (test_api_client_id) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
{ {
localVarHeaderParams["x-test_api_client_id"] = 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"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
{ {
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret"); localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
} }
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -1231,9 +1198,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body = null) public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body = null)
{ {
var localVarPath = "/store/order"; var localVarPath = "/store/order";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1243,13 +1208,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1268,13 +1233,11 @@ namespace IO.Swagger.Api
} }
// authentication (test_api_client_id) required // authentication (test_api_client_id) required
if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_id")))
{ {
localVarHeaderParams["x-test_api_client_id"] = 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"))) if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("x-test_api_client_secret")))
{ {
localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret"); localVarHeaderParams["x-test_api_client_secret"] = Configuration.GetApiKeyWithPrefix("x-test_api_client_secret");
@ -1297,5 +1260,6 @@ namespace IO.Swagger.Api
(Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order))); (Order) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Order)));
} }
} }
} }

View File

@ -467,9 +467,7 @@ namespace IO.Swagger.Api
public ApiResponse<Object> CreateUserWithHttpInfo (User body = null) public ApiResponse<Object> CreateUserWithHttpInfo (User body = null)
{ {
var localVarPath = "/user"; var localVarPath = "/user";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -479,13 +477,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -543,9 +541,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body = null)
{ {
var localVarPath = "/user"; var localVarPath = "/user";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -555,13 +551,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -597,6 +593,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -617,9 +614,7 @@ namespace IO.Swagger.Api
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body = null) public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body = null)
{ {
var localVarPath = "/user/createWithArray"; var localVarPath = "/user/createWithArray";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -629,13 +624,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -693,9 +688,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body = null)
{ {
var localVarPath = "/user/createWithArray"; var localVarPath = "/user/createWithArray";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -705,13 +698,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -747,6 +740,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -767,9 +761,7 @@ namespace IO.Swagger.Api
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body = null) public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body = null)
{ {
var localVarPath = "/user/createWithList"; var localVarPath = "/user/createWithList";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -779,13 +771,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -843,9 +835,7 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body = null)
{ {
var localVarPath = "/user/createWithList"; var localVarPath = "/user/createWithList";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -855,13 +845,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -897,6 +887,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Delete user This can only be done by the logged in user. /// Delete user This can only be done by the logged in user.
/// </summary> /// </summary>
@ -916,14 +907,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> DeleteUserWithHttpInfo (string username) public ApiResponse<Object> DeleteUserWithHttpInfo (string username)
{ {
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser"); throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
var localVarPath = "/user/{username}"; var localVarPath = "/user/{username}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -933,13 +921,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -950,15 +938,14 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter
// authentication (test_http_basic) required // authentication (test_http_basic) required
// http basic authentication required // http basic authentication required
if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password)) if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password))
{ {
localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(Configuration.Username + ":" + Configuration.Password); localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(Configuration.Username + ":" + Configuration.Password);
} }
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -998,11 +985,10 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteUserAsyncWithHttpInfo (string username) public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteUserAsyncWithHttpInfo (string username)
{ {
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling DeleteUser"); if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
var localVarPath = "/user/{username}"; var localVarPath = "/user/{username}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1012,13 +998,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1029,9 +1015,7 @@ namespace IO.Swagger.Api
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter
// authentication (test_http_basic) required // authentication (test_http_basic) required
// http basic authentication required // http basic authentication required
if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password)) if (!String.IsNullOrEmpty(Configuration.Username) || !String.IsNullOrEmpty(Configuration.Password))
{ {
@ -1055,6 +1039,7 @@ namespace IO.Swagger.Api
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Get user by user name /// Get user by user name
/// </summary> /// </summary>
@ -1075,14 +1060,11 @@ namespace IO.Swagger.Api
/// <returns>ApiResponse of User</returns> /// <returns>ApiResponse of User</returns>
public ApiResponse< User > GetUserByNameWithHttpInfo (string username) public ApiResponse< User > GetUserByNameWithHttpInfo (string username)
{ {
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName"); throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
var localVarPath = "/user/{username}"; var localVarPath = "/user/{username}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1092,13 +1074,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1110,7 +1092,6 @@ namespace IO.Swagger.Api
if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -1151,11 +1132,10 @@ namespace IO.Swagger.Api
public async System.Threading.Tasks.Task<ApiResponse<User>> GetUserByNameAsyncWithHttpInfo (string username) public async System.Threading.Tasks.Task<ApiResponse<User>> GetUserByNameAsyncWithHttpInfo (string username)
{ {
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling GetUserByName"); if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
var localVarPath = "/user/{username}"; var localVarPath = "/user/{username}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1165,13 +1145,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1183,7 +1163,6 @@ namespace IO.Swagger.Api
if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter if (username != null) localVarPathParams.Add("username", Configuration.ApiClient.ParameterToString(username)); // path parameter
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath, IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -1201,6 +1180,7 @@ namespace IO.Swagger.Api
(User) Configuration.ApiClient.Deserialize(localVarResponse, typeof(User))); (User) Configuration.ApiClient.Deserialize(localVarResponse, typeof(User)));
} }
/// <summary> /// <summary>
/// Logs user into the system /// Logs user into the system
/// </summary> /// </summary>
@ -1224,9 +1204,7 @@ namespace IO.Swagger.Api
public ApiResponse< string > LoginUserWithHttpInfo (string username = null, string password = null) public ApiResponse< string > LoginUserWithHttpInfo (string username = null, string password = null)
{ {
var localVarPath = "/user/login"; var localVarPath = "/user/login";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1236,13 +1214,13 @@ namespace IO.Swagger.Api
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1255,7 +1233,6 @@ namespace IO.Swagger.Api
if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -1298,9 +1275,7 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
public async System.Threading.Tasks.Task<ApiResponse<string>> LoginUserAsyncWithHttpInfo (string username = null, string password = null) public async System.Threading.Tasks.Task<ApiResponse<string>> LoginUserAsyncWithHttpInfo (string username = null, string password = null)
{ {
var localVarPath = "/user/login"; var localVarPath = "/user/login";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1310,13 +1285,13 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1329,7 +1304,6 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath, IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -1347,6 +1321,7 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
(string) Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); (string) Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)));
} }
/// <summary> /// <summary>
/// Logs out current logged in user session /// Logs out current logged in user session
/// </summary> /// </summary>
@ -1365,9 +1340,7 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
public ApiResponse<Object> LogoutUserWithHttpInfo () public ApiResponse<Object> LogoutUserWithHttpInfo ()
{ {
var localVarPath = "/user/logout"; var localVarPath = "/user/logout";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1377,13 +1350,13 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1394,7 +1367,6 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -1432,9 +1404,7 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
public async System.Threading.Tasks.Task<ApiResponse<Object>> LogoutUserAsyncWithHttpInfo () public async System.Threading.Tasks.Task<ApiResponse<Object>> LogoutUserAsyncWithHttpInfo ()
{ {
var localVarPath = "/user/logout"; var localVarPath = "/user/logout";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1444,13 +1414,13 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1461,7 +1431,6 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
localVarPathParams.Add("format", "json"); localVarPathParams.Add("format", "json");
// make the HTTP request // make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath, IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
@ -1479,6 +1448,7 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
/// <summary> /// <summary>
/// Updated user This can only be done by the logged in user. /// Updated user This can only be done by the logged in user.
/// </summary> /// </summary>
@ -1500,14 +1470,11 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body = null) public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body = null)
{ {
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser"); throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
var localVarPath = "/user/{username}"; var localVarPath = "/user/{username}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1517,13 +1484,13 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1584,11 +1551,10 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body = null)
{ {
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling UpdateUser"); if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
var localVarPath = "/user/{username}"; var localVarPath = "/user/{username}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>(); var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader); var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@ -1598,13 +1564,13 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
// to determine the Content-Type header // to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] { String[] localVarHttpContentTypes = new String[] {
}; };
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header // to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] { String[] localVarHttpHeaderAccepts = new String[] {
"application/json", "application/xml" "application/json",
"application/xml"
}; };
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
@ -1641,5 +1607,6 @@ if (password != null) localVarQueryParams.Add("password", Configuration.ApiClien
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null); null);
} }
} }
} }

View File

@ -33,8 +33,9 @@ namespace IO.Swagger.Model
/// <param name="Binary">Binary.</param> /// <param name="Binary">Binary.</param>
/// <param name="Date">Date.</param> /// <param name="Date">Date.</param>
/// <param name="DateTime">DateTime.</param> /// <param name="DateTime">DateTime.</param>
/// <param name="Password">Password.</param>
public FormatTest(int? Integer = null, int? Int32 = null, long? Int64 = null, double? Number = null, float? _Float = null, double? _Double = null, string _String = null, byte[] _Byte = null, byte[] Binary = null, DateTime? Date = null, string DateTime = null) public FormatTest(int? Integer = null, int? Int32 = null, long? Int64 = null, double? Number = null, float? _Float = null, double? _Double = null, string _String = null, byte[] _Byte = null, byte[] Binary = null, DateTime? Date = null, DateTime? DateTime = null, string Password = null)
{ {
// to ensure "Number" is required (not null) // to ensure "Number" is required (not null)
if (Number == null) if (Number == null)
@ -55,6 +56,7 @@ namespace IO.Swagger.Model
this.Binary = Binary; this.Binary = Binary;
this.Date = Date; this.Date = Date;
this.DateTime = DateTime; this.DateTime = DateTime;
this.Password = Password;
} }
@ -123,7 +125,13 @@ namespace IO.Swagger.Model
/// Gets or Sets DateTime /// Gets or Sets DateTime
/// </summary> /// </summary>
[DataMember(Name="dateTime", EmitDefaultValue=false)] [DataMember(Name="dateTime", EmitDefaultValue=false)]
public string DateTime { get; set; } public DateTime? DateTime { get; set; }
/// <summary>
/// Gets or Sets Password
/// </summary>
[DataMember(Name="password", EmitDefaultValue=false)]
public string Password { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object
@ -144,6 +152,7 @@ namespace IO.Swagger.Model
sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n");
sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Password: ").Append(Password).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
} }
@ -234,6 +243,11 @@ namespace IO.Swagger.Model
this.DateTime == other.DateTime || this.DateTime == other.DateTime ||
this.DateTime != null && this.DateTime != null &&
this.DateTime.Equals(other.DateTime) this.DateTime.Equals(other.DateTime)
) &&
(
this.Password == other.Password ||
this.Password != null &&
this.Password.Equals(other.Password)
); );
} }
@ -270,6 +284,8 @@ namespace IO.Swagger.Model
hash = hash * 59 + this.Date.GetHashCode(); hash = hash * 59 + this.Date.GetHashCode();
if (this.DateTime != null) if (this.DateTime != null)
hash = hash * 59 + this.DateTime.GetHashCode(); hash = hash * 59 + this.DateTime.GetHashCode();
if (this.Password != null)
hash = hash * 59 + this.Password.GetHashCode();
return hash; return hash;
} }
} }