forked from loafle/openapi-generator-original
update c# sample
This commit is contained in:
parent
dbd89092f0
commit
7b79abef63
@ -307,6 +307,16 @@ namespace IO.Swagger.Api
|
||||
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");
|
||||
|
||||
|
||||
@ -395,6 +405,16 @@ namespace IO.Swagger.Api
|
||||
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");
|
||||
|
||||
|
||||
@ -483,6 +503,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
@ -570,6 +600,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
@ -662,6 +702,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
|
||||
@ -760,6 +810,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
|
||||
@ -858,6 +918,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
|
||||
@ -958,6 +1028,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
|
||||
|
@ -212,6 +212,16 @@ namespace IO.Swagger.Api
|
||||
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");
|
||||
|
||||
|
||||
@ -298,6 +308,16 @@ namespace IO.Swagger.Api
|
||||
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");
|
||||
|
||||
|
||||
@ -390,6 +410,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
|
||||
@ -482,6 +512,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
|
||||
|
@ -299,6 +299,16 @@ namespace IO.Swagger.Api
|
||||
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");
|
||||
|
||||
|
||||
@ -387,6 +397,16 @@ namespace IO.Swagger.Api
|
||||
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");
|
||||
|
||||
|
||||
@ -475,6 +495,16 @@ namespace IO.Swagger.Api
|
||||
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");
|
||||
|
||||
|
||||
@ -566,6 +596,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
@ -651,6 +691,16 @@ namespace IO.Swagger.Api
|
||||
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");
|
||||
|
||||
|
||||
@ -743,6 +793,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
|
||||
@ -838,6 +898,16 @@ namespace IO.Swagger.Api
|
||||
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
|
||||
|
||||
@ -932,6 +1002,16 @@ namespace IO.Swagger.Api
|
||||
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