diff --git a/DocRaptor.sln b/DocRaptor.sln
index 97573bb..c778bbb 100644
--- a/DocRaptor.sln
+++ b/DocRaptor.sln
@@ -1,10 +1,8 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-VisualStudioVersion = 12.0.0.0
-MinimumVisualStudioVersion = 10.0.0.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocRaptor", "src\DocRaptor\DocRaptor.csproj", "{CFD94733-F020-45EE-B121-AA0CA516F4FD}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocRaptor.Test", "src\DocRaptor.Test\DocRaptor.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32922.545
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DocRaptor", "src\DocRaptor\DocRaptor.csproj", "{0A8810C0-4EB7-4154-9987-2E4EAA55C9A7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -12,16 +10,15 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {CFD94733-F020-45EE-B121-AA0CA516F4FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {CFD94733-F020-45EE-B121-AA0CA516F4FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {CFD94733-F020-45EE-B121-AA0CA516F4FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {CFD94733-F020-45EE-B121-AA0CA516F4FD}.Release|Any CPU.Build.0 = Release|Any CPU
- {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0A8810C0-4EB7-4154-9987-2E4EAA55C9A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0A8810C0-4EB7-4154-9987-2E4EAA55C9A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0A8810C0-4EB7-4154-9987-2E4EAA55C9A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0A8810C0-4EB7-4154-9987-2E4EAA55C9A7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
-EndGlobal
\ No newline at end of file
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {65B918BC-E1D7-41E9-840E-3C41F712F4F1}
+ EndGlobalSection
+EndGlobal
diff --git a/src/DocRaptor/Api/DocApi.cs b/src/DocRaptor/Api/DocApi.cs
index 5aa7af4..0318535 100644
--- a/src/DocRaptor/Api/DocApi.cs
+++ b/src/DocRaptor/Api/DocApi.cs
@@ -12,7 +12,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
-using System.Threading;
using RestSharp;
using DocRaptor.Client;
using DocRaptor.Model;
@@ -32,7 +31,7 @@ public interface IDocApi : IApiAccessor
/// Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// AsyncDoc
AsyncDoc CreateAsyncDoc (Doc doc);
@@ -43,7 +42,7 @@ public interface IDocApi : IApiAccessor
/// Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// ApiResponse of AsyncDoc
ApiResponse CreateAsyncDocWithHttpInfo (Doc doc);
///
@@ -53,7 +52,7 @@ public interface IDocApi : IApiAccessor
/// Creates a document synchronously.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// byte[]
byte[] CreateDoc (Doc doc);
@@ -64,7 +63,7 @@ public interface IDocApi : IApiAccessor
/// Creates a document synchronously.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// ApiResponse of byte[]
ApiResponse CreateDocWithHttpInfo (Doc doc);
///
@@ -74,7 +73,7 @@ public interface IDocApi : IApiAccessor
/// Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// AsyncDoc
AsyncDoc CreateHostedAsyncDoc (Doc doc);
@@ -85,7 +84,7 @@ public interface IDocApi : IApiAccessor
/// Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// ApiResponse of AsyncDoc
ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc);
///
@@ -181,10 +180,9 @@ public interface IDocApi : IApiAccessor
/// Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of AsyncDoc
- System.Threading.Tasks.Task CreateAsyncDocAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task CreateAsyncDocAsync (Doc doc);
///
///
@@ -193,10 +191,9 @@ public interface IDocApi : IApiAccessor
/// Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of ApiResponse (AsyncDoc)
- System.Threading.Tasks.Task> CreateAsyncDocWithHttpInfoAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> CreateAsyncDocAsyncWithHttpInfo (Doc doc);
///
///
///
@@ -204,10 +201,9 @@ public interface IDocApi : IApiAccessor
/// Creates a document synchronously.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of byte[]
- System.Threading.Tasks.Task CreateDocAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task CreateDocAsync (Doc doc);
///
///
@@ -216,10 +212,9 @@ public interface IDocApi : IApiAccessor
/// Creates a document synchronously.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of ApiResponse (byte[])
- System.Threading.Tasks.Task> CreateDocWithHttpInfoAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> CreateDocAsyncWithHttpInfo (Doc doc);
///
///
///
@@ -227,10 +222,9 @@ public interface IDocApi : IApiAccessor
/// Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of AsyncDoc
- System.Threading.Tasks.Task CreateHostedAsyncDocAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task CreateHostedAsyncDocAsync (Doc doc);
///
///
@@ -239,10 +233,9 @@ public interface IDocApi : IApiAccessor
/// Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of ApiResponse (AsyncDoc)
- System.Threading.Tasks.Task> CreateHostedAsyncDocWithHttpInfoAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> CreateHostedAsyncDocAsyncWithHttpInfo (Doc doc);
///
///
///
@@ -251,9 +244,8 @@ public interface IDocApi : IApiAccessor
///
/// Thrown when fails to make API call
/// The document to be created.
- /// Cancellation Token to cancel request (optional)
/// Task of DocStatus
- System.Threading.Tasks.Task CreateHostedDocAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task CreateHostedDocAsync (Doc doc);
///
///
@@ -263,9 +255,8 @@ public interface IDocApi : IApiAccessor
///
/// Thrown when fails to make API call
/// The document to be created.
- /// Cancellation Token to cancel request (optional)
/// Task of ApiResponse (DocStatus)
- System.Threading.Tasks.Task> CreateHostedDocWithHttpInfoAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> CreateHostedDocAsyncWithHttpInfo (Doc doc);
///
///
///
@@ -274,9 +265,8 @@ public interface IDocApi : IApiAccessor
///
/// Thrown when fails to make API call
/// The download_id returned from status request or hosted document response.
- /// Cancellation Token to cancel request (optional)
/// Task of void
- System.Threading.Tasks.Task ExpireAsync (string id, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task ExpireAsync (string id);
///
///
@@ -286,9 +276,8 @@ public interface IDocApi : IApiAccessor
///
/// Thrown when fails to make API call
/// The download_id returned from status request or hosted document response.
- /// Cancellation Token to cancel request (optional)
/// Task of ApiResponse
- System.Threading.Tasks.Task> ExpireWithHttpInfoAsync (string id, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> ExpireAsyncWithHttpInfo (string id);
///
///
///
@@ -297,9 +286,8 @@ public interface IDocApi : IApiAccessor
///
/// Thrown when fails to make API call
/// The download_id returned from an async status request or callback.
- /// Cancellation Token to cancel request (optional)
/// Task of byte[]
- System.Threading.Tasks.Task GetAsyncDocAsync (string id, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task GetAsyncDocAsync (string id);
///
///
@@ -309,9 +297,8 @@ public interface IDocApi : IApiAccessor
///
/// Thrown when fails to make API call
/// The download_id returned from an async status request or callback.
- /// Cancellation Token to cancel request (optional)
/// Task of ApiResponse (byte[])
- System.Threading.Tasks.Task> GetAsyncDocWithHttpInfoAsync (string id, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> GetAsyncDocAsyncWithHttpInfo (string id);
///
///
///
@@ -320,9 +307,8 @@ public interface IDocApi : IApiAccessor
///
/// Thrown when fails to make API call
/// The status_id returned when creating an asynchronous document.
- /// Cancellation Token to cancel request (optional)
/// Task of DocStatus
- System.Threading.Tasks.Task GetAsyncDocStatusAsync (string id, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task GetAsyncDocStatusAsync (string id);
///
///
@@ -332,9 +318,8 @@ public interface IDocApi : IApiAccessor
///
/// Thrown when fails to make API call
/// The status_id returned when creating an asynchronous document.
- /// Cancellation Token to cancel request (optional)
/// Task of ApiResponse (DocStatus)
- System.Threading.Tasks.Task> GetAsyncDocStatusWithHttpInfoAsync (string id, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> GetAsyncDocStatusAsyncWithHttpInfo (string id);
#endregion Asynchronous Operations
}
@@ -356,17 +341,6 @@ public DocApi(String basePath)
ExceptionFactory = DocRaptor.Client.Configuration.DefaultExceptionFactory;
}
- ///
- /// Initializes a new instance of the class
- ///
- ///
- public DocApi()
- {
- this.Configuration = DocRaptor.Client.Configuration.Default;
-
- ExceptionFactory = DocRaptor.Client.Configuration.DefaultExceptionFactory;
- }
-
///
/// Initializes a new instance of the class
/// using Configuration object
@@ -389,7 +363,7 @@ public DocApi(DocRaptor.Client.Configuration configuration = null)
/// The base path
public String GetBasePath()
{
- return this.Configuration.ApiClient.RestClient.BaseUrl.ToString();
+ return this.Configuration.ApiClient.RestClient.Options.BaseUrl?.ToString();
}
///
@@ -450,7 +424,7 @@ public void AddDefaultHeader(string key, string value)
/// Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// AsyncDoc
public AsyncDoc CreateAsyncDoc (Doc doc)
{
@@ -462,9 +436,9 @@ public AsyncDoc CreateAsyncDoc (Doc doc)
/// Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// ApiResponse of AsyncDoc
- public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
+ public ApiResponse< AsyncDoc > CreateAsyncDocWithHttpInfo (Doc doc)
{
// verify the required parameter 'doc' is set
if (doc == null)
@@ -480,13 +454,16 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
+ "application/json",
+ "application/xml",
+ "application/pdf",
+ "application/vnd.ms-excel",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -509,8 +486,8 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
}
// make the HTTP request
- IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
- Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@@ -522,7 +499,7 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ localVarResponse.Headers,
(AsyncDoc) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AsyncDoc)));
}
@@ -530,12 +507,11 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
/// Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of AsyncDoc
- public async System.Threading.Tasks.Task CreateAsyncDocAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task CreateAsyncDocAsync (Doc doc)
{
- ApiResponse localVarResponse = await CreateAsyncDocWithHttpInfoAsync(doc, cancellationToken);
+ ApiResponse localVarResponse = await CreateAsyncDocAsyncWithHttpInfo(doc);
return localVarResponse.Data;
}
@@ -544,10 +520,9 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
/// Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of ApiResponse (AsyncDoc)
- public async System.Threading.Tasks.Task> CreateAsyncDocWithHttpInfoAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> CreateAsyncDocAsyncWithHttpInfo (Doc doc)
{
// verify the required parameter 'doc' is set
if (doc == null)
@@ -563,13 +538,16 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
+ "application/json",
+ "application/xml",
+ "application/pdf",
+ "application/vnd.ms-excel",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -592,9 +570,9 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
}
// make the HTTP request
- IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
- Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
- localVarPathParams, localVarHttpContentType, cancellationToken);
+ RestResponse localVarResponse = (RestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@@ -605,7 +583,7 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ localVarResponse.Headers,
(AsyncDoc) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AsyncDoc)));
}
@@ -613,7 +591,7 @@ public ApiResponse CreateAsyncDocWithHttpInfo (Doc doc)
/// Creates a document synchronously.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// byte[]
public byte[] CreateDoc (Doc doc)
{
@@ -625,9 +603,9 @@ public byte[] CreateDoc (Doc doc)
/// Creates a document synchronously.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// ApiResponse of byte[]
- public ApiResponse CreateDocWithHttpInfo (Doc doc)
+ public ApiResponse< byte[] > CreateDocWithHttpInfo (Doc doc)
{
// verify the required parameter 'doc' is set
if (doc == null)
@@ -643,13 +621,16 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
+ "application/json",
+ "application/xml",
+ "application/pdf",
+ "application/vnd.ms-excel",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -672,8 +653,8 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
}
// make the HTTP request
- IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
- Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@@ -683,9 +664,9 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
Exception exception = ExceptionFactory("CreateDoc", localVarResponse);
if (exception != null) throw exception;
}
-
+
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ localVarResponse.Headers,
(byte[]) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[])));
}
@@ -693,12 +674,11 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
/// Creates a document synchronously.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of byte[]
- public async System.Threading.Tasks.Task CreateDocAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task CreateDocAsync (Doc doc)
{
- ApiResponse localVarResponse = await CreateDocWithHttpInfoAsync(doc, cancellationToken);
+ ApiResponse localVarResponse = await CreateDocAsyncWithHttpInfo(doc);
return localVarResponse.Data;
}
@@ -707,10 +687,9 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
/// Creates a document synchronously.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of ApiResponse (byte[])
- public async System.Threading.Tasks.Task> CreateDocWithHttpInfoAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> CreateDocAsyncWithHttpInfo (Doc doc)
{
// verify the required parameter 'doc' is set
if (doc == null)
@@ -726,13 +705,16 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
+ "application/json",
+ "application/xml",
+ "application/pdf",
+ "application/vnd.ms-excel",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -755,9 +737,9 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
}
// make the HTTP request
- IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
- Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
- localVarPathParams, localVarHttpContentType, cancellationToken);
+ RestResponse localVarResponse = (RestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@@ -768,7 +750,7 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ localVarResponse.Headers,
(byte[]) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[])));
}
@@ -776,7 +758,7 @@ public ApiResponse CreateDocWithHttpInfo (Doc doc)
/// Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// AsyncDoc
public AsyncDoc CreateHostedAsyncDoc (Doc doc)
{
@@ -788,9 +770,9 @@ public AsyncDoc CreateHostedAsyncDoc (Doc doc)
/// Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
+ /// The document to be created.
/// ApiResponse of AsyncDoc
- public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
+ public ApiResponse< AsyncDoc > CreateHostedAsyncDocWithHttpInfo (Doc doc)
{
// verify the required parameter 'doc' is set
if (doc == null)
@@ -806,13 +788,16 @@ public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
+ "application/json",
+ "application/xml",
+ "application/pdf",
+ "application/vnd.ms-excel",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -835,8 +820,8 @@ public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
}
// make the HTTP request
- IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
- Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@@ -848,7 +833,7 @@ public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ localVarResponse.Headers,
(AsyncDoc) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AsyncDoc)));
}
@@ -856,12 +841,11 @@ public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
/// Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of AsyncDoc
- public async System.Threading.Tasks.Task CreateHostedAsyncDocAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task CreateHostedAsyncDocAsync (Doc doc)
{
- ApiResponse localVarResponse = await CreateHostedAsyncDocWithHttpInfoAsync(doc, cancellationToken);
+ ApiResponse localVarResponse = await CreateHostedAsyncDocAsyncWithHttpInfo(doc);
return localVarResponse.Data;
}
@@ -870,10 +854,9 @@ public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
/// Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
///
/// Thrown when fails to make API call
- ///
- /// Cancellation Token to cancel request (optional)
+ /// The document to be created.
/// Task of ApiResponse (AsyncDoc)
- public async System.Threading.Tasks.Task> CreateHostedAsyncDocWithHttpInfoAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> CreateHostedAsyncDocAsyncWithHttpInfo (Doc doc)
{
// verify the required parameter 'doc' is set
if (doc == null)
@@ -889,13 +872,16 @@ public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
+ "application/json",
+ "application/xml",
+ "application/pdf",
+ "application/vnd.ms-excel",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -918,9 +904,9 @@ public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
}
// make the HTTP request
- IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
- Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
- localVarPathParams, localVarHttpContentType, cancellationToken);
+ RestResponse localVarResponse = (RestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@@ -931,7 +917,7 @@ public ApiResponse CreateHostedAsyncDocWithHttpInfo (Doc doc)
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ localVarResponse.Headers,
(AsyncDoc) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AsyncDoc)));
}
@@ -953,7 +939,7 @@ public DocStatus CreateHostedDoc (Doc doc)
/// Thrown when fails to make API call
/// The document to be created.
/// ApiResponse of DocStatus
- public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
+ public ApiResponse< DocStatus > CreateHostedDocWithHttpInfo (Doc doc)
{
// verify the required parameter 'doc' is set
if (doc == null)
@@ -969,13 +955,16 @@ public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
+ "application/json",
+ "application/xml",
+ "application/pdf",
+ "application/vnd.ms-excel",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -998,8 +987,8 @@ public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
}
// make the HTTP request
- IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
- Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@@ -1011,7 +1000,7 @@ public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ localVarResponse.Headers,
(DocStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocStatus)));
}
@@ -1020,11 +1009,10 @@ public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
///
/// Thrown when fails to make API call
/// The document to be created.
- /// Cancellation Token to cancel request (optional)
/// Task of DocStatus
- public async System.Threading.Tasks.Task CreateHostedDocAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task CreateHostedDocAsync (Doc doc)
{
- ApiResponse localVarResponse = await CreateHostedDocWithHttpInfoAsync(doc, cancellationToken);
+ ApiResponse localVarResponse = await CreateHostedDocAsyncWithHttpInfo(doc);
return localVarResponse.Data;
}
@@ -1034,9 +1022,8 @@ public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
///
/// Thrown when fails to make API call
/// The document to be created.
- /// Cancellation Token to cancel request (optional)
/// Task of ApiResponse (DocStatus)
- public async System.Threading.Tasks.Task> CreateHostedDocWithHttpInfoAsync (Doc doc, CancellationToken cancellationToken = default(CancellationToken))
+ public async System.Threading.Tasks.Task> CreateHostedDocAsyncWithHttpInfo (Doc doc)
{
// verify the required parameter 'doc' is set
if (doc == null)
@@ -1052,13 +1039,16 @@ public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
+ "application/json",
+ "application/xml",
+ "application/pdf",
+ "application/vnd.ms-excel",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1081,9 +1071,9 @@ public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
}
// make the HTTP request
- IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
- Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
- localVarPathParams, localVarHttpContentType, cancellationToken);
+ RestResponse localVarResponse = (RestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
@@ -1094,7 +1084,7 @@ public ApiResponse CreateHostedDocWithHttpInfo (Doc doc)
}
return new ApiResponse(localVarStatusCode,
- localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ localVarResponse.Headers,
(DocStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocStatus)));
}
@@ -1136,6 +1126,11 @@ public ApiResponse