| POST | /v1/forms/submissions/{SubmissionUID}/sign/{FieldKey} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormSignHereRequest
{
public UUID SubmissionUID = null;
public String FieldKey = null;
public String Mode = null;
public String Name = null;
public String Png = null;
public UUID getSubmissionUID() { return SubmissionUID; }
public FormSignHereRequest setSubmissionUID(UUID value) { this.SubmissionUID = value; return this; }
public String getFieldKey() { return FieldKey; }
public FormSignHereRequest setFieldKey(String value) { this.FieldKey = value; return this; }
public String getMode() { return Mode; }
public FormSignHereRequest setMode(String value) { this.Mode = value; return this; }
public String getName() { return Name; }
public FormSignHereRequest setName(String value) { this.Name = value; return this; }
public String getPng() { return Png; }
public FormSignHereRequest setPng(String value) { this.Png = value; return this; }
}
public static class FormSignHereResponse
{
public Boolean Arrived = null;
public Integer Pending = null;
public ResponseStatus ResponseStatus = null;
public Boolean isArrived() { return Arrived; }
public FormSignHereResponse setArrived(Boolean value) { this.Arrived = value; return this; }
public Integer getPending() { return Pending; }
public FormSignHereResponse setPending(Integer value) { this.Pending = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public FormSignHereResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/forms/submissions/{SubmissionUID}/sign/{FieldKey} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SubmissionUID: 00000000000000000000000000000000,
FieldKey: String,
Mode: String,
Name: String,
Png: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Arrived: False,
Pending: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}