| POST,OPTIONS | /v1/forms/office/drafts/{SubmissionUID}/file/{FieldKey} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormOfficeFileRequest
{
public UUID SubmissionUID = null;
public String FieldKey = null;
public Integer Rev = null;
public InputStream RequestStream = null;
public UUID getSubmissionUID() { return SubmissionUID; }
public FormOfficeFileRequest setSubmissionUID(UUID value) { this.SubmissionUID = value; return this; }
public String getFieldKey() { return FieldKey; }
public FormOfficeFileRequest setFieldKey(String value) { this.FieldKey = value; return this; }
public Integer getRev() { return Rev; }
public FormOfficeFileRequest setRev(Integer value) { this.Rev = value; return this; }
public InputStream getRequestStream() { return RequestStream; }
public FormOfficeFileRequest setRequestStream(InputStream value) { this.RequestStream = value; return this; }
}
public static class FormFillFileResponse
{
public String Id = null;
public String Name = null;
public String Size = null;
public String Kind = null;
public Integer Rev = null;
public ResponseStatus ResponseStatus = null;
public String getId() { return Id; }
public FormFillFileResponse setId(String value) { this.Id = value; return this; }
public String getName() { return Name; }
public FormFillFileResponse setName(String value) { this.Name = value; return this; }
public String getSize() { return Size; }
public FormFillFileResponse setSize(String value) { this.Size = value; return this; }
public String getKind() { return Kind; }
public FormFillFileResponse setKind(String value) { this.Kind = value; return this; }
public Integer getRev() { return Rev; }
public FormFillFileResponse setRev(Integer value) { this.Rev = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public FormFillFileResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java FormOfficeFileRequest DTOs
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/office/drafts/{SubmissionUID}/file/{FieldKey} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SubmissionUID: 00000000000000000000000000000000,
FieldKey: String,
Rev: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Id: String,
Name: String,
Size: String,
Kind: String,
Rev: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}