Skip to content

Commit 5ff3611

Browse files
committed
Updated on 2020-09-12 20:46:40. Version: 1.1.0
1 parent d526ed2 commit 5ff3611

67 files changed

Lines changed: 1745 additions & 265 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,9 @@
1-
### 1.9.0 [October 10, 2019]
1+
### 1.1.0 [September 12, 2020]
22

3-
- Add permanent_download_url attribute to Submission model
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
46

5-
### 1.8.0 [October 9, 2019]
7+
### 1.0.0 [May 20, 2019]
68

7-
- Add parent folder ID and path params to GET template response
8-
- Add parent folder ID param when creating a new template, so you can upload a template into a folder
9-
10-
### 1.7.0 [July 31, 2019]
11-
* Added Create Folder, List Folder, Move to Folder endpoints
12-
13-
### 1.6.0 [June 22, 2019]
14-
15-
- **BREAKING CHANGE** Renamed "Get Templates" endpoint to "List Templates". Added a search query parameter.
16-
17-
### 1.5.0 [April 11, 2019]
18-
19-
- Added support for editable PDFS (editable: true)
20-
21-
### 1.4.0 [December 23, 2018]
22-
23-
- Added CustomFiles, and combinePdf call to support many different types of source PDFs. Renamed a few models
24-
25-
### 1.3.0 [December 18, 2018]
26-
27-
- Updated API host to api.formapi.io
28-
29-
### 1.2.0 [December 13, 2018]
30-
31-
- Fix model name for newly created Templates (PendingTemplate)
32-
- Added "actions" to submission and combined_submission responses. Includes information about custom S3 uploads
33-
34-
### 1.1.0 [December 1, 2018]
35-
36-
- Added Create Template, Get Template, and Get Template Schema endpoints
37-
38-
### 1.0.0 [November 4, 2018]
39-
40-
- Initial changelog
9+
- Renamed FormAPI to DocSpring. (View the CHANGELOG in the original FormAPI API client for prior releases.)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
2626
<dependency>
2727
<groupId>com.docspring</groupId>
2828
<artifactId>DocSpring</artifactId>
29-
<version>1.0.0</version>
29+
<version>1.1.0</version>
3030
<scope>compile</scope>
3131
</dependency>
3232

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.docspring'
5-
version = '1.0.0'
5+
version = '1.1.0'
66

77
buildscript {
88
repositories {
@@ -100,6 +100,7 @@ ext {
100100
junit_version = "4.12"
101101
threetenbp_version = "1.3.5"
102102
json_fire_version = "1.8.0"
103+
javax_annotation_api_version = "1.3.2"
103104
}
104105

105106
dependencies {
@@ -112,6 +113,7 @@ dependencies {
112113
}
113114
compile "io.gsonfire:gson-fire:$json_fire_version"
114115
compile "org.threeten:threetenbp:$threetenbp_version"
116+
compile "javax.annotation:javax.$javax_annotation_api_version"
115117

116118
testCompile "junit:junit:$junit_version"
117119
testCompile "org.hamcrest:hamcrest-all:1.3"

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.docspring",
44
name := "DocSpring",
5-
version := "1.0.0",
5+
version := "1.1.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CombinedSubmission.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**expired** | **Boolean** | | [optional]
99
**expiresAt** | **String** | | [optional]
1010
**sourcePdfs** | **List&lt;Object&gt;** | | [optional]
11+
**pdfHash** | **String** | | [optional]
1112
**downloadUrl** | **String** | | [optional]
1213
**submissionIds** | **List&lt;String&gt;** | | [optional]
1314
**id** | **String** | | [optional]

docs/CreateTemplateData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**template** | [**Templatesv2Template**](Templatesv2Template.md) | |
7+
**template** | [**TemplatesdesccachedUploadTemplate**](TemplatesdesccachedUploadTemplate.md) | |
88

99

1010

docs/CreateTemplateData1.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# CreateTemplateData1
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**template** | [**TemplatesdesccachedUploadTemplate**](TemplatesdesccachedUploadTemplate.md) | |
8+
9+
10+

docs/PdfApi.md

Lines changed: 121 additions & 13 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>
@@ -399,11 +401,63 @@ Name | Type | Description | Notes
399401
- **Content-Type**: application/json
400402
- **Accept**: application/json
401403

402-
<a name="createTemplate"></a>
403-
# **createTemplate**
404-
> PendingTemplate createTemplate(templateDocument, templateName, templateParentFolderId)
404+
<a name="createHTMLTemplate"></a>
405+
# **createHTMLTemplate**
406+
> PendingTemplate createHTMLTemplate(createTemplateData1)
405407
406-
Upload a new PDF template with a file upload
408+
Create a new HTML template
409+
410+
### Example
411+
```java
412+
// Import classes:
413+
//import com.docspring.ApiClient;
414+
//import com.docspring.ApiException;
415+
//import com.docspring.Configuration;
416+
//import com.docspring.auth.*;
417+
//import com.docspring.PdfApi;
418+
419+
ApiClient defaultClient = Configuration.getDefaultApiClient();
420+
421+
// Configure HTTP basic authorization: api_token_basic
422+
HttpBasicAuth api_token_basic = (HttpBasicAuth) defaultClient.getAuthentication("api_token_basic");
423+
api_token_basic.setUsername("YOUR USERNAME");
424+
api_token_basic.setPassword("YOUR PASSWORD");
425+
426+
PdfApi apiInstance = new PdfApi();
427+
CreateTemplateData1 createTemplateData1 = new CreateTemplateData1(); // CreateTemplateData1 |
428+
try {
429+
PendingTemplate result = apiInstance.createHTMLTemplate(createTemplateData1);
430+
System.out.println(result);
431+
} catch (ApiException e) {
432+
System.err.println("Exception when calling PdfApi#createHTMLTemplate");
433+
e.printStackTrace();
434+
}
435+
```
436+
437+
### Parameters
438+
439+
Name | Type | Description | Notes
440+
------------- | ------------- | ------------- | -------------
441+
**createTemplateData1** | [**CreateTemplateData1**](CreateTemplateData1.md)| |
442+
443+
### Return type
444+
445+
[**PendingTemplate**](PendingTemplate.md)
446+
447+
### Authorization
448+
449+
[api_token_basic](../README.md#api_token_basic)
450+
451+
### HTTP request headers
452+
453+
- **Content-Type**: application/json
454+
- **Accept**: application/json
455+
456+
<a name="createPDFTemplate"></a>
457+
# **createPDFTemplate**
458+
> PendingTemplate createPDFTemplate(templateDocument, templateName, templateParentFolderId)
459+
460+
Create a new PDF template with a form POST file upload
407461

408462
### Example
409463
```java
@@ -426,10 +480,10 @@ File templateDocument = new File("null"); // File |
426480
String templateName = "null"; // String |
427481
String templateParentFolderId = "null"; // String |
428482
try {
429-
PendingTemplate result = apiInstance.createTemplate(templateDocument, templateName, templateParentFolderId);
483+
PendingTemplate result = apiInstance.createPDFTemplate(templateDocument, templateName, templateParentFolderId);
430484
System.out.println(result);
431485
} catch (ApiException e) {
432-
System.err.println("Exception when calling PdfApi#createTemplate");
486+
System.err.println("Exception when calling PdfApi#createPDFTemplate");
433487
e.printStackTrace();
434488
}
435489
```
@@ -455,9 +509,9 @@ Name | Type | Description | Notes
455509
- **Content-Type**: multipart/form-data
456510
- **Accept**: application/json
457511

458-
<a name="createTemplateFromUpload"></a>
459-
# **createTemplateFromUpload**
460-
> PendingTemplate createTemplateFromUpload(createTemplateData)
512+
<a name="createPDFTemplateFromUpload"></a>
513+
# **createPDFTemplateFromUpload**
514+
> PendingTemplate createPDFTemplateFromUpload(createTemplateData)
461515
462516
Create a new PDF template from a cached presign upload
463517

@@ -480,10 +534,10 @@ api_token_basic.setPassword("YOUR PASSWORD");
480534
PdfApi apiInstance = new PdfApi();
481535
CreateTemplateData createTemplateData = new CreateTemplateData(); // CreateTemplateData |
482536
try {
483-
PendingTemplate result = apiInstance.createTemplateFromUpload(createTemplateData);
537+
PendingTemplate result = apiInstance.createPDFTemplateFromUpload(createTemplateData);
484538
System.out.println(result);
485539
} catch (ApiException e) {
486-
System.err.println("Exception when calling PdfApi#createTemplateFromUpload");
540+
System.err.println("Exception when calling PdfApi#createPDFTemplateFromUpload");
487541
e.printStackTrace();
488542
}
489543
```
@@ -1454,3 +1508,57 @@ Name | Type | Description | Notes
14541508
- **Content-Type**: application/json
14551509
- **Accept**: application/json
14561510

1511+
<a name="updateTemplate"></a>
1512+
# **updateTemplate**
1513+
> UpdateTemplateResponse updateTemplate(templateId, updateTemplateData)
1514+
1515+
Update a Template
1516+
1517+
### Example
1518+
```java
1519+
// Import classes:
1520+
//import com.docspring.ApiClient;
1521+
//import com.docspring.ApiException;
1522+
//import com.docspring.Configuration;
1523+
//import com.docspring.auth.*;
1524+
//import com.docspring.PdfApi;
1525+
1526+
ApiClient defaultClient = Configuration.getDefaultApiClient();
1527+
1528+
// Configure HTTP basic authorization: api_token_basic
1529+
HttpBasicAuth api_token_basic = (HttpBasicAuth) defaultClient.getAuthentication("api_token_basic");
1530+
api_token_basic.setUsername("YOUR USERNAME");
1531+
api_token_basic.setPassword("YOUR PASSWORD");
1532+
1533+
PdfApi apiInstance = new PdfApi();
1534+
String templateId = tpl_000000000000000003; // String |
1535+
UpdateTemplateData updateTemplateData = new UpdateTemplateData(); // UpdateTemplateData |
1536+
try {
1537+
UpdateTemplateResponse result = apiInstance.updateTemplate(templateId, updateTemplateData);
1538+
System.out.println(result);
1539+
} catch (ApiException e) {
1540+
System.err.println("Exception when calling PdfApi#updateTemplate");
1541+
e.printStackTrace();
1542+
}
1543+
```
1544+
1545+
### Parameters
1546+
1547+
Name | Type | Description | Notes
1548+
------------- | ------------- | ------------- | -------------
1549+
**templateId** | **String**| |
1550+
**updateTemplateData** | [**UpdateTemplateData**](UpdateTemplateData.md)| |
1551+
1552+
### Return type
1553+
1554+
[**UpdateTemplateResponse**](UpdateTemplateResponse.md)
1555+
1556+
### Authorization
1557+
1558+
[api_token_basic](../README.md#api_token_basic)
1559+
1560+
### HTTP request headers
1561+
1562+
- **Content-Type**: application/json
1563+
- **Accept**: application/json
1564+

docs/PendingTemplate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**parentFolderId** | **String** | | [optional]
1010
**expireAfter** | [**BigDecimal**](BigDecimal.md) | | [optional]
1111
**allowAdditionalProperties** | **Boolean** | | [optional]
12+
**description** | **String** | | [optional]
1213
**publicSubmissions** | **Boolean** | | [optional]
1314
**slackWebhookUrl** | **String** | | [optional]
1415
**path** | **String** | | [optional]

docs/Submission.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**processedAt** | **String** | | [optional]
1414
**state** | [**StateEnum**](#StateEnum) | |
1515
**metadata** | **Object** | | [optional]
16+
**pdfHash** | **String** | | [optional]
1617
**downloadUrl** | **String** | | [optional]
1718
**permanentDownloadUrl** | **String** | | [optional]
1819
**batchId** | **String** | | [optional]
@@ -34,6 +35,7 @@ WAITING_FOR_DATA_REQUESTS | &quot;waiting_for_data_requests&quot;
3435
SYNTAX_ERROR | &quot;syntax_error&quot;
3536
ACCOUNT_SUSPENDED | &quot;account_suspended&quot;
3637
LICENSE_REVOKED | &quot;license_revoked&quot;
38+
ACCIDENTAL | &quot;accidental&quot;
3739

3840

3941

0 commit comments

Comments
 (0)