| GET,OPTIONS | /v1/projects/{ProjectID}/pay-apps/{PeriodNumber}/g702 |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PayAppG702Request
{
public Integer ProjectID = null;
public Integer PeriodNumber = null;
public Integer getProjectID() { return ProjectID; }
public PayAppG702Request setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getPeriodNumber() { return PeriodNumber; }
public PayAppG702Request setPeriodNumber(Integer value) { this.PeriodNumber = value; return this; }
}
public static class PrintableResponse
{
public ResponseStatus ResponseStatus = null;
public PrintDocument Document = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PrintableResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public PrintDocument getDocument() { return Document; }
public PrintableResponse setDocument(PrintDocument value) { this.Document = value; return this; }
}
public static class PrintDocument
{
public String Kind = null;
public String Title = null;
public String Subtitle = null;
public String FileName = null;
public Boolean Landscape = null;
public Date GeneratedAtUtc = null;
public String GeneratedBy = null;
public ArrayList<DocField> Meta = new ArrayList<DocField>();
public ArrayList<DocBlock> Blocks = new ArrayList<DocBlock>();
public ArrayList<DocIssue> Issues = new ArrayList<DocIssue>();
public Boolean CanPrint = null;
public String getKind() { return Kind; }
public PrintDocument setKind(String value) { this.Kind = value; return this; }
public String getTitle() { return Title; }
public PrintDocument setTitle(String value) { this.Title = value; return this; }
public String getSubtitle() { return Subtitle; }
public PrintDocument setSubtitle(String value) { this.Subtitle = value; return this; }
public String getFileName() { return FileName; }
public PrintDocument setFileName(String value) { this.FileName = value; return this; }
public Boolean isLandscape() { return Landscape; }
public PrintDocument setLandscape(Boolean value) { this.Landscape = value; return this; }
public Date getGeneratedAtUtc() { return GeneratedAtUtc; }
public PrintDocument setGeneratedAtUtc(Date value) { this.GeneratedAtUtc = value; return this; }
public String getGeneratedBy() { return GeneratedBy; }
public PrintDocument setGeneratedBy(String value) { this.GeneratedBy = value; return this; }
public ArrayList<DocField> getMeta() { return Meta; }
public PrintDocument setMeta(ArrayList<DocField> value) { this.Meta = value; return this; }
public ArrayList<DocBlock> getBlocks() { return Blocks; }
public PrintDocument setBlocks(ArrayList<DocBlock> value) { this.Blocks = value; return this; }
public ArrayList<DocIssue> getIssues() { return Issues; }
public PrintDocument setIssues(ArrayList<DocIssue> value) { this.Issues = value; return this; }
public Boolean isCanPrint() { return CanPrint; }
public PrintDocument setCanPrint(Boolean value) { this.CanPrint = value; return this; }
}
public static class DocField
{
public String Label = null;
public String Value = null;
public String Ref = null;
public Boolean Emphasis = null;
public String getLabel() { return Label; }
public DocField setLabel(String value) { this.Label = value; return this; }
public String getValue() { return Value; }
public DocField setValue(String value) { this.Value = value; return this; }
public String getRef() { return Ref; }
public DocField setRef(String value) { this.Ref = value; return this; }
public Boolean isEmphasis() { return Emphasis; }
public DocField setEmphasis(Boolean value) { this.Emphasis = value; return this; }
}
public static class DocBlock
{
public String Type = null;
public String Text = null;
public Integer Level = null;
public ArrayList<DocField> Fields = new ArrayList<DocField>();
public Integer Columns = null;
public DocTable Table = null;
public ArrayList<String> Signatures = new ArrayList<String>();
public String getType() { return Type; }
public DocBlock setType(String value) { this.Type = value; return this; }
public String getText() { return Text; }
public DocBlock setText(String value) { this.Text = value; return this; }
public Integer getLevel() { return Level; }
public DocBlock setLevel(Integer value) { this.Level = value; return this; }
public ArrayList<DocField> getFields() { return Fields; }
public DocBlock setFields(ArrayList<DocField> value) { this.Fields = value; return this; }
public Integer getColumns() { return Columns; }
public DocBlock setColumns(Integer value) { this.Columns = value; return this; }
public DocTable getTable() { return Table; }
public DocBlock setTable(DocTable value) { this.Table = value; return this; }
public ArrayList<String> getSignatures() { return Signatures; }
public DocBlock setSignatures(ArrayList<String> value) { this.Signatures = value; return this; }
}
public static class DocTable
{
public String Caption = null;
public ArrayList<DocColumn> Columns = new ArrayList<DocColumn>();
public ArrayList<ArrayList<String>> Rows = new ArrayList<ArrayList<String>>();
public ArrayList<ArrayList<String>> Footer = new ArrayList<ArrayList<String>>();
public String getCaption() { return Caption; }
public DocTable setCaption(String value) { this.Caption = value; return this; }
public ArrayList<DocColumn> getColumns() { return Columns; }
public DocTable setColumns(ArrayList<DocColumn> value) { this.Columns = value; return this; }
public ArrayList<ArrayList<String>> getRows() { return Rows; }
public DocTable setRows(ArrayList<ArrayList<String>> value) { this.Rows = value; return this; }
public ArrayList<ArrayList<String>> getFooter() { return Footer; }
public DocTable setFooter(ArrayList<ArrayList<String>> value) { this.Footer = value; return this; }
}
public static class DocColumn
{
public String Key = null;
public String Label = null;
public String Align = null;
public Integer Width = null;
public String getKey() { return Key; }
public DocColumn setKey(String value) { this.Key = value; return this; }
public String getLabel() { return Label; }
public DocColumn setLabel(String value) { this.Label = value; return this; }
public String getAlign() { return Align; }
public DocColumn setAlign(String value) { this.Align = value; return this; }
public Integer getWidth() { return Width; }
public DocColumn setWidth(Integer value) { this.Width = value; return this; }
}
public static class DocIssue
{
public String Severity = null;
public String Code = null;
public String Message = null;
public String getSeverity() { return Severity; }
public DocIssue setSeverity(String value) { this.Severity = value; return this; }
public String getCode() { return Code; }
public DocIssue setCode(String value) { this.Code = value; return this; }
public String getMessage() { return Message; }
public DocIssue setMessage(String value) { this.Message = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/projects/{ProjectID}/pay-apps/{PeriodNumber}/g702 HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Document":{"Kind":"String","Title":"String","Subtitle":"String","FileName":"String","Landscape":false,"GeneratedAtUtc":"0001-01-01T00:00:00.0000000","GeneratedBy":"String","Meta":[{"Label":"String","Value":"String","Ref":"String","Emphasis":false}],"Blocks":[{"Type":"String","Text":"String","Level":0,"Fields":[{"Label":"String","Value":"String","Ref":"String","Emphasis":false}],"Columns":0,"Table":{"Caption":"String","Columns":[{"Key":"String","Label":"String","Align":"String","Width":0}],"Rows":[["String"]],"Footer":[["String"]]},"Signatures":["String"]}],"Issues":[{"Severity":"String","Code":"String","Message":"String"}],"CanPrint":true}}