forked from loafle/openapi-generator-original
sync master, update doc
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.ClassModel
|
||||
Model for testing model with \"_class\" property
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.File
|
||||
Must be named `File` for test.
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.Model200Response
|
||||
Model for testing model name starting with number
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.Name
|
||||
Model for testing model name same as property name
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.Return
|
||||
Model for testing reserved words
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -222,37 +222,36 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Patch< ModelClient >("/another-fake/dummy", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Patch< ModelClient >("/another-fake/dummy", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("Call123TestSpecialTags", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -281,37 +280,37 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PatchAsync<ModelClient>("/another-fake/dummy", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PatchAsync<ModelClient>("/another-fake/dummy", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("Call123TestSpecialTags", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -222,48 +222,47 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
// authentication (api_key_query) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Patch< ModelClient >("/fake_classname_test", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Patch< ModelClient >("/fake_classname_test", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("TestClassname", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("TestClassname", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -292,48 +291,48 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
// authentication (api_key_query) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PatchAsync<ModelClient>("/fake_classname_test", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PatchAsync<ModelClient>("/fake_classname_test", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("TestClassname", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("TestClassname", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -343,36 +343,35 @@ namespace Org.OpenAPITools.Api
|
||||
if (orderId == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (orderId != null)
|
||||
requestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Delete<Object>("/store/order/{order_id}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Delete<Object>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("DeleteOrder", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("DeleteOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -400,36 +399,36 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (orderId != null)
|
||||
requestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.DeleteAsync<Object>("/store/order/{order_id}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("DeleteOrder", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("DeleteOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -450,40 +449,39 @@ namespace Org.OpenAPITools.Api
|
||||
/// <returns>ApiResponse of Dictionary<string, int></returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse< Dictionary<string, int> > GetInventoryWithHttpInfo ()
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
requestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get< Dictionary<string, int> >("/store/inventory", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get< Dictionary<string, int> >("/store/inventory", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetInventory", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -506,40 +504,40 @@ namespace Org.OpenAPITools.Api
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo ()
|
||||
{
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
requestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<Dictionary<string, int>>("/store/inventory", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Dictionary<string, int>>("/store/inventory", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetInventory", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -566,38 +564,37 @@ namespace Org.OpenAPITools.Api
|
||||
if (orderId == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (orderId != null)
|
||||
requestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get< Order >("/store/order/{order_id}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get< Order >("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetOrderById", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetOrderById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -626,38 +623,38 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (orderId != null)
|
||||
requestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<Order>("/store/order/{order_id}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Order>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetOrderById", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetOrderById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -684,37 +681,36 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Post< Order >("/store/order", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post< Order >("/store/order", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("PlaceOrder", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("PlaceOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -743,37 +739,37 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PostAsync<Order>("/store/order", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Order>("/store/order", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("PlaceOrder", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("PlaceOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -519,35 +519,34 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Post<Object>("/user", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post<Object>("/user", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -575,35 +574,35 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PostAsync<Object>("/user", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -629,35 +628,34 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Post<Object>("/user/createWithArray", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post<Object>("/user/createWithArray", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUsersWithArrayInput", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithArrayInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -685,35 +683,35 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PostAsync<Object>("/user/createWithArray", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user/createWithArray", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUsersWithArrayInput", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithArrayInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -739,35 +737,34 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Post<Object>("/user/createWithList", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post<Object>("/user/createWithList", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUsersWithListInput", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithListInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -795,35 +792,35 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PostAsync<Object>("/user/createWithList", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user/createWithList", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUsersWithListInput", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithListInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -849,36 +846,35 @@ namespace Org.OpenAPITools.Api
|
||||
if (username == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Delete<Object>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Delete<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("DeleteUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("DeleteUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -906,36 +902,36 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.DeleteAsync<Object>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("DeleteUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("DeleteUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -962,38 +958,37 @@ namespace Org.OpenAPITools.Api
|
||||
if (username == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get< User >("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get< User >("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetUserByName", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1022,38 +1017,38 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<User>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<User>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetUserByName", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1086,56 +1081,55 @@ namespace Org.OpenAPITools.Api
|
||||
if (password == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (username != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (password != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get< string >("/user/login", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get< string >("/user/login", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("LoginUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("LoginUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1170,40 +1164,40 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (username != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (password != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1211,15 +1205,15 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<string>("/user/login", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<string>("/user/login", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("LoginUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("LoginUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1239,34 +1233,33 @@ namespace Org.OpenAPITools.Api
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> LogoutUserWithHttpInfo ()
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get<Object>("/user/logout", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get<Object>("/user/logout", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("LogoutUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("LogoutUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1288,34 +1281,34 @@ namespace Org.OpenAPITools.Api
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> LogoutUserAsyncWithHttpInfo ()
|
||||
{
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<Object>("/user/logout", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Object>("/user/logout", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("LogoutUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("LogoutUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1347,37 +1340,36 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Put<Object>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Put<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("UpdateUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1411,37 +1403,37 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PutAsync<Object>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("UpdateUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.ClassModel
|
||||
Model for testing model with \"_class\" property
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.File
|
||||
Must be named `File` for test.
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.Model200Response
|
||||
Model for testing model name starting with number
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.Name
|
||||
Model for testing model name same as property name
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Org.OpenAPITools.Model.Return
|
||||
Model for testing reserved words
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -222,37 +222,36 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Patch< ModelClient >("/another-fake/dummy", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Patch< ModelClient >("/another-fake/dummy", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("Call123TestSpecialTags", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -281,37 +280,37 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PatchAsync<ModelClient>("/another-fake/dummy", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PatchAsync<ModelClient>("/another-fake/dummy", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("Call123TestSpecialTags", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -222,48 +222,47 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
// authentication (api_key_query) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Patch< ModelClient >("/fake_classname_test", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Patch< ModelClient >("/fake_classname_test", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("TestClassname", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("TestClassname", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -292,48 +291,48 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
// authentication (api_key_query) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PatchAsync<ModelClient>("/fake_classname_test", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PatchAsync<ModelClient>("/fake_classname_test", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("TestClassname", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("TestClassname", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -343,36 +343,35 @@ namespace Org.OpenAPITools.Api
|
||||
if (orderId == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (orderId != null)
|
||||
requestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Delete<Object>("/store/order/{order_id}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Delete<Object>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("DeleteOrder", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("DeleteOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -400,36 +399,36 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (orderId != null)
|
||||
requestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.DeleteAsync<Object>("/store/order/{order_id}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("DeleteOrder", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("DeleteOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -450,40 +449,39 @@ namespace Org.OpenAPITools.Api
|
||||
/// <returns>ApiResponse of Dictionary<string, int></returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse< Dictionary<string, int> > GetInventoryWithHttpInfo ()
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
requestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get< Dictionary<string, int> >("/store/inventory", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get< Dictionary<string, int> >("/store/inventory", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetInventory", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -506,40 +504,40 @@ namespace Org.OpenAPITools.Api
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo ()
|
||||
{
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||
{
|
||||
requestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<Dictionary<string, int>>("/store/inventory", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Dictionary<string, int>>("/store/inventory", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetInventory", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -566,38 +564,37 @@ namespace Org.OpenAPITools.Api
|
||||
if (orderId == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (orderId != null)
|
||||
requestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get< Order >("/store/order/{order_id}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get< Order >("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetOrderById", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetOrderById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -626,38 +623,38 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (orderId != null)
|
||||
requestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<Order>("/store/order/{order_id}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Order>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetOrderById", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetOrderById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -684,37 +681,36 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Post< Order >("/store/order", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post< Order >("/store/order", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("PlaceOrder", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("PlaceOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -743,37 +739,37 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PostAsync<Order>("/store/order", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Order>("/store/order", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("PlaceOrder", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("PlaceOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -519,35 +519,34 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Post<Object>("/user", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post<Object>("/user", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -575,35 +574,35 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PostAsync<Object>("/user", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -629,35 +628,34 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Post<Object>("/user/createWithArray", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post<Object>("/user/createWithArray", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUsersWithArrayInput", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithArrayInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -685,35 +683,35 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PostAsync<Object>("/user/createWithArray", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user/createWithArray", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUsersWithArrayInput", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithArrayInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -739,35 +737,34 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Post<Object>("/user/createWithList", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post<Object>("/user/createWithList", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUsersWithListInput", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithListInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -795,35 +792,35 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PostAsync<Object>("/user/createWithList", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user/createWithList", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("CreateUsersWithListInput", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithListInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -849,36 +846,35 @@ namespace Org.OpenAPITools.Api
|
||||
if (username == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Delete<Object>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Delete<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("DeleteUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("DeleteUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -906,36 +902,36 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.DeleteAsync<Object>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("DeleteUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("DeleteUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -962,38 +958,37 @@ namespace Org.OpenAPITools.Api
|
||||
if (username == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get< User >("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get< User >("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetUserByName", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1022,38 +1017,38 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<User>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<User>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("GetUserByName", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1086,56 +1081,55 @@ namespace Org.OpenAPITools.Api
|
||||
if (password == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (username != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (password != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get< string >("/user/login", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get< string >("/user/login", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("LoginUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("LoginUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1170,40 +1164,40 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
"application/xml",
|
||||
"application/json"
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (username != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (password != null)
|
||||
{
|
||||
foreach (var kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password))
|
||||
foreach (var _kvp in Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password))
|
||||
{
|
||||
foreach (var value in kvp.Value)
|
||||
foreach (var _kvpValue in _kvp.Value)
|
||||
{
|
||||
requestOptions.QueryParameters.Add(kvp.Key, value);
|
||||
localVarRequestOptions.QueryParameters.Add(_kvp.Key, _kvpValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1211,15 +1205,15 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<string>("/user/login", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<string>("/user/login", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("LoginUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("LoginUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1239,34 +1233,33 @@ namespace Org.OpenAPITools.Api
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public Org.OpenAPITools.Client.ApiResponse<Object> LogoutUserWithHttpInfo ()
|
||||
{
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Get<Object>("/user/logout", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Get<Object>("/user/logout", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("LogoutUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("LogoutUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1288,34 +1281,34 @@ namespace Org.OpenAPITools.Api
|
||||
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<Object>> LogoutUserAsyncWithHttpInfo ()
|
||||
{
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.GetAsync<Object>("/user/logout", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Object>("/user/logout", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("LogoutUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("LogoutUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1347,37 +1340,36 @@ namespace Org.OpenAPITools.Api
|
||||
if (body == null)
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(@contentTypes);
|
||||
if (localVarContentType != null) requestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(@accepts);
|
||||
if (localVarAccept != null) requestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = this.Client.Put<Object>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Put<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("UpdateUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1411,37 +1403,37 @@ namespace Org.OpenAPITools.Api
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions requestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
String[] @contentTypes = new String[] {
|
||||
String[] _contentTypes = new String[] {
|
||||
};
|
||||
|
||||
// to determine the Accept header
|
||||
String[] @accepts = new String[] {
|
||||
String[] _accepts = new String[] {
|
||||
};
|
||||
|
||||
foreach (var contentType in @contentTypes)
|
||||
requestOptions.HeaderParameters.Add("Content-Type", contentType);
|
||||
foreach (var _contentType in _contentTypes)
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType);
|
||||
|
||||
foreach (var accept in @accepts)
|
||||
requestOptions.HeaderParameters.Add("Accept", accept);
|
||||
foreach (var _accept in _accepts)
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", _accept);
|
||||
|
||||
if (username != null)
|
||||
requestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
requestOptions.Data = body;
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = body;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var response = await this.AsynchronousClient.PutAsync<Object>("/user/{username}", requestOptions, this.Configuration);
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception exception = this.ExceptionFactory("UpdateUser", response);
|
||||
if (exception != null) throw exception;
|
||||
Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
}
|
||||
|
||||
return response;
|
||||
return localVarResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user