| GET,OPTIONS | /v1/PDFDocument/{DocumentId} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/PDFDocument/ByCard/{CardId} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PDFDocumentRequest
{
public Integer CardId = null;
public UUID DocumentId = null;
public ArrayList<PDFDocument> PDFDocument = new ArrayList<PDFDocument>();
public Integer getCardId() { return CardId; }
public PDFDocumentRequest setCardId(Integer value) { this.CardId = value; return this; }
public UUID getDocumentId() { return DocumentId; }
public PDFDocumentRequest setDocumentId(UUID value) { this.DocumentId = value; return this; }
public ArrayList<PDFDocument> getPdfDocument() { return PDFDocument; }
public PDFDocumentRequest setPdfDocument(ArrayList<PDFDocument> value) { this.PDFDocument = value; return this; }
}
public static class PDFDocument
{
public UUID DocumentId = null;
public byte[] PDFDocument = new byte[]{};
public Date DateCreated = null;
public Integer CardId = null;
public UUID getDocumentId() { return DocumentId; }
public PDFDocument setDocumentId(UUID value) { this.DocumentId = value; return this; }
public byte[] getPdfDocument() { return PDFDocument; }
public PDFDocument setPdfDocument(byte[] value) { this.PDFDocument = value; return this; }
public Date getDateCreated() { return DateCreated; }
public PDFDocument setDateCreated(Date value) { this.DateCreated = value; return this; }
public Integer getCardId() { return CardId; }
public PDFDocument setCardId(Integer value) { this.CardId = value; return this; }
}
public static class PDFDocumentResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<PDFDocument> PDFDocument = new ArrayList<PDFDocument>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PDFDocumentResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<PDFDocument> getPdfDocument() { return PDFDocument; }
public PDFDocumentResponse setPdfDocument(ArrayList<PDFDocument> value) { this.PDFDocument = value; return this; }
}
}
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/PDFDocument/{DocumentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"PDFDocument":[{"DocumentId":"00000000000000000000000000000000","PDFDocument":"AA==","DateCreated":"0001-01-01T00:00:00.0000000","CardId":0}]}