| GET,OPTIONS | /v1/forms/office |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormOfficeOfferedRequest
{
public UUID FormUID = null;
public UUID getFormUID() { return FormUID; }
public FormOfficeOfferedRequest setFormUID(UUID value) { this.FormUID = value; return this; }
}
public static class FormOfficeOfferedResponse
{
public ArrayList<FormOfficeApp> Apps = new ArrayList<FormOfficeApp>();
public ArrayList<FormInboxCount> Branches = new ArrayList<FormInboxCount>();
public ArrayList<FormOfficeDraftRow> Drafts = new ArrayList<FormOfficeDraftRow>();
public Boolean CanSearchContacts = null;
public ResponseStatus ResponseStatus = null;
public ArrayList<FormOfficeApp> getApps() { return Apps; }
public FormOfficeOfferedResponse setApps(ArrayList<FormOfficeApp> value) { this.Apps = value; return this; }
public ArrayList<FormInboxCount> getBranches() { return Branches; }
public FormOfficeOfferedResponse setBranches(ArrayList<FormInboxCount> value) { this.Branches = value; return this; }
public ArrayList<FormOfficeDraftRow> getDrafts() { return Drafts; }
public FormOfficeOfferedResponse setDrafts(ArrayList<FormOfficeDraftRow> value) { this.Drafts = value; return this; }
public Boolean isCanSearchContacts() { return CanSearchContacts; }
public FormOfficeOfferedResponse setCanSearchContacts(Boolean value) { this.CanSearchContacts = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public FormOfficeOfferedResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class FormOfficeApp
{
public String FormUID = null;
public String Name = null;
public String Noun = null;
public String DefaultBranchId = null;
public String getFormUID() { return FormUID; }
public FormOfficeApp setFormUID(String value) { this.FormUID = value; return this; }
public String getName() { return Name; }
public FormOfficeApp setName(String value) { this.Name = value; return this; }
public String getNoun() { return Noun; }
public FormOfficeApp setNoun(String value) { this.Noun = value; return this; }
public String getDefaultBranchId() { return DefaultBranchId; }
public FormOfficeApp setDefaultBranchId(String value) { this.DefaultBranchId = value; return this; }
}
public static class FormInboxCount
{
public String V = null;
public String L = null;
public Integer N = null;
public String getV() { return V; }
public FormInboxCount setV(String value) { this.V = value; return this; }
public String getL() { return L; }
public FormInboxCount setL(String value) { this.L = value; return this; }
public Integer getN() { return N; }
public FormInboxCount setN(Integer value) { this.N = value; return this; }
}
public static class FormOfficeDraftRow
{
public String SubmissionUID = null;
public String FormUID = null;
public String FormName = null;
public String ForName = null;
public String BranchName = null;
public Integer ContactId = null;
public Integer Page = null;
public Integer Pages = null;
public String SavedBy = null;
public String SavedAt = null;
public String getSubmissionUID() { return SubmissionUID; }
public FormOfficeDraftRow setSubmissionUID(String value) { this.SubmissionUID = value; return this; }
public String getFormUID() { return FormUID; }
public FormOfficeDraftRow setFormUID(String value) { this.FormUID = value; return this; }
public String getFormName() { return FormName; }
public FormOfficeDraftRow setFormName(String value) { this.FormName = value; return this; }
public String getForName() { return ForName; }
public FormOfficeDraftRow setForName(String value) { this.ForName = value; return this; }
public String getBranchName() { return BranchName; }
public FormOfficeDraftRow setBranchName(String value) { this.BranchName = value; return this; }
public Integer getContactId() { return ContactId; }
public FormOfficeDraftRow setContactId(Integer value) { this.ContactId = value; return this; }
public Integer getPage() { return Page; }
public FormOfficeDraftRow setPage(Integer value) { this.Page = value; return this; }
public Integer getPages() { return Pages; }
public FormOfficeDraftRow setPages(Integer value) { this.Pages = value; return this; }
public String getSavedBy() { return SavedBy; }
public FormOfficeDraftRow setSavedBy(String value) { this.SavedBy = value; return this; }
public String getSavedAt() { return SavedAt; }
public FormOfficeDraftRow setSavedAt(String value) { this.SavedAt = value; return this; }
}
}
Java FormOfficeOfferedRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/forms/office HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Apps":[{"FormUID":"String","Name":"String","Noun":"String","DefaultBranchId":"String"}],"Branches":[{"V":"String","L":"String","N":0}],"Drafts":[{"SubmissionUID":"String","FormUID":"String","FormName":"String","ForName":"String","BranchName":"String","ContactId":0,"Page":0,"Pages":0,"SavedBy":"String","SavedAt":"String"}],"CanSearchContacts":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}