diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs index 67048cfd043..4e7e84fb725 100644 --- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs +++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs @@ -306,7 +306,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); @@ -394,7 +404,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); @@ -482,7 +502,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (status != null) queryParams.Add("status", ApiClient.ParameterToString(status)); // query parameter @@ -569,7 +599,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (tags != null) queryParams.Add("tags", ApiClient.ParameterToString(tags)); // query parameter @@ -661,7 +701,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (petId != null) pathParams.Add("petId", ApiClient.ParameterToString(petId)); // path parameter @@ -759,7 +809,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (petId != null) pathParams.Add("petId", ApiClient.ParameterToString(petId)); // path parameter @@ -857,7 +917,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (petId != null) pathParams.Add("petId", ApiClient.ParameterToString(petId)); // path parameter @@ -957,7 +1027,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (petId != null) pathParams.Add("petId", ApiClient.ParameterToString(petId)); // path parameter diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs index d106aa752d3..f96b773c76f 100644 --- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs @@ -211,7 +211,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); @@ -297,7 +307,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); @@ -389,7 +409,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (orderId != null) pathParams.Add("orderId", ApiClient.ParameterToString(orderId)); // path parameter @@ -481,7 +511,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (orderId != null) pathParams.Add("orderId", ApiClient.ParameterToString(orderId)); // path parameter diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs index 5b839e7a894..f7c68cfbe35 100644 --- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs +++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs @@ -298,7 +298,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); @@ -386,7 +396,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); @@ -474,7 +494,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); @@ -565,7 +595,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (username != null) queryParams.Add("username", ApiClient.ParameterToString(username)); // query parameter @@ -650,7 +690,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); @@ -742,7 +792,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (username != null) pathParams.Add("username", ApiClient.ParameterToString(username)); // path parameter @@ -837,7 +897,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (username != null) pathParams.Add("username", ApiClient.ParameterToString(username)); // path parameter @@ -931,7 +1001,17 @@ namespace IO.Swagger.Api var formParams = new Dictionary(); var fileParams = new Dictionary(); String postBody = null; - + + // to determine the Accept header + String[] http_header_accepts = new String[] { + "application/json", "application/xml" + }; + String http_header_accept = ApiClient.SelectHeaderAccept(http_header_accepts); + if (http_header_accept != null) + headerParams.Add("Accept", ApiClient.SelectHeaderAccept(http_header_accepts)); + + // set "format" to json by default + // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (username != null) pathParams.Add("username", ApiClient.ParameterToString(username)); // path parameter diff --git a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll index 7fbacf3096b..74b5b6455e3 100755 Binary files a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll and b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll differ diff --git a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb index b5012fc14da..9700c554fbd 100644 Binary files a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb and b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb differ diff --git a/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll b/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll index 7fbacf3096b..74b5b6455e3 100755 Binary files a/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll and b/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll differ diff --git a/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb b/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb index b5012fc14da..9700c554fbd 100644 Binary files a/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb and b/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb differ