| GET | /v1/forms/{FormUID}/reports |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormReportRequest
{
public UUID FormUID = null;
public String Field = null;
public UUID getFormUID() { return FormUID; }
public FormReportRequest setFormUID(UUID value) { this.FormUID = value; return this; }
public String getField() { return Field; }
public FormReportRequest setField(String value) { this.Field = value; return this; }
}
public static class FormReportResponse
{
public Integer Submissions = null;
public Integer Decided = null;
public Integer Approved = null;
public String RateText = null;
public String DecisionText = null;
public Integer Drafts = null;
public Integer Sla = null;
public Integer DraftDays = null;
public Boolean IsRecord = null;
public ArrayList<FormReportBar> Weeks = new ArrayList<FormReportBar>();
public ArrayList<FormReportBar> Stages = new ArrayList<FormReportBar>();
public ArrayList<FormReportBar> Pages = new ArrayList<FormReportBar>();
public Integer Started = null;
public Integer SubmittedPct = null;
public String DropFrom = null;
public Integer DropN = null;
public ArrayList<FormReportBar> Durations = new ArrayList<FormReportBar>();
public ArrayList<FormReportBar> Fields = new ArrayList<FormReportBar>();
public String Field = null;
public String FieldLabel = null;
public ArrayList<FormReportBar> Options = new ArrayList<FormReportBar>();
public ArrayList<FormReportBar> Reasons = new ArrayList<FormReportBar>();
public ResponseStatus ResponseStatus = null;
public Integer getSubmissions() { return Submissions; }
public FormReportResponse setSubmissions(Integer value) { this.Submissions = value; return this; }
public Integer getDecided() { return Decided; }
public FormReportResponse setDecided(Integer value) { this.Decided = value; return this; }
public Integer getApproved() { return Approved; }
public FormReportResponse setApproved(Integer value) { this.Approved = value; return this; }
public String getRateText() { return RateText; }
public FormReportResponse setRateText(String value) { this.RateText = value; return this; }
public String getDecisionText() { return DecisionText; }
public FormReportResponse setDecisionText(String value) { this.DecisionText = value; return this; }
public Integer getDrafts() { return Drafts; }
public FormReportResponse setDrafts(Integer value) { this.Drafts = value; return this; }
public Integer getSla() { return Sla; }
public FormReportResponse setSla(Integer value) { this.Sla = value; return this; }
public Integer getDraftDays() { return DraftDays; }
public FormReportResponse setDraftDays(Integer value) { this.DraftDays = value; return this; }
public Boolean getIsRecord() { return IsRecord; }
public FormReportResponse setIsRecord(Boolean value) { this.IsRecord = value; return this; }
public ArrayList<FormReportBar> getWeeks() { return Weeks; }
public FormReportResponse setWeeks(ArrayList<FormReportBar> value) { this.Weeks = value; return this; }
public ArrayList<FormReportBar> getStages() { return Stages; }
public FormReportResponse setStages(ArrayList<FormReportBar> value) { this.Stages = value; return this; }
public ArrayList<FormReportBar> getPages() { return Pages; }
public FormReportResponse setPages(ArrayList<FormReportBar> value) { this.Pages = value; return this; }
public Integer getStarted() { return Started; }
public FormReportResponse setStarted(Integer value) { this.Started = value; return this; }
public Integer getSubmittedPct() { return SubmittedPct; }
public FormReportResponse setSubmittedPct(Integer value) { this.SubmittedPct = value; return this; }
public String getDropFrom() { return DropFrom; }
public FormReportResponse setDropFrom(String value) { this.DropFrom = value; return this; }
public Integer getDropN() { return DropN; }
public FormReportResponse setDropN(Integer value) { this.DropN = value; return this; }
public ArrayList<FormReportBar> getDurations() { return Durations; }
public FormReportResponse setDurations(ArrayList<FormReportBar> value) { this.Durations = value; return this; }
public ArrayList<FormReportBar> getFields() { return Fields; }
public FormReportResponse setFields(ArrayList<FormReportBar> value) { this.Fields = value; return this; }
public String getField() { return Field; }
public FormReportResponse setField(String value) { this.Field = value; return this; }
public String getFieldLabel() { return FieldLabel; }
public FormReportResponse setFieldLabel(String value) { this.FieldLabel = value; return this; }
public ArrayList<FormReportBar> getOptions() { return Options; }
public FormReportResponse setOptions(ArrayList<FormReportBar> value) { this.Options = value; return this; }
public ArrayList<FormReportBar> getReasons() { return Reasons; }
public FormReportResponse setReasons(ArrayList<FormReportBar> value) { this.Reasons = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public FormReportResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class FormReportBar
{
public String Id = null;
public String Label = null;
public Integer N = null;
public Double Value = null;
public String Text = null;
public String Tone = null;
public String getId() { return Id; }
public FormReportBar setId(String value) { this.Id = value; return this; }
public String getLabel() { return Label; }
public FormReportBar setLabel(String value) { this.Label = value; return this; }
public Integer getN() { return N; }
public FormReportBar setN(Integer value) { this.N = value; return this; }
public Double getValue() { return Value; }
public FormReportBar setValue(Double value) { this.Value = value; return this; }
public String getText() { return Text; }
public FormReportBar setText(String value) { this.Text = value; return this; }
public String getTone() { return Tone; }
public FormReportBar setTone(String value) { this.Tone = 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.
GET /v1/forms/{FormUID}/reports HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Submissions: 0,
Decided: 0,
Approved: 0,
RateText: String,
DecisionText: String,
Drafts: 0,
Sla: 0,
DraftDays: 0,
IsRecord: False,
Weeks:
[
{
Id: String,
Label: String,
N: 0,
Value: 0,
Text: String,
Tone: String
}
],
Stages:
[
{
Id: String,
Label: String,
N: 0,
Value: 0,
Text: String,
Tone: String
}
],
Pages:
[
{
Id: String,
Label: String,
N: 0,
Value: 0,
Text: String,
Tone: String
}
],
Started: 0,
SubmittedPct: 0,
DropFrom: String,
DropN: 0,
Durations:
[
{
Id: String,
Label: String,
N: 0,
Value: 0,
Text: String,
Tone: String
}
],
Fields:
[
{
Id: String,
Label: String,
N: 0,
Value: 0,
Text: String,
Tone: String
}
],
Field: String,
FieldLabel: String,
Options:
[
{
Id: String,
Label: String,
N: 0,
Value: 0,
Text: String,
Tone: String
}
],
Reasons:
[
{
Id: String,
Label: String,
N: 0,
Value: 0,
Text: String,
Tone: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}