forked from loafle/openapi-generator-original
[csharp][netcore] Update type "String" to "string" for consistent type (#9713)
* Updated 'String' to 'string' for consistent use of keyword * Build project and update samples for csharp-netcore
This commit is contained in:
parent
c5405aa59a
commit
015886fded
@ -106,7 +106,7 @@ namespace {{packageName}}.Client
|
|||||||
var bytes = response.RawBytes;
|
var bytes = response.RawBytes;
|
||||||
if (response.Headers != null)
|
if (response.Headers != null)
|
||||||
{
|
{
|
||||||
var filePath = String.IsNullOrEmpty(_configuration.TempFolderPath)
|
var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath)
|
||||||
? Path.GetTempPath()
|
? Path.GetTempPath()
|
||||||
: _configuration.TempFolderPath;
|
: _configuration.TempFolderPath;
|
||||||
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
||||||
@ -130,7 +130,7 @@ namespace {{packageName}}.Client
|
|||||||
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
|
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
||||||
{
|
{
|
||||||
return Convert.ChangeType(response.Content, type);
|
return Convert.ChangeType(response.Content, type);
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
{{>visibility}} partial class ApiClient : ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}}
|
{{>visibility}} partial class ApiClient : ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}}
|
||||||
{
|
{
|
||||||
private readonly String _baseUrl;
|
private readonly string _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
@ -208,7 +208,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
public ApiClient(String basePath)
|
public ApiClient(string basePath)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(basePath))
|
if (string.IsNullOrEmpty(basePath))
|
||||||
throw new ArgumentException("basePath cannot be empty");
|
throw new ArgumentException("basePath cannot be empty");
|
||||||
@ -269,7 +269,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <exception cref="ArgumentNullException"></exception>
|
/// <exception cref="ArgumentNullException"></exception>
|
||||||
private RestRequest NewRequest(
|
private RestRequest NewRequest(
|
||||||
HttpMethod method,
|
HttpMethod method,
|
||||||
String path,
|
string path,
|
||||||
RequestOptions options,
|
RequestOptions options,
|
||||||
IReadableConfiguration configuration)
|
IReadableConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any error text defined by the calling client.
|
/// Gets or sets any error text defined by the calling client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
String ErrorText { get; set; }
|
string ErrorText { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any cookies passed along on the response.
|
/// Gets or sets any cookies passed along on the response.
|
||||||
@ -77,7 +77,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any error text defined by the calling client.
|
/// Gets or sets any error text defined by the calling client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public String ErrorText { get; set; }
|
public string ErrorText { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any cookies passed along on the response.
|
/// Gets or sets any cookies passed along on the response.
|
||||||
|
@ -120,7 +120,7 @@ namespace {{packageName}}.Client
|
|||||||
/// URL encode a string
|
/// URL encode a string
|
||||||
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input">String to be URL encoded</param>
|
/// <param name="input">string to be URL encoded</param>
|
||||||
/// <returns>Byte array</returns>
|
/// <returns>Byte array</returns>
|
||||||
public static string UrlEncode(string input)
|
public static string UrlEncode(string input)
|
||||||
{
|
{
|
||||||
@ -154,7 +154,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Encode string in base64 format.
|
/// Encode string in base64 format.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="text">String to be encoded.</param>
|
/// <param name="text">string to be encoded.</param>
|
||||||
/// <returns>Encoded string.</returns>
|
/// <returns>Encoded string.</returns>
|
||||||
public static string Base64Encode(string text)
|
public static string Base64Encode(string text)
|
||||||
{
|
{
|
||||||
@ -182,7 +182,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
||||||
/// <returns>The Content-Type header to use.</returns>
|
/// <returns>The Content-Type header to use.</returns>
|
||||||
public static String SelectHeaderContentType(String[] contentTypes)
|
public static string SelectHeaderContentType(string[] contentTypes)
|
||||||
{
|
{
|
||||||
if (contentTypes.Length == 0)
|
if (contentTypes.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
@ -203,7 +203,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="accepts">The accepts array to select from.</param>
|
/// <param name="accepts">The accepts array to select from.</param>
|
||||||
/// <returns>The Accept header to use.</returns>
|
/// <returns>The Accept header to use.</returns>
|
||||||
public static String SelectHeaderAccept(String[] accepts)
|
public static string SelectHeaderAccept(string[] accepts)
|
||||||
{
|
{
|
||||||
if (accepts.Length == 0)
|
if (accepts.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
@ -211,7 +211,7 @@ namespace {{packageName}}.Client
|
|||||||
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
||||||
return "application/json";
|
return "application/json";
|
||||||
|
|
||||||
return String.Join(",", accepts);
|
return string.Join(",", accepts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -229,9 +229,9 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="mime">MIME</param>
|
/// <param name="mime">MIME</param>
|
||||||
/// <returns>Returns True if MIME type is json.</returns>
|
/// <returns>Returns True if MIME type is json.</returns>
|
||||||
public static bool IsJsonMime(String mime)
|
public static bool IsJsonMime(string mime)
|
||||||
{
|
{
|
||||||
if (String.IsNullOrWhiteSpace(mime)) return false;
|
if (string.IsNullOrWhiteSpace(mime)) return false;
|
||||||
|
|
||||||
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ namespace {{packageName}}.Client
|
|||||||
/// Defines the base path of the target API server.
|
/// Defines the base path of the target API server.
|
||||||
/// Example: http://localhost:3000/v1/
|
/// Example: http://localhost:3000/v1/
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private String _basePath;
|
private string _basePath;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API key based on the authentication name.
|
/// Gets or sets the API key based on the authentication name.
|
||||||
@ -496,9 +496,9 @@ namespace {{packageName}}.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a string with essential information for debugging.
|
/// Returns a string with essential information for debugging.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static String ToDebugReport()
|
public static string ToDebugReport()
|
||||||
{
|
{
|
||||||
String report = "C# SDK ({{{packageName}}}) Debug Report:\n";
|
string report = "C# SDK ({{{packageName}}}) Debug Report:\n";
|
||||||
report += " OS: " + System.Environment.OSVersion + "\n";
|
report += " OS: " + System.Environment.OSVersion + "\n";
|
||||||
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
||||||
report += " Version of the API: {{{version}}}\n";
|
report += " Version of the API: {{{version}}}\n";
|
||||||
|
@ -120,7 +120,7 @@ namespace {{packageName}}.Client
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var httpValues = HttpUtility.ParseQueryString(String.Empty);
|
var httpValues = HttpUtility.ParseQueryString(string.Empty);
|
||||||
foreach (var parameter in requestOptions.QueryParameters)
|
foreach (var parameter in requestOptions.QueryParameters)
|
||||||
{
|
{
|
||||||
#if (NETCOREAPP)
|
#if (NETCOREAPP)
|
||||||
@ -153,7 +153,7 @@ namespace {{packageName}}.Client
|
|||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
string Digest = string.Empty;
|
||||||
|
|
||||||
//get the body
|
//get the body
|
||||||
string requestBody = string.Empty;
|
string requestBody = string.Empty;
|
||||||
@ -230,7 +230,7 @@ namespace {{packageName}}.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
var headersKeysString = String.Join(" ", HttpSignatureHeader.Keys);
|
var headersKeysString = string.Join(" ", HttpSignatureHeader.Keys);
|
||||||
var headerValuesList = new List<string>();
|
var headerValuesList = new List<string>();
|
||||||
|
|
||||||
foreach (var keyVal in HttpSignatureHeader)
|
foreach (var keyVal in HttpSignatureHeader)
|
||||||
@ -411,10 +411,10 @@ namespace {{packageName}}.Client
|
|||||||
return derBytes.ToArray();
|
return derBytes.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile, SecureString keyPassPharse = null)
|
private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPharse = null)
|
||||||
{
|
{
|
||||||
const String pempubheader = "-----BEGIN PUBLIC KEY-----";
|
const string pempubheader = "-----BEGIN PUBLIC KEY-----";
|
||||||
const String pempubfooter = "-----END PUBLIC KEY-----";
|
const string pempubfooter = "-----END PUBLIC KEY-----";
|
||||||
bool isPrivateKeyFile = true;
|
bool isPrivateKeyFile = true;
|
||||||
byte[] pemkey = null;
|
byte[] pemkey = null;
|
||||||
|
|
||||||
@ -441,11 +441,11 @@ namespace {{packageName}}.Client
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPharse = null)
|
private byte[] ConvertPrivateKeyToBytes(string instr, SecureString keyPassPharse = null)
|
||||||
{
|
{
|
||||||
const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
const string pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
||||||
const String pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
const string pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
||||||
String pemstr = instr.Trim();
|
string pemstr = instr.Trim();
|
||||||
byte[] binkey;
|
byte[] binkey;
|
||||||
|
|
||||||
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
||||||
@ -456,7 +456,7 @@ namespace {{packageName}}.Client
|
|||||||
StringBuilder sb = new StringBuilder(pemstr);
|
StringBuilder sb = new StringBuilder(pemstr);
|
||||||
sb.Replace(pemprivheader, "");
|
sb.Replace(pemprivheader, "");
|
||||||
sb.Replace(pemprivfooter, "");
|
sb.Replace(pemprivfooter, "");
|
||||||
String pvkstr = sb.ToString().Trim();
|
string pvkstr = sb.ToString().Trim();
|
||||||
|
|
||||||
try
|
try
|
||||||
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
||||||
@ -472,12 +472,12 @@ namespace {{packageName}}.Client
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String saltline = str.ReadLine();
|
string saltline = str.ReadLine();
|
||||||
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
string saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
||||||
byte[] salt = new byte[saltstr.Length / 2];
|
byte[] salt = new byte[saltstr.Length / 2];
|
||||||
for (int i = 0; i < salt.Length; i++)
|
for (int i = 0; i < salt.Length; i++)
|
||||||
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
||||||
@ -487,7 +487,7 @@ namespace {{packageName}}.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
//------ remaining b64 data is encrypted RSA key ----
|
//------ remaining b64 data is encrypted RSA key ----
|
||||||
String encryptedstr = str.ReadToEnd();
|
string encryptedstr = str.ReadToEnd();
|
||||||
|
|
||||||
try
|
try
|
||||||
{ //should have b64 encrypted RSA key now
|
{ //should have b64 encrypted RSA key now
|
||||||
|
@ -19,7 +19,7 @@ namespace {{packageName}}.Client
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
String GetBasePath();
|
string GetBasePath();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides a factory method hook for the creation of exceptions.
|
/// Provides a factory method hook for the creation of exceptions.
|
||||||
|
@ -21,7 +21,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> GetAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
||||||
@ -32,7 +32,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PostAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||||
@ -43,7 +43,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PutAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||||
@ -54,7 +54,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> DeleteAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||||
@ -65,7 +65,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> HeadAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||||
@ -76,7 +76,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> OptionsAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||||
@ -87,6 +87,6 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PatchAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Get<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Get<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
||||||
@ -30,7 +30,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Post<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Post<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||||
@ -40,7 +40,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Put<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Put<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||||
@ -50,7 +50,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Delete<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Delete<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||||
@ -60,7 +60,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Head<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Head<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||||
@ -70,7 +70,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Options<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Options<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||||
@ -80,6 +80,6 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Patch<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,29 +16,29 @@ namespace {{packageName}}.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parameters to be bound to path parts of the Request's URL
|
/// Parameters to be bound to path parts of the Request's URL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> PathParameters { get; set; }
|
public Dictionary<string, string> PathParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Query parameters to be applied to the request.
|
/// Query parameters to be applied to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> QueryParameters { get; set; }
|
public Multimap<string, string> QueryParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Header parameters to be applied to to the request.
|
/// Header parameters to be applied to to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> HeaderParameters { get; set; }
|
public Multimap<string, string> HeaderParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Form parameters to be sent along with the request.
|
/// Form parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> FormParameters { get; set; }
|
public Dictionary<string, string> FormParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// File parameters to be sent along with the request.
|
/// File parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, Stream> FileParameters { get; set; }
|
public Dictionary<string, Stream> FileParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cookies to be sent along with the request.
|
/// Cookies to be sent along with the request.
|
||||||
@ -59,7 +59,7 @@ namespace {{packageName}}.Client
|
|||||||
QueryParameters = new Multimap<string, string>();
|
QueryParameters = new Multimap<string, string>();
|
||||||
HeaderParameters = new Multimap<string, string>();
|
HeaderParameters = new Multimap<string, string>();
|
||||||
FormParameters = new Dictionary<string, string>();
|
FormParameters = new Dictionary<string, string>();
|
||||||
FileParameters = new Dictionary<String, Stream>();
|
FileParameters = new Dictionary<string, Stream>();
|
||||||
Cookies = new List<Cookie>();
|
Cookies = new List<Cookie>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
/// Initializes a new instance of the <see cref="{{classname}}"/> class.
|
/// Initializes a new instance of the <see cref="{{classname}}"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public {{classname}}(String basePath)
|
public {{classname}}(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations(
|
this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations(
|
||||||
{{packageName}}.Client.GlobalConfiguration.Instance,
|
{{packageName}}.Client.GlobalConfiguration.Instance,
|
||||||
@ -188,7 +188,7 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -248,14 +248,14 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
{{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions();
|
{{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
{{#consumes}}
|
{{#consumes}}
|
||||||
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
||||||
{{/consumes}}
|
{{/consumes}}
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
{{#produces}}
|
{{#produces}}
|
||||||
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
||||||
{{/produces}}
|
{{/produces}}
|
||||||
@ -353,19 +353,19 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{#isApiKey}}
|
{{#isApiKey}}
|
||||||
{{#isKeyInCookie}}
|
{{#isKeyInCookie}}
|
||||||
// cookie parameter support
|
// cookie parameter support
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
||||||
}
|
}
|
||||||
{{/isKeyInCookie}}
|
{{/isKeyInCookie}}
|
||||||
{{#isKeyInHeader}}
|
{{#isKeyInHeader}}
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"));
|
localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"));
|
||||||
}
|
}
|
||||||
{{/isKeyInHeader}}
|
{{/isKeyInHeader}}
|
||||||
{{#isKeyInQuery}}
|
{{#isKeyInQuery}}
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
||||||
}
|
}
|
||||||
@ -373,21 +373,21 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{/isApiKey}}
|
{{/isApiKey}}
|
||||||
{{#isBasicBasic}}
|
{{#isBasicBasic}}
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
{{/isBasicBasic}}
|
{{/isBasicBasic}}
|
||||||
{{#isBasicBearer}}
|
{{#isBasicBearer}}
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
{{/isBasicBearer}}
|
{{/isBasicBearer}}
|
||||||
{{#isOAuth}}
|
{{#isOAuth}}
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -463,14 +463,14 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
|
|
||||||
{{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions();
|
{{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
{{#consumes}}
|
{{#consumes}}
|
||||||
"{{{mediaType}}}"{{^-last}}, {{/-last}}
|
"{{{mediaType}}}"{{^-last}}, {{/-last}}
|
||||||
{{/consumes}}
|
{{/consumes}}
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
{{#produces}}
|
{{#produces}}
|
||||||
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
||||||
{{/produces}}
|
{{/produces}}
|
||||||
@ -546,19 +546,19 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{#isApiKey}}
|
{{#isApiKey}}
|
||||||
{{#isKeyInCookie}}
|
{{#isKeyInCookie}}
|
||||||
// cookie parameter support
|
// cookie parameter support
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
||||||
}
|
}
|
||||||
{{/isKeyInCookie}}
|
{{/isKeyInCookie}}
|
||||||
{{#isKeyInHeader}}
|
{{#isKeyInHeader}}
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"));
|
localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"));
|
||||||
}
|
}
|
||||||
{{/isKeyInHeader}}
|
{{/isKeyInHeader}}
|
||||||
{{#isKeyInQuery}}
|
{{#isKeyInQuery}}
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
||||||
}
|
}
|
||||||
@ -567,14 +567,14 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{#isBasic}}
|
{{#isBasic}}
|
||||||
{{#isBasicBasic}}
|
{{#isBasicBasic}}
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
{{/isBasicBasic}}
|
{{/isBasicBasic}}
|
||||||
{{#isBasicBearer}}
|
{{#isBasicBearer}}
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -582,7 +582,7 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{/isBasic}}
|
{{/isBasic}}
|
||||||
{{#isOAuth}}
|
{{#isOAuth}}
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ namespace {{packageName}}.Client
|
|||||||
var bytes = await response.Content.ReadAsByteArrayAsync();
|
var bytes = await response.Content.ReadAsByteArrayAsync();
|
||||||
if (headers != null)
|
if (headers != null)
|
||||||
{
|
{
|
||||||
var filePath = String.IsNullOrEmpty(_configuration.TempFolderPath)
|
var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath)
|
||||||
? Path.GetTempPath()
|
? Path.GetTempPath()
|
||||||
: _configuration.TempFolderPath;
|
: _configuration.TempFolderPath;
|
||||||
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
||||||
@ -131,7 +131,7 @@ namespace {{packageName}}.Client
|
|||||||
return DateTime.Parse(await response.Content.ReadAsStringAsync(), null, System.Globalization.DateTimeStyles.RoundtripKind);
|
return DateTime.Parse(await response.Content.ReadAsStringAsync(), null, System.Globalization.DateTimeStyles.RoundtripKind);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
||||||
{
|
{
|
||||||
return Convert.ChangeType(await response.Content.ReadAsStringAsync(), type);
|
return Convert.ChangeType(await response.Content.ReadAsStringAsync(), type);
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
{{>visibility}} partial class ApiClient : IDisposable, ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}}
|
{{>visibility}} partial class ApiClient : IDisposable, ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}}
|
||||||
{
|
{
|
||||||
private readonly String _baseUrl;
|
private readonly string _baseUrl;
|
||||||
|
|
||||||
private readonly HttpClientHandler _httpClientHandler;
|
private readonly HttpClientHandler _httpClientHandler;
|
||||||
private readonly HttpClient _httpClient;
|
private readonly HttpClient _httpClient;
|
||||||
@ -206,7 +206,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
public ApiClient(String basePath)
|
public ApiClient(string basePath)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
|
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ namespace {{packageName}}.Client
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public ApiClient(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public ApiClient(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client cannot be null");
|
if (client == null) throw new ArgumentNullException("client cannot be null");
|
||||||
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
|
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
|
||||||
@ -301,7 +301,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <exception cref="ArgumentNullException"></exception>
|
/// <exception cref="ArgumentNullException"></exception>
|
||||||
private HttpRequestMessage NewRequest(
|
private HttpRequestMessage NewRequest(
|
||||||
HttpMethod method,
|
HttpMethod method,
|
||||||
String path,
|
string path,
|
||||||
RequestOptions options,
|
RequestOptions options,
|
||||||
IReadableConfiguration configuration)
|
IReadableConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
@ -16,29 +16,29 @@ namespace {{packageName}}.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parameters to be bound to path parts of the Request's URL
|
/// Parameters to be bound to path parts of the Request's URL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> PathParameters { get; set; }
|
public Dictionary<string, string> PathParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Query parameters to be applied to the request.
|
/// Query parameters to be applied to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> QueryParameters { get; set; }
|
public Multimap<string, string> QueryParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Header parameters to be applied to to the request.
|
/// Header parameters to be applied to to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> HeaderParameters { get; set; }
|
public Multimap<string, string> HeaderParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Form parameters to be sent along with the request.
|
/// Form parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> FormParameters { get; set; }
|
public Dictionary<string, string> FormParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// File parameters to be sent along with the request.
|
/// File parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, FileParameter> FileParameters { get; set; }
|
public Dictionary<string, FileParameter> FileParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cookies to be sent along with the request.
|
/// Cookies to be sent along with the request.
|
||||||
@ -59,7 +59,7 @@ namespace {{packageName}}.Client
|
|||||||
QueryParameters = new Multimap<string, string>();
|
QueryParameters = new Multimap<string, string>();
|
||||||
HeaderParameters = new Multimap<string, string>();
|
HeaderParameters = new Multimap<string, string>();
|
||||||
FormParameters = new Dictionary<string, string>();
|
FormParameters = new Dictionary<string, string>();
|
||||||
FileParameters = new Dictionary<String, FileParameter>();
|
FileParameters = new Dictionary<string, FileParameter>();
|
||||||
Cookies = new List<Cookie>();
|
Cookies = new List<Cookie>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public {{classname}}(String basePath)
|
public {{classname}}(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations(
|
this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations(
|
||||||
{{packageName}}.Client.GlobalConfiguration.Instance,
|
{{packageName}}.Client.GlobalConfiguration.Instance,
|
||||||
@ -188,7 +188,7 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public {{classname}}(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public {{classname}}(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client");
|
if (client == null) throw new ArgumentNullException("client");
|
||||||
|
|
||||||
@ -286,7 +286,7 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -346,14 +346,14 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
{{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions();
|
{{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
{{#consumes}}
|
{{#consumes}}
|
||||||
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
||||||
{{/consumes}}
|
{{/consumes}}
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
{{#produces}}
|
{{#produces}}
|
||||||
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
||||||
{{/produces}}
|
{{/produces}}
|
||||||
@ -451,19 +451,19 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{#isApiKey}}
|
{{#isApiKey}}
|
||||||
{{#isKeyInCookie}}
|
{{#isKeyInCookie}}
|
||||||
// cookie parameter support
|
// cookie parameter support
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
||||||
}
|
}
|
||||||
{{/isKeyInCookie}}
|
{{/isKeyInCookie}}
|
||||||
{{#isKeyInHeader}}
|
{{#isKeyInHeader}}
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"));
|
localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"));
|
||||||
}
|
}
|
||||||
{{/isKeyInHeader}}
|
{{/isKeyInHeader}}
|
||||||
{{#isKeyInQuery}}
|
{{#isKeyInQuery}}
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
||||||
}
|
}
|
||||||
@ -471,21 +471,21 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{/isApiKey}}
|
{{/isApiKey}}
|
||||||
{{#isBasicBasic}}
|
{{#isBasicBasic}}
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
{{/isBasicBasic}}
|
{{/isBasicBasic}}
|
||||||
{{#isBasicBearer}}
|
{{#isBasicBearer}}
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
{{/isBasicBearer}}
|
{{/isBasicBearer}}
|
||||||
{{#isOAuth}}
|
{{#isOAuth}}
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -561,14 +561,14 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
|
|
||||||
{{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions();
|
{{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
{{#consumes}}
|
{{#consumes}}
|
||||||
"{{{mediaType}}}"{{^-last}}, {{/-last}}
|
"{{{mediaType}}}"{{^-last}}, {{/-last}}
|
||||||
{{/consumes}}
|
{{/consumes}}
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
{{#produces}}
|
{{#produces}}
|
||||||
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
"{{{mediaType}}}"{{^-last}},{{/-last}}
|
||||||
{{/produces}}
|
{{/produces}}
|
||||||
@ -644,19 +644,19 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{#isApiKey}}
|
{{#isApiKey}}
|
||||||
{{#isKeyInCookie}}
|
{{#isKeyInCookie}}
|
||||||
// cookie parameter support
|
// cookie parameter support
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
||||||
}
|
}
|
||||||
{{/isKeyInCookie}}
|
{{/isKeyInCookie}}
|
||||||
{{#isKeyInHeader}}
|
{{#isKeyInHeader}}
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"));
|
localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"));
|
||||||
}
|
}
|
||||||
{{/isKeyInHeader}}
|
{{/isKeyInHeader}}
|
||||||
{{#isKeyInQuery}}
|
{{#isKeyInQuery}}
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
|
||||||
}
|
}
|
||||||
@ -665,14 +665,14 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{#isBasic}}
|
{{#isBasic}}
|
||||||
{{#isBasicBasic}}
|
{{#isBasicBasic}}
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
{{/isBasicBasic}}
|
{{/isBasicBasic}}
|
||||||
{{#isBasicBearer}}
|
{{#isBasicBearer}}
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -680,7 +680,7 @@ namespace {{packageName}}.{{apiPackage}}
|
|||||||
{{/isBasic}}
|
{{/isBasic}}
|
||||||
{{#isOAuth}}
|
{{#isOAuth}}
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into {{{.}}}: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into {{{.}}}: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
{{/anyOf}}
|
{{/anyOf}}
|
||||||
|
|
||||||
@ -195,7 +195,7 @@
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof({{classname}}).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof({{classname}}).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
return new{{classname}};
|
return new{{classname}};
|
||||||
{{/mappedModels}}
|
{{/mappedModels}}
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,7 +143,7 @@
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into {{{.}}}: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into {{{.}}}: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
{{/oneOf}}
|
{{/oneOf}}
|
||||||
|
|
||||||
@ -232,7 +232,7 @@
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof({{classname}}).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof({{classname}}).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public AnotherFakeApi(String basePath)
|
public AnotherFakeApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public AnotherFakeApi(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public AnotherFakeApi(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client");
|
if (client == null) throw new ArgumentNullException("client");
|
||||||
|
|
||||||
@ -266,7 +266,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -319,12 +319,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -378,12 +378,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public DefaultApi(String basePath)
|
public DefaultApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public DefaultApi(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public DefaultApi(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client");
|
if (client == null) throw new ArgumentNullException("client");
|
||||||
|
|
||||||
@ -259,7 +259,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -306,11 +306,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -357,11 +357,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -833,7 +833,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public FakeApi(String basePath)
|
public FakeApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -895,7 +895,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public FakeApi(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public FakeApi(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client");
|
if (client == null) throw new ArgumentNullException("client");
|
||||||
|
|
||||||
@ -983,7 +983,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -1030,11 +1030,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1081,11 +1081,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1133,12 +1133,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1188,12 +1188,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1242,12 +1242,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1297,12 +1297,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1351,12 +1351,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1406,12 +1406,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1460,12 +1460,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1515,12 +1515,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1567,11 +1567,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1618,11 +1618,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1673,12 +1673,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1730,12 +1730,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1792,12 +1792,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1856,12 +1856,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1914,12 +1914,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1973,12 +1973,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2060,12 +2060,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2121,7 +2121,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
@ -2196,12 +2196,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2258,7 +2258,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
@ -2311,12 +2311,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2409,12 +2409,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2502,11 +2502,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2533,7 +2533,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (bearer_test) required
|
// authentication (bearer_test) required
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -2584,11 +2584,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2616,7 +2616,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (bearer_test) required
|
// authentication (bearer_test) required
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -2659,12 +2659,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2716,12 +2716,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2778,12 +2778,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2842,12 +2842,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2923,11 +2923,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -3007,11 +3007,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public FakeClassnameTags123Api(String basePath)
|
public FakeClassnameTags123Api(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public FakeClassnameTags123Api(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public FakeClassnameTags123Api(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client");
|
if (client == null) throw new ArgumentNullException("client");
|
||||||
|
|
||||||
@ -266,7 +266,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -319,12 +319,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -337,7 +337,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.Data = modelClient;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||||
}
|
}
|
||||||
@ -383,12 +383,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -402,7 +402,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.Data = modelClient;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||||
}
|
}
|
||||||
|
@ -478,7 +478,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public PetApi(String basePath)
|
public PetApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -540,7 +540,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public PetApi(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public PetApi(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client");
|
if (client == null) throw new ArgumentNullException("client");
|
||||||
|
|
||||||
@ -628,7 +628,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -680,13 +680,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -715,7 +715,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -760,13 +760,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -796,7 +796,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -837,11 +837,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -858,7 +858,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -901,11 +901,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -923,7 +923,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -967,11 +967,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1002,7 +1002,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1048,11 +1048,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1084,7 +1084,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1128,11 +1128,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1163,7 +1163,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1209,11 +1209,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1245,7 +1245,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1285,11 +1285,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1303,7 +1303,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -1345,11 +1345,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1364,7 +1364,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -1407,13 +1407,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1442,7 +1442,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1487,13 +1487,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1523,7 +1523,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1566,12 +1566,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1592,7 +1592,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1637,12 +1637,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1664,7 +1664,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1708,12 +1708,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1735,7 +1735,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1781,12 +1781,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1809,7 +1809,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1857,12 +1857,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1881,7 +1881,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1931,12 +1931,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1956,7 +1956,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public StoreApi(String basePath)
|
public StoreApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -303,7 +303,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public StoreApi(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public StoreApi(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client");
|
if (client == null) throw new ArgumentNullException("client");
|
||||||
|
|
||||||
@ -391,7 +391,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -443,11 +443,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -499,11 +499,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -549,11 +549,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -565,7 +565,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -605,11 +605,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -622,7 +622,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -662,11 +662,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -717,11 +717,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -775,12 +775,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -835,12 +835,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
@ -413,7 +413,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public UserApi(String basePath)
|
public UserApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -475,7 +475,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public UserApi(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public UserApi(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client");
|
if (client == null) throw new ArgumentNullException("client");
|
||||||
|
|
||||||
@ -563,7 +563,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -615,12 +615,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -672,12 +672,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -728,12 +728,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -785,12 +785,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -841,12 +841,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -898,12 +898,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -954,11 +954,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1010,11 +1010,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1066,11 +1066,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1125,11 +1125,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1189,11 +1189,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1255,11 +1255,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1307,11 +1307,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1356,11 +1356,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1416,12 +1416,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1480,12 +1480,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
var bytes = await response.Content.ReadAsByteArrayAsync();
|
var bytes = await response.Content.ReadAsByteArrayAsync();
|
||||||
if (headers != null)
|
if (headers != null)
|
||||||
{
|
{
|
||||||
var filePath = String.IsNullOrEmpty(_configuration.TempFolderPath)
|
var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath)
|
||||||
? Path.GetTempPath()
|
? Path.GetTempPath()
|
||||||
: _configuration.TempFolderPath;
|
: _configuration.TempFolderPath;
|
||||||
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
||||||
@ -131,7 +131,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
return DateTime.Parse(await response.Content.ReadAsStringAsync(), null, System.Globalization.DateTimeStyles.RoundtripKind);
|
return DateTime.Parse(await response.Content.ReadAsStringAsync(), null, System.Globalization.DateTimeStyles.RoundtripKind);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
||||||
{
|
{
|
||||||
return Convert.ChangeType(await response.Content.ReadAsStringAsync(), type);
|
return Convert.ChangeType(await response.Content.ReadAsStringAsync(), type);
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient
|
public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient
|
||||||
{
|
{
|
||||||
private readonly String _baseUrl;
|
private readonly string _baseUrl;
|
||||||
|
|
||||||
private readonly HttpClientHandler _httpClientHandler;
|
private readonly HttpClientHandler _httpClientHandler;
|
||||||
private readonly HttpClient _httpClient;
|
private readonly HttpClient _httpClient;
|
||||||
@ -206,7 +206,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
public ApiClient(String basePath)
|
public ApiClient(string basePath)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
|
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
/// Some configuration settings will not be applied without passing an HttpClientHandler.
|
||||||
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public ApiClient(HttpClient client, String basePath, HttpClientHandler handler = null)
|
public ApiClient(HttpClient client, string basePath, HttpClientHandler handler = null)
|
||||||
{
|
{
|
||||||
if (client == null) throw new ArgumentNullException("client cannot be null");
|
if (client == null) throw new ArgumentNullException("client cannot be null");
|
||||||
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
|
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
|
||||||
@ -300,7 +300,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <exception cref="ArgumentNullException"></exception>
|
/// <exception cref="ArgumentNullException"></exception>
|
||||||
private HttpRequestMessage NewRequest(
|
private HttpRequestMessage NewRequest(
|
||||||
HttpMethod method,
|
HttpMethod method,
|
||||||
String path,
|
string path,
|
||||||
RequestOptions options,
|
RequestOptions options,
|
||||||
IReadableConfiguration configuration)
|
IReadableConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any error text defined by the calling client.
|
/// Gets or sets any error text defined by the calling client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
String ErrorText { get; set; }
|
string ErrorText { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any cookies passed along on the response.
|
/// Gets or sets any cookies passed along on the response.
|
||||||
@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any error text defined by the calling client.
|
/// Gets or sets any error text defined by the calling client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public String ErrorText { get; set; }
|
public string ErrorText { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any cookies passed along on the response.
|
/// Gets or sets any cookies passed along on the response.
|
||||||
|
@ -124,7 +124,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// URL encode a string
|
/// URL encode a string
|
||||||
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input">String to be URL encoded</param>
|
/// <param name="input">string to be URL encoded</param>
|
||||||
/// <returns>Byte array</returns>
|
/// <returns>Byte array</returns>
|
||||||
public static string UrlEncode(string input)
|
public static string UrlEncode(string input)
|
||||||
{
|
{
|
||||||
@ -158,7 +158,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Encode string in base64 format.
|
/// Encode string in base64 format.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="text">String to be encoded.</param>
|
/// <param name="text">string to be encoded.</param>
|
||||||
/// <returns>Encoded string.</returns>
|
/// <returns>Encoded string.</returns>
|
||||||
public static string Base64Encode(string text)
|
public static string Base64Encode(string text)
|
||||||
{
|
{
|
||||||
@ -186,7 +186,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
||||||
/// <returns>The Content-Type header to use.</returns>
|
/// <returns>The Content-Type header to use.</returns>
|
||||||
public static String SelectHeaderContentType(String[] contentTypes)
|
public static string SelectHeaderContentType(string[] contentTypes)
|
||||||
{
|
{
|
||||||
if (contentTypes.Length == 0)
|
if (contentTypes.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="accepts">The accepts array to select from.</param>
|
/// <param name="accepts">The accepts array to select from.</param>
|
||||||
/// <returns>The Accept header to use.</returns>
|
/// <returns>The Accept header to use.</returns>
|
||||||
public static String SelectHeaderAccept(String[] accepts)
|
public static string SelectHeaderAccept(string[] accepts)
|
||||||
{
|
{
|
||||||
if (accepts.Length == 0)
|
if (accepts.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
@ -215,7 +215,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
||||||
return "application/json";
|
return "application/json";
|
||||||
|
|
||||||
return String.Join(",", accepts);
|
return string.Join(",", accepts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -233,9 +233,9 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="mime">MIME</param>
|
/// <param name="mime">MIME</param>
|
||||||
/// <returns>Returns True if MIME type is json.</returns>
|
/// <returns>Returns True if MIME type is json.</returns>
|
||||||
public static bool IsJsonMime(String mime)
|
public static bool IsJsonMime(string mime)
|
||||||
{
|
{
|
||||||
if (String.IsNullOrWhiteSpace(mime)) return false;
|
if (string.IsNullOrWhiteSpace(mime)) return false;
|
||||||
|
|
||||||
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// Defines the base path of the target API server.
|
/// Defines the base path of the target API server.
|
||||||
/// Example: http://localhost:3000/v1/
|
/// Example: http://localhost:3000/v1/
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private String _basePath;
|
private string _basePath;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API key based on the authentication name.
|
/// Gets or sets the API key based on the authentication name.
|
||||||
@ -511,9 +511,9 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a string with essential information for debugging.
|
/// Returns a string with essential information for debugging.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static String ToDebugReport()
|
public static string ToDebugReport()
|
||||||
{
|
{
|
||||||
String report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
|
string report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
|
||||||
report += " OS: " + System.Environment.OSVersion + "\n";
|
report += " OS: " + System.Environment.OSVersion + "\n";
|
||||||
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
||||||
report += " Version of the API: 1.0.0\n";
|
report += " Version of the API: 1.0.0\n";
|
||||||
|
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var httpValues = HttpUtility.ParseQueryString(String.Empty);
|
var httpValues = HttpUtility.ParseQueryString(string.Empty);
|
||||||
foreach (var parameter in requestOptions.QueryParameters)
|
foreach (var parameter in requestOptions.QueryParameters)
|
||||||
{
|
{
|
||||||
#if (NETCOREAPP)
|
#if (NETCOREAPP)
|
||||||
@ -153,7 +153,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
string Digest = string.Empty;
|
||||||
|
|
||||||
//get the body
|
//get the body
|
||||||
string requestBody = string.Empty;
|
string requestBody = string.Empty;
|
||||||
@ -230,7 +230,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
var headersKeysString = String.Join(" ", HttpSignatureHeader.Keys);
|
var headersKeysString = string.Join(" ", HttpSignatureHeader.Keys);
|
||||||
var headerValuesList = new List<string>();
|
var headerValuesList = new List<string>();
|
||||||
|
|
||||||
foreach (var keyVal in HttpSignatureHeader)
|
foreach (var keyVal in HttpSignatureHeader)
|
||||||
@ -411,10 +411,10 @@ namespace Org.OpenAPITools.Client
|
|||||||
return derBytes.ToArray();
|
return derBytes.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile, SecureString keyPassPharse = null)
|
private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPharse = null)
|
||||||
{
|
{
|
||||||
const String pempubheader = "-----BEGIN PUBLIC KEY-----";
|
const string pempubheader = "-----BEGIN PUBLIC KEY-----";
|
||||||
const String pempubfooter = "-----END PUBLIC KEY-----";
|
const string pempubfooter = "-----END PUBLIC KEY-----";
|
||||||
bool isPrivateKeyFile = true;
|
bool isPrivateKeyFile = true;
|
||||||
byte[] pemkey = null;
|
byte[] pemkey = null;
|
||||||
|
|
||||||
@ -441,11 +441,11 @@ namespace Org.OpenAPITools.Client
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPharse = null)
|
private byte[] ConvertPrivateKeyToBytes(string instr, SecureString keyPassPharse = null)
|
||||||
{
|
{
|
||||||
const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
const string pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
||||||
const String pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
const string pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
||||||
String pemstr = instr.Trim();
|
string pemstr = instr.Trim();
|
||||||
byte[] binkey;
|
byte[] binkey;
|
||||||
|
|
||||||
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
||||||
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
StringBuilder sb = new StringBuilder(pemstr);
|
StringBuilder sb = new StringBuilder(pemstr);
|
||||||
sb.Replace(pemprivheader, "");
|
sb.Replace(pemprivheader, "");
|
||||||
sb.Replace(pemprivfooter, "");
|
sb.Replace(pemprivfooter, "");
|
||||||
String pvkstr = sb.ToString().Trim();
|
string pvkstr = sb.ToString().Trim();
|
||||||
|
|
||||||
try
|
try
|
||||||
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
||||||
@ -472,12 +472,12 @@ namespace Org.OpenAPITools.Client
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String saltline = str.ReadLine();
|
string saltline = str.ReadLine();
|
||||||
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
string saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
||||||
byte[] salt = new byte[saltstr.Length / 2];
|
byte[] salt = new byte[saltstr.Length / 2];
|
||||||
for (int i = 0; i < salt.Length; i++)
|
for (int i = 0; i < salt.Length; i++)
|
||||||
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
||||||
@ -487,7 +487,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
//------ remaining b64 data is encrypted RSA key ----
|
//------ remaining b64 data is encrypted RSA key ----
|
||||||
String encryptedstr = str.ReadToEnd();
|
string encryptedstr = str.ReadToEnd();
|
||||||
|
|
||||||
try
|
try
|
||||||
{ //should have b64 encrypted RSA key now
|
{ //should have b64 encrypted RSA key now
|
||||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
String GetBasePath();
|
string GetBasePath();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides a factory method hook for the creation of exceptions.
|
/// Provides a factory method hook for the creation of exceptions.
|
||||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> GetAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
||||||
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PostAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||||
@ -51,7 +51,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PutAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||||
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> DeleteAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||||
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> HeadAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||||
@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> OptionsAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||||
@ -95,6 +95,6 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PatchAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Get<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Get<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Post<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Post<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||||
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Put<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Put<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||||
@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Delete<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Delete<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||||
@ -68,7 +68,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Head<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Head<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||||
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Options<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Options<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||||
@ -88,6 +88,6 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Patch<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,29 +24,29 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parameters to be bound to path parts of the Request's URL
|
/// Parameters to be bound to path parts of the Request's URL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> PathParameters { get; set; }
|
public Dictionary<string, string> PathParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Query parameters to be applied to the request.
|
/// Query parameters to be applied to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> QueryParameters { get; set; }
|
public Multimap<string, string> QueryParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Header parameters to be applied to to the request.
|
/// Header parameters to be applied to to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> HeaderParameters { get; set; }
|
public Multimap<string, string> HeaderParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Form parameters to be sent along with the request.
|
/// Form parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> FormParameters { get; set; }
|
public Dictionary<string, string> FormParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// File parameters to be sent along with the request.
|
/// File parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, FileParameter> FileParameters { get; set; }
|
public Dictionary<string, FileParameter> FileParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cookies to be sent along with the request.
|
/// Cookies to be sent along with the request.
|
||||||
@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
QueryParameters = new Multimap<string, string>();
|
QueryParameters = new Multimap<string, string>();
|
||||||
HeaderParameters = new Multimap<string, string>();
|
HeaderParameters = new Multimap<string, string>();
|
||||||
FormParameters = new Dictionary<string, string>();
|
FormParameters = new Dictionary<string, string>();
|
||||||
FileParameters = new Dictionary<String, FileParameter>();
|
FileParameters = new Dictionary<string, FileParameter>();
|
||||||
Cookies = new List<Cookie>();
|
Cookies = new List<Cookie>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -258,7 +258,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -192,7 +192,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -267,7 +267,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -164,7 +164,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// no match found, throw an exception
|
// no match found, throw an exception
|
||||||
@ -230,7 +230,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -184,7 +184,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newMammal = new Mammal(JsonConvert.DeserializeObject<Zebra>(jsonString, Mammal.AdditionalPropertiesSerializerSettings));
|
newMammal = new Mammal(JsonConvert.DeserializeObject<Zebra>(jsonString, Mammal.AdditionalPropertiesSerializerSettings));
|
||||||
return newMammal;
|
return newMammal;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -228,7 +228,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -323,7 +323,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -164,7 +164,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newNullableShape = new NullableShape(JsonConvert.DeserializeObject<Triangle>(jsonString, NullableShape.AdditionalPropertiesSerializerSettings));
|
newNullableShape = new NullableShape(JsonConvert.DeserializeObject<Triangle>(jsonString, NullableShape.AdditionalPropertiesSerializerSettings));
|
||||||
return newNullableShape;
|
return newNullableShape;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -208,7 +208,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -283,7 +283,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -155,7 +155,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newPig = new Pig(JsonConvert.DeserializeObject<DanishPig>(jsonString, Pig.AdditionalPropertiesSerializerSettings));
|
newPig = new Pig(JsonConvert.DeserializeObject<DanishPig>(jsonString, Pig.AdditionalPropertiesSerializerSettings));
|
||||||
return newPig;
|
return newPig;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -199,7 +199,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -274,7 +274,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -155,7 +155,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newQuadrilateral = new Quadrilateral(JsonConvert.DeserializeObject<SimpleQuadrilateral>(jsonString, Quadrilateral.AdditionalPropertiesSerializerSettings));
|
newQuadrilateral = new Quadrilateral(JsonConvert.DeserializeObject<SimpleQuadrilateral>(jsonString, Quadrilateral.AdditionalPropertiesSerializerSettings));
|
||||||
return newQuadrilateral;
|
return newQuadrilateral;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -199,7 +199,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -274,7 +274,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -155,7 +155,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newShape = new Shape(JsonConvert.DeserializeObject<Triangle>(jsonString, Shape.AdditionalPropertiesSerializerSettings));
|
newShape = new Shape(JsonConvert.DeserializeObject<Triangle>(jsonString, Shape.AdditionalPropertiesSerializerSettings));
|
||||||
return newShape;
|
return newShape;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -199,7 +199,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -274,7 +274,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -164,7 +164,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newShapeOrNull = new ShapeOrNull(JsonConvert.DeserializeObject<Triangle>(jsonString, ShapeOrNull.AdditionalPropertiesSerializerSettings));
|
newShapeOrNull = new ShapeOrNull(JsonConvert.DeserializeObject<Triangle>(jsonString, ShapeOrNull.AdditionalPropertiesSerializerSettings));
|
||||||
return newShapeOrNull;
|
return newShapeOrNull;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -208,7 +208,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -283,7 +283,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -184,7 +184,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newTriangle = new Triangle(JsonConvert.DeserializeObject<ScaleneTriangle>(jsonString, Triangle.AdditionalPropertiesSerializerSettings));
|
newTriangle = new Triangle(JsonConvert.DeserializeObject<ScaleneTriangle>(jsonString, Triangle.AdditionalPropertiesSerializerSettings));
|
||||||
return newTriangle;
|
return newTriangle;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -228,7 +228,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -323,7 +323,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="AnotherFakeApi"/> class.
|
/// Initializes a new instance of the <see cref="AnotherFakeApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public AnotherFakeApi(String basePath)
|
public AnotherFakeApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -284,12 +284,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public DefaultApi(String basePath)
|
public DefaultApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -165,7 +165,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -212,11 +212,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -263,11 +263,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -826,7 +826,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="FakeApi"/> class.
|
/// Initializes a new instance of the <see cref="FakeApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public FakeApi(String basePath)
|
public FakeApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -889,7 +889,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -936,11 +936,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -987,11 +987,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1039,12 +1039,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1094,12 +1094,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1148,12 +1148,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1203,12 +1203,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1257,12 +1257,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1312,12 +1312,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1366,12 +1366,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1421,12 +1421,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1473,11 +1473,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1524,11 +1524,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1579,12 +1579,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1636,12 +1636,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1698,12 +1698,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1762,12 +1762,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1820,12 +1820,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1879,12 +1879,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1966,12 +1966,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2027,7 +2027,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
@ -2102,12 +2102,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2164,7 +2164,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
@ -2217,12 +2217,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2315,12 +2315,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2408,11 +2408,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2439,7 +2439,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (bearer_test) required
|
// authentication (bearer_test) required
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -2490,11 +2490,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2522,7 +2522,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (bearer_test) required
|
// authentication (bearer_test) required
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -2565,12 +2565,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2622,12 +2622,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2684,12 +2684,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2748,12 +2748,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2829,11 +2829,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2913,11 +2913,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="FakeClassnameTags123Api"/> class.
|
/// Initializes a new instance of the <see cref="FakeClassnameTags123Api"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public FakeClassnameTags123Api(String basePath)
|
public FakeClassnameTags123Api(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.Data = modelClient;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||||
}
|
}
|
||||||
@ -289,12 +289,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.Data = modelClient;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||||
}
|
}
|
||||||
|
@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="PetApi"/> class.
|
/// Initializes a new instance of the <see cref="PetApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public PetApi(String basePath)
|
public PetApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -534,7 +534,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -586,13 +586,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -621,7 +621,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -666,13 +666,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -702,7 +702,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -743,11 +743,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -764,7 +764,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -807,11 +807,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -829,7 +829,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -873,11 +873,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -908,7 +908,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -954,11 +954,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -990,7 +990,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1034,11 +1034,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1069,7 +1069,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1115,11 +1115,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1151,7 +1151,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1191,11 +1191,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1209,7 +1209,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -1251,11 +1251,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1270,7 +1270,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -1313,13 +1313,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1348,7 +1348,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1393,13 +1393,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1429,7 +1429,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1472,12 +1472,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1498,7 +1498,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1543,12 +1543,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1570,7 +1570,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1614,12 +1614,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1641,7 +1641,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1687,12 +1687,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1715,7 +1715,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1763,12 +1763,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1787,7 +1787,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1837,12 +1837,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1862,7 +1862,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="StoreApi"/> class.
|
/// Initializes a new instance of the <see cref="StoreApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public StoreApi(String basePath)
|
public StoreApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -297,7 +297,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -349,11 +349,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -405,11 +405,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -455,11 +455,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -511,11 +511,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -528,7 +528,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -568,11 +568,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -623,11 +623,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -681,12 +681,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -741,12 +741,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
@ -406,7 +406,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="UserApi"/> class.
|
/// Initializes a new instance of the <see cref="UserApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public UserApi(String basePath)
|
public UserApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -469,7 +469,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -521,12 +521,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -578,12 +578,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -634,12 +634,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -691,12 +691,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -747,12 +747,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -804,12 +804,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -860,11 +860,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -916,11 +916,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -972,11 +972,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1031,11 +1031,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1095,11 +1095,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1161,11 +1161,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1213,11 +1213,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1262,11 +1262,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1322,12 +1322,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1386,12 +1386,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
var bytes = response.RawBytes;
|
var bytes = response.RawBytes;
|
||||||
if (response.Headers != null)
|
if (response.Headers != null)
|
||||||
{
|
{
|
||||||
var filePath = String.IsNullOrEmpty(_configuration.TempFolderPath)
|
var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath)
|
||||||
? Path.GetTempPath()
|
? Path.GetTempPath()
|
||||||
: _configuration.TempFolderPath;
|
: _configuration.TempFolderPath;
|
||||||
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
||||||
@ -131,7 +131,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
|
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
||||||
{
|
{
|
||||||
return Convert.ChangeType(response.Content, type);
|
return Convert.ChangeType(response.Content, type);
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class ApiClient : ISynchronousClient, IAsynchronousClient
|
public partial class ApiClient : ISynchronousClient, IAsynchronousClient
|
||||||
{
|
{
|
||||||
private readonly String _baseUrl;
|
private readonly string _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
@ -208,7 +208,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
public ApiClient(String basePath)
|
public ApiClient(string basePath)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(basePath))
|
if (string.IsNullOrEmpty(basePath))
|
||||||
throw new ArgumentException("basePath cannot be empty");
|
throw new ArgumentException("basePath cannot be empty");
|
||||||
@ -269,7 +269,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <exception cref="ArgumentNullException"></exception>
|
/// <exception cref="ArgumentNullException"></exception>
|
||||||
private RestRequest NewRequest(
|
private RestRequest NewRequest(
|
||||||
HttpMethod method,
|
HttpMethod method,
|
||||||
String path,
|
string path,
|
||||||
RequestOptions options,
|
RequestOptions options,
|
||||||
IReadableConfiguration configuration)
|
IReadableConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any error text defined by the calling client.
|
/// Gets or sets any error text defined by the calling client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
String ErrorText { get; set; }
|
string ErrorText { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any cookies passed along on the response.
|
/// Gets or sets any cookies passed along on the response.
|
||||||
@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any error text defined by the calling client.
|
/// Gets or sets any error text defined by the calling client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public String ErrorText { get; set; }
|
public string ErrorText { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any cookies passed along on the response.
|
/// Gets or sets any cookies passed along on the response.
|
||||||
|
@ -124,7 +124,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// URL encode a string
|
/// URL encode a string
|
||||||
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input">String to be URL encoded</param>
|
/// <param name="input">string to be URL encoded</param>
|
||||||
/// <returns>Byte array</returns>
|
/// <returns>Byte array</returns>
|
||||||
public static string UrlEncode(string input)
|
public static string UrlEncode(string input)
|
||||||
{
|
{
|
||||||
@ -158,7 +158,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Encode string in base64 format.
|
/// Encode string in base64 format.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="text">String to be encoded.</param>
|
/// <param name="text">string to be encoded.</param>
|
||||||
/// <returns>Encoded string.</returns>
|
/// <returns>Encoded string.</returns>
|
||||||
public static string Base64Encode(string text)
|
public static string Base64Encode(string text)
|
||||||
{
|
{
|
||||||
@ -186,7 +186,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
||||||
/// <returns>The Content-Type header to use.</returns>
|
/// <returns>The Content-Type header to use.</returns>
|
||||||
public static String SelectHeaderContentType(String[] contentTypes)
|
public static string SelectHeaderContentType(string[] contentTypes)
|
||||||
{
|
{
|
||||||
if (contentTypes.Length == 0)
|
if (contentTypes.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="accepts">The accepts array to select from.</param>
|
/// <param name="accepts">The accepts array to select from.</param>
|
||||||
/// <returns>The Accept header to use.</returns>
|
/// <returns>The Accept header to use.</returns>
|
||||||
public static String SelectHeaderAccept(String[] accepts)
|
public static string SelectHeaderAccept(string[] accepts)
|
||||||
{
|
{
|
||||||
if (accepts.Length == 0)
|
if (accepts.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
@ -215,7 +215,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
||||||
return "application/json";
|
return "application/json";
|
||||||
|
|
||||||
return String.Join(",", accepts);
|
return string.Join(",", accepts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -233,9 +233,9 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="mime">MIME</param>
|
/// <param name="mime">MIME</param>
|
||||||
/// <returns>Returns True if MIME type is json.</returns>
|
/// <returns>Returns True if MIME type is json.</returns>
|
||||||
public static bool IsJsonMime(String mime)
|
public static bool IsJsonMime(string mime)
|
||||||
{
|
{
|
||||||
if (String.IsNullOrWhiteSpace(mime)) return false;
|
if (string.IsNullOrWhiteSpace(mime)) return false;
|
||||||
|
|
||||||
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// Defines the base path of the target API server.
|
/// Defines the base path of the target API server.
|
||||||
/// Example: http://localhost:3000/v1/
|
/// Example: http://localhost:3000/v1/
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private String _basePath;
|
private string _basePath;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API key based on the authentication name.
|
/// Gets or sets the API key based on the authentication name.
|
||||||
@ -516,9 +516,9 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a string with essential information for debugging.
|
/// Returns a string with essential information for debugging.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static String ToDebugReport()
|
public static string ToDebugReport()
|
||||||
{
|
{
|
||||||
String report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
|
string report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
|
||||||
report += " OS: " + System.Environment.OSVersion + "\n";
|
report += " OS: " + System.Environment.OSVersion + "\n";
|
||||||
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
||||||
report += " Version of the API: 1.0.0\n";
|
report += " Version of the API: 1.0.0\n";
|
||||||
|
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var httpValues = HttpUtility.ParseQueryString(String.Empty);
|
var httpValues = HttpUtility.ParseQueryString(string.Empty);
|
||||||
foreach (var parameter in requestOptions.QueryParameters)
|
foreach (var parameter in requestOptions.QueryParameters)
|
||||||
{
|
{
|
||||||
#if (NETCOREAPP)
|
#if (NETCOREAPP)
|
||||||
@ -153,7 +153,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
string Digest = string.Empty;
|
||||||
|
|
||||||
//get the body
|
//get the body
|
||||||
string requestBody = string.Empty;
|
string requestBody = string.Empty;
|
||||||
@ -230,7 +230,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
var headersKeysString = String.Join(" ", HttpSignatureHeader.Keys);
|
var headersKeysString = string.Join(" ", HttpSignatureHeader.Keys);
|
||||||
var headerValuesList = new List<string>();
|
var headerValuesList = new List<string>();
|
||||||
|
|
||||||
foreach (var keyVal in HttpSignatureHeader)
|
foreach (var keyVal in HttpSignatureHeader)
|
||||||
@ -411,10 +411,10 @@ namespace Org.OpenAPITools.Client
|
|||||||
return derBytes.ToArray();
|
return derBytes.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile, SecureString keyPassPharse = null)
|
private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPharse = null)
|
||||||
{
|
{
|
||||||
const String pempubheader = "-----BEGIN PUBLIC KEY-----";
|
const string pempubheader = "-----BEGIN PUBLIC KEY-----";
|
||||||
const String pempubfooter = "-----END PUBLIC KEY-----";
|
const string pempubfooter = "-----END PUBLIC KEY-----";
|
||||||
bool isPrivateKeyFile = true;
|
bool isPrivateKeyFile = true;
|
||||||
byte[] pemkey = null;
|
byte[] pemkey = null;
|
||||||
|
|
||||||
@ -441,11 +441,11 @@ namespace Org.OpenAPITools.Client
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPharse = null)
|
private byte[] ConvertPrivateKeyToBytes(string instr, SecureString keyPassPharse = null)
|
||||||
{
|
{
|
||||||
const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
const string pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
||||||
const String pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
const string pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
||||||
String pemstr = instr.Trim();
|
string pemstr = instr.Trim();
|
||||||
byte[] binkey;
|
byte[] binkey;
|
||||||
|
|
||||||
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
||||||
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
StringBuilder sb = new StringBuilder(pemstr);
|
StringBuilder sb = new StringBuilder(pemstr);
|
||||||
sb.Replace(pemprivheader, "");
|
sb.Replace(pemprivheader, "");
|
||||||
sb.Replace(pemprivfooter, "");
|
sb.Replace(pemprivfooter, "");
|
||||||
String pvkstr = sb.ToString().Trim();
|
string pvkstr = sb.ToString().Trim();
|
||||||
|
|
||||||
try
|
try
|
||||||
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
||||||
@ -472,12 +472,12 @@ namespace Org.OpenAPITools.Client
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String saltline = str.ReadLine();
|
string saltline = str.ReadLine();
|
||||||
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
string saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
||||||
byte[] salt = new byte[saltstr.Length / 2];
|
byte[] salt = new byte[saltstr.Length / 2];
|
||||||
for (int i = 0; i < salt.Length; i++)
|
for (int i = 0; i < salt.Length; i++)
|
||||||
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
||||||
@ -487,7 +487,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
//------ remaining b64 data is encrypted RSA key ----
|
//------ remaining b64 data is encrypted RSA key ----
|
||||||
String encryptedstr = str.ReadToEnd();
|
string encryptedstr = str.ReadToEnd();
|
||||||
|
|
||||||
try
|
try
|
||||||
{ //should have b64 encrypted RSA key now
|
{ //should have b64 encrypted RSA key now
|
||||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
String GetBasePath();
|
string GetBasePath();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides a factory method hook for the creation of exceptions.
|
/// Provides a factory method hook for the creation of exceptions.
|
||||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> GetAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
||||||
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PostAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||||
@ -51,7 +51,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PutAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||||
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> DeleteAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||||
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> HeadAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||||
@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> OptionsAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||||
@ -95,6 +95,6 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PatchAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Get<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Get<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Post<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Post<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||||
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Put<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Put<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||||
@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Delete<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Delete<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||||
@ -68,7 +68,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Head<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Head<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||||
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Options<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Options<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||||
@ -88,6 +88,6 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Patch<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,29 +24,29 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parameters to be bound to path parts of the Request's URL
|
/// Parameters to be bound to path parts of the Request's URL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> PathParameters { get; set; }
|
public Dictionary<string, string> PathParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Query parameters to be applied to the request.
|
/// Query parameters to be applied to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> QueryParameters { get; set; }
|
public Multimap<string, string> QueryParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Header parameters to be applied to to the request.
|
/// Header parameters to be applied to to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> HeaderParameters { get; set; }
|
public Multimap<string, string> HeaderParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Form parameters to be sent along with the request.
|
/// Form parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> FormParameters { get; set; }
|
public Dictionary<string, string> FormParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// File parameters to be sent along with the request.
|
/// File parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, Stream> FileParameters { get; set; }
|
public Dictionary<string, Stream> FileParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cookies to be sent along with the request.
|
/// Cookies to be sent along with the request.
|
||||||
@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
QueryParameters = new Multimap<string, string>();
|
QueryParameters = new Multimap<string, string>();
|
||||||
HeaderParameters = new Multimap<string, string>();
|
HeaderParameters = new Multimap<string, string>();
|
||||||
FormParameters = new Dictionary<string, string>();
|
FormParameters = new Dictionary<string, string>();
|
||||||
FileParameters = new Dictionary<String, Stream>();
|
FileParameters = new Dictionary<string, Stream>();
|
||||||
Cookies = new List<Cookie>();
|
Cookies = new List<Cookie>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -257,7 +257,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -191,7 +191,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -266,7 +266,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// no match found, throw an exception
|
// no match found, throw an exception
|
||||||
@ -229,7 +229,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newMammal = new Mammal(JsonConvert.DeserializeObject<Zebra>(jsonString, Mammal.AdditionalPropertiesSerializerSettings));
|
newMammal = new Mammal(JsonConvert.DeserializeObject<Zebra>(jsonString, Mammal.AdditionalPropertiesSerializerSettings));
|
||||||
return newMammal;
|
return newMammal;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -227,7 +227,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -322,7 +322,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newNullableShape = new NullableShape(JsonConvert.DeserializeObject<Triangle>(jsonString, NullableShape.AdditionalPropertiesSerializerSettings));
|
newNullableShape = new NullableShape(JsonConvert.DeserializeObject<Triangle>(jsonString, NullableShape.AdditionalPropertiesSerializerSettings));
|
||||||
return newNullableShape;
|
return newNullableShape;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -282,7 +282,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newPig = new Pig(JsonConvert.DeserializeObject<DanishPig>(jsonString, Pig.AdditionalPropertiesSerializerSettings));
|
newPig = new Pig(JsonConvert.DeserializeObject<DanishPig>(jsonString, Pig.AdditionalPropertiesSerializerSettings));
|
||||||
return newPig;
|
return newPig;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newQuadrilateral = new Quadrilateral(JsonConvert.DeserializeObject<SimpleQuadrilateral>(jsonString, Quadrilateral.AdditionalPropertiesSerializerSettings));
|
newQuadrilateral = new Quadrilateral(JsonConvert.DeserializeObject<SimpleQuadrilateral>(jsonString, Quadrilateral.AdditionalPropertiesSerializerSettings));
|
||||||
return newQuadrilateral;
|
return newQuadrilateral;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newShape = new Shape(JsonConvert.DeserializeObject<Triangle>(jsonString, Shape.AdditionalPropertiesSerializerSettings));
|
newShape = new Shape(JsonConvert.DeserializeObject<Triangle>(jsonString, Shape.AdditionalPropertiesSerializerSettings));
|
||||||
return newShape;
|
return newShape;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newShapeOrNull = new ShapeOrNull(JsonConvert.DeserializeObject<Triangle>(jsonString, ShapeOrNull.AdditionalPropertiesSerializerSettings));
|
newShapeOrNull = new ShapeOrNull(JsonConvert.DeserializeObject<Triangle>(jsonString, ShapeOrNull.AdditionalPropertiesSerializerSettings));
|
||||||
return newShapeOrNull;
|
return newShapeOrNull;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -282,7 +282,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newTriangle = new Triangle(JsonConvert.DeserializeObject<ScaleneTriangle>(jsonString, Triangle.AdditionalPropertiesSerializerSettings));
|
newTriangle = new Triangle(JsonConvert.DeserializeObject<ScaleneTriangle>(jsonString, Triangle.AdditionalPropertiesSerializerSettings));
|
||||||
return newTriangle;
|
return newTriangle;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -227,7 +227,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -322,7 +322,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="AnotherFakeApi"/> class.
|
/// Initializes a new instance of the <see cref="AnotherFakeApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public AnotherFakeApi(String basePath)
|
public AnotherFakeApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -284,12 +284,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public DefaultApi(String basePath)
|
public DefaultApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -165,7 +165,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -212,11 +212,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -263,11 +263,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -826,7 +826,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="FakeApi"/> class.
|
/// Initializes a new instance of the <see cref="FakeApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public FakeApi(String basePath)
|
public FakeApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -889,7 +889,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -936,11 +936,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -987,11 +987,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1039,12 +1039,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1094,12 +1094,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1148,12 +1148,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1203,12 +1203,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1257,12 +1257,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1312,12 +1312,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1366,12 +1366,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1421,12 +1421,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1473,11 +1473,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1524,11 +1524,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1579,12 +1579,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1636,12 +1636,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1698,12 +1698,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1762,12 +1762,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1820,12 +1820,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1879,12 +1879,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1966,12 +1966,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2027,7 +2027,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
@ -2102,12 +2102,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2164,7 +2164,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
@ -2217,12 +2217,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2315,12 +2315,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2408,11 +2408,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2439,7 +2439,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (bearer_test) required
|
// authentication (bearer_test) required
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -2490,11 +2490,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2522,7 +2522,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (bearer_test) required
|
// authentication (bearer_test) required
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -2565,12 +2565,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2622,12 +2622,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2684,12 +2684,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2748,12 +2748,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2829,11 +2829,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2913,11 +2913,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="FakeClassnameTags123Api"/> class.
|
/// Initializes a new instance of the <see cref="FakeClassnameTags123Api"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public FakeClassnameTags123Api(String basePath)
|
public FakeClassnameTags123Api(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.Data = modelClient;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||||
}
|
}
|
||||||
@ -289,12 +289,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.Data = modelClient;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||||
}
|
}
|
||||||
|
@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="PetApi"/> class.
|
/// Initializes a new instance of the <see cref="PetApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public PetApi(String basePath)
|
public PetApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -534,7 +534,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -586,13 +586,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -621,7 +621,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -666,13 +666,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -702,7 +702,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -743,11 +743,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -764,7 +764,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -807,11 +807,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -829,7 +829,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -873,11 +873,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -908,7 +908,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -954,11 +954,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -990,7 +990,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1034,11 +1034,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1069,7 +1069,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1115,11 +1115,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1151,7 +1151,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1191,11 +1191,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1209,7 +1209,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -1251,11 +1251,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1270,7 +1270,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -1313,13 +1313,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1348,7 +1348,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1393,13 +1393,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1429,7 +1429,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1472,12 +1472,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1498,7 +1498,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1543,12 +1543,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1570,7 +1570,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1614,12 +1614,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1641,7 +1641,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1687,12 +1687,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1715,7 +1715,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1763,12 +1763,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1787,7 +1787,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1837,12 +1837,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1862,7 +1862,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="StoreApi"/> class.
|
/// Initializes a new instance of the <see cref="StoreApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public StoreApi(String basePath)
|
public StoreApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -297,7 +297,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -349,11 +349,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -405,11 +405,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -455,11 +455,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -511,11 +511,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -528,7 +528,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -568,11 +568,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -623,11 +623,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -681,12 +681,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -741,12 +741,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
@ -406,7 +406,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="UserApi"/> class.
|
/// Initializes a new instance of the <see cref="UserApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public UserApi(String basePath)
|
public UserApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -469,7 +469,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -521,12 +521,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -578,12 +578,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -634,12 +634,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -691,12 +691,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -747,12 +747,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -804,12 +804,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -860,11 +860,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -916,11 +916,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -972,11 +972,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1031,11 +1031,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1095,11 +1095,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1161,11 +1161,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1213,11 +1213,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1262,11 +1262,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1322,12 +1322,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1386,12 +1386,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
var bytes = response.RawBytes;
|
var bytes = response.RawBytes;
|
||||||
if (response.Headers != null)
|
if (response.Headers != null)
|
||||||
{
|
{
|
||||||
var filePath = String.IsNullOrEmpty(_configuration.TempFolderPath)
|
var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath)
|
||||||
? Path.GetTempPath()
|
? Path.GetTempPath()
|
||||||
: _configuration.TempFolderPath;
|
: _configuration.TempFolderPath;
|
||||||
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
|
||||||
@ -131,7 +131,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
|
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
||||||
{
|
{
|
||||||
return Convert.ChangeType(response.Content, type);
|
return Convert.ChangeType(response.Content, type);
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class ApiClient : ISynchronousClient, IAsynchronousClient
|
public partial class ApiClient : ISynchronousClient, IAsynchronousClient
|
||||||
{
|
{
|
||||||
private readonly String _baseUrl;
|
private readonly string _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
@ -208,7 +208,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="basePath">The target service's base path in URL format.</param>
|
/// <param name="basePath">The target service's base path in URL format.</param>
|
||||||
/// <exception cref="ArgumentException"></exception>
|
/// <exception cref="ArgumentException"></exception>
|
||||||
public ApiClient(String basePath)
|
public ApiClient(string basePath)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(basePath))
|
if (string.IsNullOrEmpty(basePath))
|
||||||
throw new ArgumentException("basePath cannot be empty");
|
throw new ArgumentException("basePath cannot be empty");
|
||||||
@ -269,7 +269,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <exception cref="ArgumentNullException"></exception>
|
/// <exception cref="ArgumentNullException"></exception>
|
||||||
private RestRequest NewRequest(
|
private RestRequest NewRequest(
|
||||||
HttpMethod method,
|
HttpMethod method,
|
||||||
String path,
|
string path,
|
||||||
RequestOptions options,
|
RequestOptions options,
|
||||||
IReadableConfiguration configuration)
|
IReadableConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any error text defined by the calling client.
|
/// Gets or sets any error text defined by the calling client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
String ErrorText { get; set; }
|
string ErrorText { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any cookies passed along on the response.
|
/// Gets or sets any cookies passed along on the response.
|
||||||
@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any error text defined by the calling client.
|
/// Gets or sets any error text defined by the calling client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public String ErrorText { get; set; }
|
public string ErrorText { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets any cookies passed along on the response.
|
/// Gets or sets any cookies passed along on the response.
|
||||||
|
@ -124,7 +124,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// URL encode a string
|
/// URL encode a string
|
||||||
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input">String to be URL encoded</param>
|
/// <param name="input">string to be URL encoded</param>
|
||||||
/// <returns>Byte array</returns>
|
/// <returns>Byte array</returns>
|
||||||
public static string UrlEncode(string input)
|
public static string UrlEncode(string input)
|
||||||
{
|
{
|
||||||
@ -158,7 +158,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Encode string in base64 format.
|
/// Encode string in base64 format.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="text">String to be encoded.</param>
|
/// <param name="text">string to be encoded.</param>
|
||||||
/// <returns>Encoded string.</returns>
|
/// <returns>Encoded string.</returns>
|
||||||
public static string Base64Encode(string text)
|
public static string Base64Encode(string text)
|
||||||
{
|
{
|
||||||
@ -186,7 +186,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
/// <param name="contentTypes">The Content-Type array to select from.</param>
|
||||||
/// <returns>The Content-Type header to use.</returns>
|
/// <returns>The Content-Type header to use.</returns>
|
||||||
public static String SelectHeaderContentType(String[] contentTypes)
|
public static string SelectHeaderContentType(string[] contentTypes)
|
||||||
{
|
{
|
||||||
if (contentTypes.Length == 0)
|
if (contentTypes.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="accepts">The accepts array to select from.</param>
|
/// <param name="accepts">The accepts array to select from.</param>
|
||||||
/// <returns>The Accept header to use.</returns>
|
/// <returns>The Accept header to use.</returns>
|
||||||
public static String SelectHeaderAccept(String[] accepts)
|
public static string SelectHeaderAccept(string[] accepts)
|
||||||
{
|
{
|
||||||
if (accepts.Length == 0)
|
if (accepts.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
@ -215,7 +215,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
|
||||||
return "application/json";
|
return "application/json";
|
||||||
|
|
||||||
return String.Join(",", accepts);
|
return string.Join(",", accepts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -233,9 +233,9 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="mime">MIME</param>
|
/// <param name="mime">MIME</param>
|
||||||
/// <returns>Returns True if MIME type is json.</returns>
|
/// <returns>Returns True if MIME type is json.</returns>
|
||||||
public static bool IsJsonMime(String mime)
|
public static bool IsJsonMime(string mime)
|
||||||
{
|
{
|
||||||
if (String.IsNullOrWhiteSpace(mime)) return false;
|
if (string.IsNullOrWhiteSpace(mime)) return false;
|
||||||
|
|
||||||
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json");
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// Defines the base path of the target API server.
|
/// Defines the base path of the target API server.
|
||||||
/// Example: http://localhost:3000/v1/
|
/// Example: http://localhost:3000/v1/
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private String _basePath;
|
private string _basePath;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API key based on the authentication name.
|
/// Gets or sets the API key based on the authentication name.
|
||||||
@ -516,9 +516,9 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a string with essential information for debugging.
|
/// Returns a string with essential information for debugging.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static String ToDebugReport()
|
public static string ToDebugReport()
|
||||||
{
|
{
|
||||||
String report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
|
string report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
|
||||||
report += " OS: " + System.Environment.OSVersion + "\n";
|
report += " OS: " + System.Environment.OSVersion + "\n";
|
||||||
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
report += " .NET Framework Version: " + System.Environment.Version + "\n";
|
||||||
report += " Version of the API: 1.0.0\n";
|
report += " Version of the API: 1.0.0\n";
|
||||||
|
@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var httpValues = HttpUtility.ParseQueryString(String.Empty);
|
var httpValues = HttpUtility.ParseQueryString(string.Empty);
|
||||||
foreach (var parameter in requestOptions.QueryParameters)
|
foreach (var parameter in requestOptions.QueryParameters)
|
||||||
{
|
{
|
||||||
#if (NETCOREAPP)
|
#if (NETCOREAPP)
|
||||||
@ -153,7 +153,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
string Digest = string.Empty;
|
||||||
|
|
||||||
//get the body
|
//get the body
|
||||||
string requestBody = string.Empty;
|
string requestBody = string.Empty;
|
||||||
@ -230,7 +230,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
var headersKeysString = String.Join(" ", HttpSignatureHeader.Keys);
|
var headersKeysString = string.Join(" ", HttpSignatureHeader.Keys);
|
||||||
var headerValuesList = new List<string>();
|
var headerValuesList = new List<string>();
|
||||||
|
|
||||||
foreach (var keyVal in HttpSignatureHeader)
|
foreach (var keyVal in HttpSignatureHeader)
|
||||||
@ -411,10 +411,10 @@ namespace Org.OpenAPITools.Client
|
|||||||
return derBytes.ToArray();
|
return derBytes.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile, SecureString keyPassPharse = null)
|
private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPharse = null)
|
||||||
{
|
{
|
||||||
const String pempubheader = "-----BEGIN PUBLIC KEY-----";
|
const string pempubheader = "-----BEGIN PUBLIC KEY-----";
|
||||||
const String pempubfooter = "-----END PUBLIC KEY-----";
|
const string pempubfooter = "-----END PUBLIC KEY-----";
|
||||||
bool isPrivateKeyFile = true;
|
bool isPrivateKeyFile = true;
|
||||||
byte[] pemkey = null;
|
byte[] pemkey = null;
|
||||||
|
|
||||||
@ -441,11 +441,11 @@ namespace Org.OpenAPITools.Client
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPharse = null)
|
private byte[] ConvertPrivateKeyToBytes(string instr, SecureString keyPassPharse = null)
|
||||||
{
|
{
|
||||||
const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
const string pemprivheader = "-----BEGIN RSA PRIVATE KEY-----";
|
||||||
const String pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
const string pemprivfooter = "-----END RSA PRIVATE KEY-----";
|
||||||
String pemstr = instr.Trim();
|
string pemstr = instr.Trim();
|
||||||
byte[] binkey;
|
byte[] binkey;
|
||||||
|
|
||||||
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
if (!pemstr.StartsWith(pemprivheader) || !pemstr.EndsWith(pemprivfooter))
|
||||||
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
StringBuilder sb = new StringBuilder(pemstr);
|
StringBuilder sb = new StringBuilder(pemstr);
|
||||||
sb.Replace(pemprivheader, "");
|
sb.Replace(pemprivheader, "");
|
||||||
sb.Replace(pemprivfooter, "");
|
sb.Replace(pemprivfooter, "");
|
||||||
String pvkstr = sb.ToString().Trim();
|
string pvkstr = sb.ToString().Trim();
|
||||||
|
|
||||||
try
|
try
|
||||||
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
{ // if there are no PEM encryption info lines, this is an UNencrypted PEM private key
|
||||||
@ -472,12 +472,12 @@ namespace Org.OpenAPITools.Client
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String saltline = str.ReadLine();
|
string saltline = str.ReadLine();
|
||||||
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
if (!saltline.StartsWith("DEK-Info: DES-EDE3-CBC,"))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
string saltstr = saltline.Substring(saltline.IndexOf(",") + 1).Trim();
|
||||||
byte[] salt = new byte[saltstr.Length / 2];
|
byte[] salt = new byte[saltstr.Length / 2];
|
||||||
for (int i = 0; i < salt.Length; i++)
|
for (int i = 0; i < salt.Length; i++)
|
||||||
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
||||||
@ -487,7 +487,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
//------ remaining b64 data is encrypted RSA key ----
|
//------ remaining b64 data is encrypted RSA key ----
|
||||||
String encryptedstr = str.ReadToEnd();
|
string encryptedstr = str.ReadToEnd();
|
||||||
|
|
||||||
try
|
try
|
||||||
{ //should have b64 encrypted RSA key now
|
{ //should have b64 encrypted RSA key now
|
||||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
String GetBasePath();
|
string GetBasePath();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides a factory method hook for the creation of exceptions.
|
/// Provides a factory method hook for the creation of exceptions.
|
||||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> GetAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb.
|
||||||
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PostAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||||
@ -51,7 +51,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PutAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||||
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> DeleteAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||||
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> HeadAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||||
@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> OptionsAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
/// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||||
@ -95,6 +95,6 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
Task<ApiResponse<T>> PatchAsync<T>(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Get<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Get<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the POST http verb.
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Post<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Post<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the PUT http verb.
|
||||||
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Put<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Put<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the DELETE http verb.
|
||||||
@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Delete<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Delete<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the HEAD http verb.
|
||||||
@ -68,7 +68,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Head<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Head<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the OPTIONS http verb.
|
||||||
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Options<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Options<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
/// Executes a blocking call to some <paramref name="path"/> using the PATCH http verb.
|
||||||
@ -88,6 +88,6 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <param name="configuration">Per-request configurable settings.</param>
|
/// <param name="configuration">Per-request configurable settings.</param>
|
||||||
/// <typeparam name="T">The return type.</typeparam>
|
/// <typeparam name="T">The return type.</typeparam>
|
||||||
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
/// <returns>The response data, decorated with <see cref="ApiResponse{T}"/></returns>
|
||||||
ApiResponse<T> Patch<T>(String path, RequestOptions options, IReadableConfiguration configuration = null);
|
ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableConfiguration configuration = null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,29 +24,29 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parameters to be bound to path parts of the Request's URL
|
/// Parameters to be bound to path parts of the Request's URL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> PathParameters { get; set; }
|
public Dictionary<string, string> PathParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Query parameters to be applied to the request.
|
/// Query parameters to be applied to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> QueryParameters { get; set; }
|
public Multimap<string, string> QueryParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Header parameters to be applied to to the request.
|
/// Header parameters to be applied to to the request.
|
||||||
/// Keys may have 1 or more values associated.
|
/// Keys may have 1 or more values associated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Multimap<String, String> HeaderParameters { get; set; }
|
public Multimap<string, string> HeaderParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Form parameters to be sent along with the request.
|
/// Form parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, String> FormParameters { get; set; }
|
public Dictionary<string, string> FormParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// File parameters to be sent along with the request.
|
/// File parameters to be sent along with the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<String, Stream> FileParameters { get; set; }
|
public Dictionary<string, Stream> FileParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cookies to be sent along with the request.
|
/// Cookies to be sent along with the request.
|
||||||
@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
QueryParameters = new Multimap<string, string>();
|
QueryParameters = new Multimap<string, string>();
|
||||||
HeaderParameters = new Multimap<string, string>();
|
HeaderParameters = new Multimap<string, string>();
|
||||||
FormParameters = new Dictionary<string, string>();
|
FormParameters = new Dictionary<string, string>();
|
||||||
FileParameters = new Dictionary<String, Stream>();
|
FileParameters = new Dictionary<string, Stream>();
|
||||||
Cookies = new List<Cookie>();
|
Cookies = new List<Cookie>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -257,7 +257,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Fruit).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into AppleReq: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -191,7 +191,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BananaReq: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -266,7 +266,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(FruitReq).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Apple: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Banana: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// no match found, throw an exception
|
// no match found, throw an exception
|
||||||
@ -229,7 +229,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(GmFruit).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newMammal = new Mammal(JsonConvert.DeserializeObject<Zebra>(jsonString, Mammal.AdditionalPropertiesSerializerSettings));
|
newMammal = new Mammal(JsonConvert.DeserializeObject<Zebra>(jsonString, Mammal.AdditionalPropertiesSerializerSettings));
|
||||||
return newMammal;
|
return newMammal;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Mammal. Possible values: Pig whale zebra", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Pig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -227,7 +227,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Whale: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Zebra: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -322,7 +322,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Mammal).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newNullableShape = new NullableShape(JsonConvert.DeserializeObject<Triangle>(jsonString, NullableShape.AdditionalPropertiesSerializerSettings));
|
newNullableShape = new NullableShape(JsonConvert.DeserializeObject<Triangle>(jsonString, NullableShape.AdditionalPropertiesSerializerSettings));
|
||||||
return newNullableShape;
|
return newNullableShape;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for NullableShape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -282,7 +282,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(NullableShape).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newPig = new Pig(JsonConvert.DeserializeObject<DanishPig>(jsonString, Pig.AdditionalPropertiesSerializerSettings));
|
newPig = new Pig(JsonConvert.DeserializeObject<DanishPig>(jsonString, Pig.AdditionalPropertiesSerializerSettings));
|
||||||
return newPig;
|
return newPig;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Pig. Possible values: BasquePig DanishPig", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BasquePig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into DanishPig: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Pig).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newQuadrilateral = new Quadrilateral(JsonConvert.DeserializeObject<SimpleQuadrilateral>(jsonString, Quadrilateral.AdditionalPropertiesSerializerSettings));
|
newQuadrilateral = new Quadrilateral(JsonConvert.DeserializeObject<SimpleQuadrilateral>(jsonString, Quadrilateral.AdditionalPropertiesSerializerSettings));
|
||||||
return newQuadrilateral;
|
return newQuadrilateral;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Quadrilateral. Possible values: ComplexQuadrilateral SimpleQuadrilateral", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ComplexQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into SimpleQuadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Quadrilateral).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newShape = new Shape(JsonConvert.DeserializeObject<Triangle>(jsonString, Shape.AdditionalPropertiesSerializerSettings));
|
newShape = new Shape(JsonConvert.DeserializeObject<Triangle>(jsonString, Shape.AdditionalPropertiesSerializerSettings));
|
||||||
return newShape;
|
return newShape;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Shape. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -273,7 +273,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Shape).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newShapeOrNull = new ShapeOrNull(JsonConvert.DeserializeObject<Triangle>(jsonString, ShapeOrNull.AdditionalPropertiesSerializerSettings));
|
newShapeOrNull = new ShapeOrNull(JsonConvert.DeserializeObject<Triangle>(jsonString, ShapeOrNull.AdditionalPropertiesSerializerSettings));
|
||||||
return newShapeOrNull;
|
return newShapeOrNull;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for ShapeOrNull. Possible values: Quadrilateral Triangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Quadrilateral: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Triangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -282,7 +282,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(ShapeOrNull).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
newTriangle = new Triangle(JsonConvert.DeserializeObject<ScaleneTriangle>(jsonString, Triangle.AdditionalPropertiesSerializerSettings));
|
newTriangle = new Triangle(JsonConvert.DeserializeObject<ScaleneTriangle>(jsonString, Triangle.AdditionalPropertiesSerializerSettings));
|
||||||
return newTriangle;
|
return newTriangle;
|
||||||
default:
|
default:
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for Triangle. Possible values: EquilateralTriangle IsoscelesTriangle ScaleneTriangle", discriminatorValue));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into EquilateralTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -227,7 +227,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into IsoscelesTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
// deserialization failed, try the next one
|
// deserialization failed, try the next one
|
||||||
System.Diagnostics.Debug.WriteLine(String.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
|
System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ScaleneTriangle: {1}", jsonString, exception.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == 0)
|
if (match == 0)
|
||||||
@ -322,7 +322,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="serializer">JSON Serializer</param>
|
/// <param name="serializer">JSON Serializer</param>
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue((String)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
|
writer.WriteRawValue((string)(typeof(Triangle).GetMethod("ToJson").Invoke(value, null)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="AnotherFakeApi"/> class.
|
/// Initializes a new instance of the <see cref="AnotherFakeApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public AnotherFakeApi(String basePath)
|
public AnotherFakeApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -284,12 +284,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
/// Initializes a new instance of the <see cref="DefaultApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public DefaultApi(String basePath)
|
public DefaultApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -165,7 +165,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -212,11 +212,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -263,11 +263,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -826,7 +826,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="FakeApi"/> class.
|
/// Initializes a new instance of the <see cref="FakeApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public FakeApi(String basePath)
|
public FakeApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -889,7 +889,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -936,11 +936,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -987,11 +987,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1039,12 +1039,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1094,12 +1094,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1148,12 +1148,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1203,12 +1203,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1257,12 +1257,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1312,12 +1312,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1366,12 +1366,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1421,12 +1421,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"*/*"
|
"*/*"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1473,11 +1473,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1524,11 +1524,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1579,12 +1579,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1636,12 +1636,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1698,12 +1698,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1762,12 +1762,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1820,12 +1820,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1879,12 +1879,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1966,12 +1966,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2027,7 +2027,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
@ -2102,12 +2102,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2164,7 +2164,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
|
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Org.OpenAPITools.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
|
||||||
}
|
}
|
||||||
@ -2217,12 +2217,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2315,12 +2315,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2408,11 +2408,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2439,7 +2439,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (bearer_test) required
|
// authentication (bearer_test) required
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -2490,11 +2490,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2522,7 +2522,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (bearer_test) required
|
// authentication (bearer_test) required
|
||||||
// bearer authentication required
|
// bearer authentication required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -2565,12 +2565,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2622,12 +2622,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2684,12 +2684,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2748,12 +2748,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2829,11 +2829,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -2913,11 +2913,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="FakeClassnameTags123Api"/> class.
|
/// Initializes a new instance of the <see cref="FakeClassnameTags123Api"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public FakeClassnameTags123Api(String basePath)
|
public FakeClassnameTags123Api(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -225,12 +225,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.Data = modelClient;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||||
}
|
}
|
||||||
@ -289,12 +289,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.Data = modelClient;
|
localVarRequestOptions.Data = modelClient;
|
||||||
|
|
||||||
// authentication (api_key_query) required
|
// authentication (api_key_query) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key_query")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "api_key_query", this.Configuration.GetApiKeyWithPrefix("api_key_query")));
|
||||||
}
|
}
|
||||||
|
@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="PetApi"/> class.
|
/// Initializes a new instance of the <see cref="PetApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public PetApi(String basePath)
|
public PetApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -534,7 +534,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -586,13 +586,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -621,7 +621,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -666,13 +666,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -702,7 +702,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -743,11 +743,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -764,7 +764,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -807,11 +807,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -829,7 +829,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -873,11 +873,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -908,7 +908,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -954,11 +954,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -990,7 +990,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1034,11 +1034,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1069,7 +1069,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1115,11 +1115,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1151,7 +1151,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1191,11 +1191,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1209,7 +1209,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -1251,11 +1251,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1270,7 +1270,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -1313,13 +1313,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1348,7 +1348,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1393,13 +1393,13 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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",
|
"application/json",
|
||||||
"application/xml"
|
"application/xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1429,7 +1429,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
}
|
}
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1472,12 +1472,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1498,7 +1498,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1543,12 +1543,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"application/x-www-form-urlencoded"
|
"application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1570,7 +1570,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1614,12 +1614,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1641,7 +1641,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1687,12 +1687,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1715,7 +1715,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1763,12 +1763,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1787,7 +1787,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
@ -1837,12 +1837,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||||
|
|
||||||
String[] _contentTypes = new String[] {
|
string[] _contentTypes = new string[] {
|
||||||
"multipart/form-data"
|
"multipart/form-data"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1862,7 +1862,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
// authentication (petstore_auth) required
|
// authentication (petstore_auth) required
|
||||||
// oauth required
|
// oauth required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
|
if (!string.IsNullOrEmpty(this.Configuration.AccessToken))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="StoreApi"/> class.
|
/// Initializes a new instance of the <see cref="StoreApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public StoreApi(String basePath)
|
public StoreApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -297,7 +297,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -349,11 +349,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -405,11 +405,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -455,11 +455,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -471,7 +471,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -511,11 +511,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -528,7 +528,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("api_key")))
|
||||||
{
|
{
|
||||||
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
localVarRequestOptions.HeaderParameters.Add("api_key", this.Configuration.GetApiKeyWithPrefix("api_key"));
|
||||||
}
|
}
|
||||||
@ -568,11 +568,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -623,11 +623,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -681,12 +681,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -741,12 +741,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
@ -406,7 +406,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Initializes a new instance of the <see cref="UserApi"/> class.
|
/// Initializes a new instance of the <see cref="UserApi"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public UserApi(String basePath)
|
public UserApi(string basePath)
|
||||||
{
|
{
|
||||||
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations(
|
||||||
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
Org.OpenAPITools.Client.GlobalConfiguration.Instance,
|
||||||
@ -469,7 +469,7 @@ namespace Org.OpenAPITools.Api
|
|||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public String GetBasePath()
|
public string GetBasePath()
|
||||||
{
|
{
|
||||||
return this.Configuration.BasePath;
|
return this.Configuration.BasePath;
|
||||||
}
|
}
|
||||||
@ -521,12 +521,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -578,12 +578,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -634,12 +634,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -691,12 +691,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -747,12 +747,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -804,12 +804,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -860,11 +860,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -916,11 +916,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -972,11 +972,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1031,11 +1031,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1095,11 +1095,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1161,11 +1161,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/json"
|
"application/json"
|
||||||
};
|
};
|
||||||
@ -1213,11 +1213,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
{
|
{
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1262,11 +1262,11 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1322,12 +1322,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||||
@ -1386,12 +1386,12 @@ namespace Org.OpenAPITools.Api
|
|||||||
|
|
||||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = 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"
|
"application/json"
|
||||||
};
|
};
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
String[] _accepts = new String[] {
|
string[] _accepts = new string[] {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user