| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PrintableResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Document>
<Blocks>
<DocBlock>
<Columns>0</Columns>
<Fields>
<DocField>
<Emphasis>false</Emphasis>
<Label>String</Label>
<Ref>String</Ref>
<Value>String</Value>
</DocField>
</Fields>
<Level>0</Level>
<Signatures xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</Signatures>
<Table>
<Caption>String</Caption>
<Columns>
<DocColumn>
<Align>String</Align>
<Key>String</Key>
<Label>String</Label>
<Width>0</Width>
</DocColumn>
</Columns>
<Footer xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfstring>
<d6p1:string>String</d6p1:string>
</d6p1:ArrayOfstring>
</Footer>
<Rows xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfstring>
<d6p1:string>String</d6p1:string>
</d6p1:ArrayOfstring>
</Rows>
</Table>
<Text>String</Text>
<Type>String</Type>
</DocBlock>
</Blocks>
<FileName>String</FileName>
<GeneratedAtUtc>0001-01-01T00:00:00</GeneratedAtUtc>
<GeneratedBy>String</GeneratedBy>
<Issues>
<DocIssue>
<Code>String</Code>
<Message>String</Message>
<Severity>String</Severity>
</DocIssue>
</Issues>
<Kind>String</Kind>
<Landscape>false</Landscape>
<Meta>
<DocField>
<Emphasis>false</Emphasis>
<Label>String</Label>
<Ref>String</Ref>
<Value>String</Value>
</DocField>
</Meta>
<Subtitle>String</Subtitle>
<Title>String</Title>
</Document>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</PrintableResponse>