Skip to content

Commit 373eaad

Browse files
committed
Updated on 2020-09-12 20:43:00. Version: 1.2.0
1 parent 1f465c2 commit 373eaad

40 files changed

+2390
-294
lines changed

CHANGELOG.md

Lines changed: 8 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,13 @@
1-
### 1.1.0 [July 7, 2020]
2-
3-
- Update to use latest API schema
4-
5-
### 1.13.0 [October 10, 2019]
6-
7-
- Add permanent_download_url attribute to Submission model
8-
9-
### 1.12.0 [October 9, 2019]
10-
11-
- Add parent folder ID and path params to GET template response
12-
- Add parent folder ID param when creating a new template, so you can upload a template into a folder
13-
14-
### 1.11.0 [July 31, 2019]
15-
16-
- Added Create Folder, List Folder, Move to Folder endpoints
17-
- **BREAKING CHANGE** Added parent_folder_id query parameter to "List Templates".
18-
19-
### 1.10.0 [June 22, 2019]
20-
21-
- **BREAKING CHANGE** Renamed "Get Templates" endpoint to "List Templates". Added a search query parameter.
1+
### 1.2.0 [September 12, 2020]
222

23-
### 1.9.0 [April 11, 2019]
3+
- **BREAKING CHANGE**: Renamed createTemplate operation to createPDFTemplate
4+
- Added createHTMLTemplate operation. (This uses the same API endpoint as createPDFTemplate, but the example shows how to set html, scss, etc. fields)
5+
- Added updateTemplate operation, to update a PDF or HTML template
246

25-
- Added support for editable PDFS (editable: true)
26-
27-
### 1.8.0 [December 23, 2018]
28-
29-
- Added CustomFiles, and combinePdf call to support many different types of source PDFs. Renamed a few models
30-
31-
### 1.7.0 [December 18, 2018]
32-
33-
- Updated API host to api.formapi.io
34-
35-
### 1.6.0 [December 13, 2018]
36-
37-
- Fix model name for newly created Templates (PendingTemplate)
38-
- Added "actions" to submission and combined_submission responses. Includes information about custom S3 uploads
39-
40-
### 1.5.0 [December 1, 2018]
41-
42-
- Added Get Template Schema endpoint
43-
44-
### 1.4.0 [November 22, 2018]
7+
### 1.1.0 [July 7, 2020]
458

46-
- Added getTemplate(id) and createTemplate endpoints
9+
- Update to use latest API schema
4710

48-
### 1.3.0 [November 4, 2018]
11+
### 1.0.0 [May 20, 2019]
4912

50-
- Initial changelog
13+
- Renamed FormAPI to DocSpring. (View the CHANGELOG in the original FormAPI API client for prior releases.)

DocSpring.Client.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 2012
33
VisualStudioVersion = 12.0.0.0
44
MinimumVisualStudioVersion = 10.0.0.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocSpring.Client", "src\DocSpring.Client\DocSpring.Client.csproj", "{90AFFF8C-76CA-4AC1-BC3C-063C100DED67}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocSpring.Client", "src\DocSpring.Client\DocSpring.Client.csproj", "{DB132E15-0167-42BE-A528-C751A746A03A}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocSpring.Client.Test", "src\DocSpring.Client.Test\DocSpring.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{90AFFF8C-76CA-4AC1-BC3C-063C100DED67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{90AFFF8C-76CA-4AC1-BC3C-063C100DED67}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{90AFFF8C-76CA-4AC1-BC3C-063C100DED67}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{90AFFF8C-76CA-4AC1-BC3C-063C100DED67}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{DB132E15-0167-42BE-A528-C751A746A03A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{DB132E15-0167-42BE-A528-C751A746A03A}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{DB132E15-0167-42BE-A528-C751A746A03A}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{DB132E15-0167-42BE-A528-C751A746A03A}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DocSpring is a service that helps you fill out and sign PDF templates.
55
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

77
- API version: v1
8-
- SDK version: 1.1.0
8+
- SDK version: 1.2.0
99
- Build package: com.docspring.codegen.DocSpringCSharpClientCodegen
1010

1111
<a name="frameworks-supported"></a>
@@ -108,8 +108,9 @@ Class | Method | HTTP request | Description
108108
*PDFApi* | [**CreateCustomFileFromUpload**](docs/PDFApi.md#createcustomfilefromupload) | **POST** /custom_files | Create a new custom file from a cached presign upload
109109
*PDFApi* | [**CreateDataRequestToken**](docs/PDFApi.md#createdatarequesttoken) | **POST** /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
110110
*PDFApi* | [**CreateFolder**](docs/PDFApi.md#createfolder) | **POST** /folders/ | Create a folder
111-
*PDFApi* | [**CreateTemplate**](docs/PDFApi.md#createtemplate) | **POST** /templates | Upload a new PDF template with a file upload
112-
*PDFApi* | [**CreateTemplateFromUpload**](docs/PDFApi.md#createtemplatefromupload) | **POST** /templates?v&#x3D;2 | Create a new PDF template from a cached presign upload
111+
*PDFApi* | [**CreateHTMLTemplate**](docs/PDFApi.md#createhtmltemplate) | **POST** /templates?desc&#x3D;html | Create a new HTML template
112+
*PDFApi* | [**CreatePDFTemplate**](docs/PDFApi.md#createpdftemplate) | **POST** /templates | Create a new PDF template with a form POST file upload
113+
*PDFApi* | [**CreatePDFTemplateFromUpload**](docs/PDFApi.md#createpdftemplatefromupload) | **POST** /templates?desc&#x3D;cached_upload | Create a new PDF template from a cached presign upload
113114
*PDFApi* | [**DeleteFolder**](docs/PDFApi.md#deletefolder) | **DELETE** /folders/{folder_id} | Delete a folder
114115
*PDFApi* | [**ExpireCombinedSubmission**](docs/PDFApi.md#expirecombinedsubmission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
115116
*PDFApi* | [**ExpireSubmission**](docs/PDFApi.md#expiresubmission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
@@ -128,6 +129,7 @@ Class | Method | HTTP request | Description
128129
*PDFApi* | [**RenameFolder**](docs/PDFApi.md#renamefolder) | **POST** /folders/{folder_id}/rename | Rename a folder
129130
*PDFApi* | [**TestAuthentication**](docs/PDFApi.md#testauthentication) | **GET** /authentication | Test Authentication
130131
*PDFApi* | [**UpdateDataRequest**](docs/PDFApi.md#updatedatarequest) | **PUT** /data_requests/{data_request_id} | Update a submission data request
132+
*PDFApi* | [**UpdateTemplate**](docs/PDFApi.md#updatetemplate) | **PUT** /templates/{template_id} | Update a Template
131133

132134

133135
<a name="documentation-for-models"></a>
@@ -150,6 +152,7 @@ Class | Method | HTTP request | Description
150152
- [Model.CreateSubmissionDataRequestTokenResponseToken](docs/CreateSubmissionDataRequestTokenResponseToken.md)
151153
- [Model.CreateSubmissionResponse](docs/CreateSubmissionResponse.md)
152154
- [Model.CreateTemplateData](docs/CreateTemplateData.md)
155+
- [Model.CreateTemplateData1](docs/CreateTemplateData1.md)
153156
- [Model.CustomFile](docs/CustomFile.md)
154157
- [Model.Error](docs/Error.md)
155158
- [Model.Folder](docs/Folder.md)
@@ -167,11 +170,14 @@ Class | Method | HTTP request | Description
167170
- [Model.SubmissionDataBatchRequest](docs/SubmissionDataBatchRequest.md)
168171
- [Model.SubmissionDataRequest](docs/SubmissionDataRequest.md)
169172
- [Model.Template](docs/Template.md)
170-
- [Model.Templatesv2Template](docs/Templatesv2Template.md)
171-
- [Model.Templatesv2TemplateDocument](docs/Templatesv2TemplateDocument.md)
172-
- [Model.Templatesv2TemplateDocumentMetadata](docs/Templatesv2TemplateDocumentMetadata.md)
173+
- [Model.TemplatesdesccachedUploadTemplate](docs/TemplatesdesccachedUploadTemplate.md)
174+
- [Model.TemplatesdesccachedUploadTemplateDocument](docs/TemplatesdesccachedUploadTemplateDocument.md)
175+
- [Model.TemplatesdesccachedUploadTemplateDocumentMetadata](docs/TemplatesdesccachedUploadTemplateDocumentMetadata.md)
176+
- [Model.TemplatestemplateIdTemplate](docs/TemplatestemplateIdTemplate.md)
173177
- [Model.UpdateDataRequestResponse](docs/UpdateDataRequestResponse.md)
174178
- [Model.UpdateSubmissionDataRequestData](docs/UpdateSubmissionDataRequestData.md)
179+
- [Model.UpdateTemplateData](docs/UpdateTemplateData.md)
180+
- [Model.UpdateTemplateResponse](docs/UpdateTemplateResponse.md)
175181

176182

177183
<a name="documentation-for-authorization"></a>

docs/CreateTemplateData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Template** | [**Templatesv2Template**](Templatesv2Template.md) | |
6+
**Template** | [**TemplatesdesccachedUploadTemplate**](TemplatesdesccachedUploadTemplate.md) | |
77

88
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
99

docs/CreateTemplateData1.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# DocSpring.Client.Model.CreateTemplateData1
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Template** | [**TemplatesdesccachedUploadTemplate**](TemplatesdesccachedUploadTemplate.md) | |
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+

docs/PDFApi.md

Lines changed: 146 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Method | HTTP request | Description
1111
[**CreateCustomFileFromUpload**](PDFApi.md#createcustomfilefromupload) | **POST** /custom_files | Create a new custom file from a cached presign upload
1212
[**CreateDataRequestToken**](PDFApi.md#createdatarequesttoken) | **POST** /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
1313
[**CreateFolder**](PDFApi.md#createfolder) | **POST** /folders/ | Create a folder
14-
[**CreateTemplate**](PDFApi.md#createtemplate) | **POST** /templates | Upload a new PDF template with a file upload
15-
[**CreateTemplateFromUpload**](PDFApi.md#createtemplatefromupload) | **POST** /templates?v&#x3D;2 | Create a new PDF template from a cached presign upload
14+
[**CreateHTMLTemplate**](PDFApi.md#createhtmltemplate) | **POST** /templates?desc&#x3D;html | Create a new HTML template
15+
[**CreatePDFTemplate**](PDFApi.md#createpdftemplate) | **POST** /templates | Create a new PDF template with a form POST file upload
16+
[**CreatePDFTemplateFromUpload**](PDFApi.md#createpdftemplatefromupload) | **POST** /templates?desc&#x3D;cached_upload | Create a new PDF template from a cached presign upload
1617
[**DeleteFolder**](PDFApi.md#deletefolder) | **DELETE** /folders/{folder_id} | Delete a folder
1718
[**ExpireCombinedSubmission**](PDFApi.md#expirecombinedsubmission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
1819
[**ExpireSubmission**](PDFApi.md#expiresubmission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
@@ -31,6 +32,7 @@ Method | HTTP request | Description
3132
[**RenameFolder**](PDFApi.md#renamefolder) | **POST** /folders/{folder_id}/rename | Rename a folder
3233
[**TestAuthentication**](PDFApi.md#testauthentication) | **GET** /authentication | Test Authentication
3334
[**UpdateDataRequest**](PDFApi.md#updatedatarequest) | **PUT** /data_requests/{data_request_id} | Update a submission data request
35+
[**UpdateTemplate**](PDFApi.md#updatetemplate) | **PUT** /templates/{template_id} | Update a Template
3436

3537

3638
<a name="batchgeneratepdfv1"></a>
@@ -476,11 +478,11 @@ Name | Type | Description | Notes
476478

477479
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
478480

479-
<a name="createtemplate"></a>
480-
# **CreateTemplate**
481-
> PendingTemplate CreateTemplate (System.IO.Stream templateDocument, string templateName, string templateParentFolderId = null)
481+
<a name="createhtmltemplate"></a>
482+
# **CreateHTMLTemplate**
483+
> PendingTemplate CreateHTMLTemplate (CreateTemplateData1 createTemplateData1)
482484
483-
Upload a new PDF template with a file upload
485+
Create a new HTML template
484486

485487
### Example
486488
```csharp
@@ -492,7 +494,70 @@ using DocSpring.Client.Model;
492494

493495
namespace Example
494496
{
495-
public class CreateTemplateExample
497+
public class CreateHTMLTemplateExample
498+
{
499+
public void main()
500+
{
501+
// Configure HTTP basic authorization: api_token_basic
502+
Configuration.Default.Username = "YOUR_USERNAME";
503+
Configuration.Default.Password = "YOUR_PASSWORD";
504+
505+
var apiInstance = new PDFApi();
506+
var createTemplateData1 = new CreateTemplateData1(); // CreateTemplateData1 |
507+
508+
try
509+
{
510+
// Create a new HTML template
511+
PendingTemplate result = apiInstance.CreateHTMLTemplate(createTemplateData1);
512+
Debug.WriteLine(result);
513+
}
514+
catch (Exception e)
515+
{
516+
Debug.Print("Exception when calling PDFApi.CreateHTMLTemplate: " + e.Message );
517+
}
518+
}
519+
}
520+
}
521+
```
522+
523+
### Parameters
524+
525+
Name | Type | Description | Notes
526+
------------- | ------------- | ------------- | -------------
527+
**createTemplateData1** | [**CreateTemplateData1**](CreateTemplateData1.md)| |
528+
529+
### Return type
530+
531+
[**PendingTemplate**](PendingTemplate.md)
532+
533+
### Authorization
534+
535+
[api_token_basic](../README.md#api_token_basic)
536+
537+
### HTTP request headers
538+
539+
- **Content-Type**: application/json
540+
- **Accept**: application/json
541+
542+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
543+
544+
<a name="createpdftemplate"></a>
545+
# **CreatePDFTemplate**
546+
> PendingTemplate CreatePDFTemplate (System.IO.Stream templateDocument, string templateName, string templateParentFolderId = null)
547+
548+
Create a new PDF template with a form POST file upload
549+
550+
### Example
551+
```csharp
552+
using System;
553+
using System.Diagnostics;
554+
using DocSpring.Client.Api;
555+
using DocSpring.Client.Client;
556+
using DocSpring.Client.Model;
557+
558+
namespace Example
559+
{
560+
public class CreatePDFTemplateExample
496561
{
497562
public void main()
498563
{
@@ -507,13 +572,13 @@ namespace Example
507572
508573
try
509574
{
510-
// Upload a new PDF template with a file upload
511-
PendingTemplate result = apiInstance.CreateTemplate(templateDocument, templateName, templateParentFolderId);
575+
// Create a new PDF template with a form POST file upload
576+
PendingTemplate result = apiInstance.CreatePDFTemplate(templateDocument, templateName, templateParentFolderId);
512577
Debug.WriteLine(result);
513578
}
514579
catch (Exception e)
515580
{
516-
Debug.Print("Exception when calling PDFApi.CreateTemplate: " + e.Message );
581+
Debug.Print("Exception when calling PDFApi.CreatePDFTemplate: " + e.Message );
517582
}
518583
}
519584
}
@@ -543,9 +608,9 @@ Name | Type | Description | Notes
543608

544609
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
545610

546-
<a name="createtemplatefromupload"></a>
547-
# **CreateTemplateFromUpload**
548-
> PendingTemplate CreateTemplateFromUpload (CreateTemplateData createTemplateData)
611+
<a name="createpdftemplatefromupload"></a>
612+
# **CreatePDFTemplateFromUpload**
613+
> PendingTemplate CreatePDFTemplateFromUpload (CreateTemplateData createTemplateData)
549614
550615
Create a new PDF template from a cached presign upload
551616

@@ -559,7 +624,7 @@ using DocSpring.Client.Model;
559624

560625
namespace Example
561626
{
562-
public class CreateTemplateFromUploadExample
627+
public class CreatePDFTemplateFromUploadExample
563628
{
564629
public void main()
565630
{
@@ -573,12 +638,12 @@ namespace Example
573638
try
574639
{
575640
// Create a new PDF template from a cached presign upload
576-
PendingTemplate result = apiInstance.CreateTemplateFromUpload(createTemplateData);
641+
PendingTemplate result = apiInstance.CreatePDFTemplateFromUpload(createTemplateData);
577642
Debug.WriteLine(result);
578643
}
579644
catch (Exception e)
580645
{
581-
Debug.Print("Exception when calling PDFApi.CreateTemplateFromUpload: " + e.Message );
646+
Debug.Print("Exception when calling PDFApi.CreatePDFTemplateFromUpload: " + e.Message );
582647
}
583648
}
584649
}
@@ -1751,3 +1816,68 @@ Name | Type | Description | Notes
17511816

17521817
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
17531818

1819+
<a name="updatetemplate"></a>
1820+
# **UpdateTemplate**
1821+
> UpdateTemplateResponse UpdateTemplate (string templateId, UpdateTemplateData updateTemplateData)
1822+
1823+
Update a Template
1824+
1825+
### Example
1826+
```csharp
1827+
using System;
1828+
using System.Diagnostics;
1829+
using DocSpring.Client.Api;
1830+
using DocSpring.Client.Client;
1831+
using DocSpring.Client.Model;
1832+
1833+
namespace Example
1834+
{
1835+
public class UpdateTemplateExample
1836+
{
1837+
public void main()
1838+
{
1839+
// Configure HTTP basic authorization: api_token_basic
1840+
Configuration.Default.Username = "YOUR_USERNAME";
1841+
Configuration.Default.Password = "YOUR_PASSWORD";
1842+
1843+
var apiInstance = new PDFApi();
1844+
var templateId = tpl_000000000000000003; // string |
1845+
var updateTemplateData = new UpdateTemplateData(); // UpdateTemplateData |
1846+
1847+
try
1848+
{
1849+
// Update a Template
1850+
UpdateTemplateResponse result = apiInstance.UpdateTemplate(templateId, updateTemplateData);
1851+
Debug.WriteLine(result);
1852+
}
1853+
catch (Exception e)
1854+
{
1855+
Debug.Print("Exception when calling PDFApi.UpdateTemplate: " + e.Message );
1856+
}
1857+
}
1858+
}
1859+
}
1860+
```
1861+
1862+
### Parameters
1863+
1864+
Name | Type | Description | Notes
1865+
------------- | ------------- | ------------- | -------------
1866+
**templateId** | **string**| |
1867+
**updateTemplateData** | [**UpdateTemplateData**](UpdateTemplateData.md)| |
1868+
1869+
### Return type
1870+
1871+
[**UpdateTemplateResponse**](UpdateTemplateResponse.md)
1872+
1873+
### Authorization
1874+
1875+
[api_token_basic](../README.md#api_token_basic)
1876+
1877+
### HTTP request headers
1878+
1879+
- **Content-Type**: application/json
1880+
- **Accept**: application/json
1881+
1882+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1883+

docs/PendingTemplate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**ParentFolderId** | **string** | | [optional]
99
**ExpireAfter** | **decimal?** | | [optional]
1010
**AllowAdditionalProperties** | **bool?** | | [optional]
11+
**Description** | **string** | | [optional]
1112
**PublicSubmissions** | **bool?** | | [optional]
1213
**SlackWebhookUrl** | **string** | | [optional]
1314
**Path** | **string** | | [optional]

0 commit comments

Comments
 (0)