All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| publicAddDocument | POST /public/documents | Public add document |
| publicAddWebhook | POST /public/webhooks/{webhooks+} | Public add webhook |
AddDocumentResponse publicAddDocument(addDocumentRequest, siteId)
Public add document
Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.PublicApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
PublicApi apiInstance = new PublicApi(defaultClient);
AddDocumentRequest addDocumentRequest = new AddDocumentRequest(); // AddDocumentRequest |
String siteId = "siteId_example"; // String | Site Identifier
try {
AddDocumentResponse result = apiInstance.publicAddDocument(addDocumentRequest, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicAddDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| addDocumentRequest | AddDocumentRequest | ||
| siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | 201 CREATED | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
DocumentId publicAddWebhook(webhooksPlus, body, siteId)
Public add webhook
Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default)
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.PublicApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
PublicApi apiInstance = new PublicApi(defaultClient);
String webhooksPlus = "webhooksPlus_example"; // String | Web Hook Param
Object body = null; // Object |
String siteId = "siteId_example"; // String | Site Identifier
try {
DocumentId result = apiInstance.publicAddWebhook(webhooksPlus, body, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#publicAddWebhook");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhooksPlus | String | Web Hook Param | |
| body | Object | ||
| siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |