forked from loafle/openapi-generator-original
update c# sample
This commit is contained in:
parent
dbd89092f0
commit
7b79abef63
@ -306,7 +306,17 @@ namespace IO.Swagger.Api
|
||||
var formParams = new Dictionary<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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
|
||||
|
||||
|
@ -211,7 +211,17 @@ namespace IO.Swagger.Api
|
||||
var formParams = new Dictionary<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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
|
||||
|
||||
|
@ -298,7 +298,17 @@ namespace IO.Swagger.Api
|
||||
var formParams = new Dictionary<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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<String, String>();
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
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
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user