| GET,POST,OPTIONS | /v1/Dropbox/Customer/{CustomerId} | ||
|---|---|---|---|
| GET,POST,OPTIONS | /v1/Dropbox/Customer/CustomerCheckIn/{CustomerCheckInId} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DropboxCustomerRequest
{
public ArrayList<Dropbox> Dropbox = new ArrayList<Dropbox>();
public UUID CustomerId = null;
public UUID CustomerCheckInId = null;
public ArrayList<Dropbox> getDropbox() { return Dropbox; }
public DropboxCustomerRequest setDropbox(ArrayList<Dropbox> value) { this.Dropbox = value; return this; }
public UUID getCustomerId() { return CustomerId; }
public DropboxCustomerRequest setCustomerId(UUID value) { this.CustomerId = value; return this; }
public UUID getCustomerCheckInId() { return CustomerCheckInId; }
public DropboxCustomerRequest setCustomerCheckInId(UUID value) { this.CustomerCheckInId = value; return this; }
}
public static class Dropbox
{
public Integer Id = null;
public UUID AttachmentId = null;
public String FirstName = null;
public String LastName = null;
public String TableName = null;
public Integer RecordId = null;
public String Description = null;
public String DocumentType = null;
public String DocumentGroup = null;
public Date DateAdded = null;
public Boolean Locked = null;
public Double FileSizeInKB = null;
public Integer getId() { return Id; }
public Dropbox setId(Integer value) { this.Id = value; return this; }
public UUID getAttachmentId() { return AttachmentId; }
public Dropbox setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
public String getFirstName() { return FirstName; }
public Dropbox setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public Dropbox setLastName(String value) { this.LastName = value; return this; }
public String getTableName() { return TableName; }
public Dropbox setTableName(String value) { this.TableName = value; return this; }
public Integer getRecordId() { return RecordId; }
public Dropbox setRecordId(Integer value) { this.RecordId = value; return this; }
public String getDescription() { return Description; }
public Dropbox setDescription(String value) { this.Description = value; return this; }
public String getDocumentType() { return DocumentType; }
public Dropbox setDocumentType(String value) { this.DocumentType = value; return this; }
public String getDocumentGroup() { return DocumentGroup; }
public Dropbox setDocumentGroup(String value) { this.DocumentGroup = value; return this; }
public Date getDateAdded() { return DateAdded; }
public Dropbox setDateAdded(Date value) { this.DateAdded = value; return this; }
public Boolean isLocked() { return Locked; }
public Dropbox setLocked(Boolean value) { this.Locked = value; return this; }
public Double getFileSizeInKB() { return FileSizeInKB; }
public Dropbox setFileSizeInKB(Double value) { this.FileSizeInKB = value; return this; }
}
public static class DropboxResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<DropboxExtended> Dropbox = new ArrayList<DropboxExtended>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public DropboxResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<DropboxExtended> getDropbox() { return Dropbox; }
public DropboxResponse setDropbox(ArrayList<DropboxExtended> value) { this.Dropbox = value; return this; }
}
public static class DropboxExtended extends Dropbox
{
public String AttachmentName = null;
public String AgentName = null;
public String MimeType = null;
public Boolean IsAgent = null;
public Boolean IsContact = null;
public Boolean IsShared = null;
public Boolean CanShare = null;
public String ShareList = null;
public String getAttachmentName() { return AttachmentName; }
public DropboxExtended setAttachmentName(String value) { this.AttachmentName = value; return this; }
public String getAgentName() { return AgentName; }
public DropboxExtended setAgentName(String value) { this.AgentName = value; return this; }
public String getMimeType() { return MimeType; }
public DropboxExtended setMimeType(String value) { this.MimeType = value; return this; }
public Boolean getIsAgent() { return IsAgent; }
public DropboxExtended setIsAgent(Boolean value) { this.IsAgent = value; return this; }
public Boolean getIsContact() { return IsContact; }
public DropboxExtended setIsContact(Boolean value) { this.IsContact = value; return this; }
public Boolean getIsShared() { return IsShared; }
public DropboxExtended setIsShared(Boolean value) { this.IsShared = value; return this; }
public Boolean isCanShare() { return CanShare; }
public DropboxExtended setCanShare(Boolean value) { this.CanShare = value; return this; }
public String getShareList() { return ShareList; }
public DropboxExtended setShareList(String value) { this.ShareList = value; return this; }
}
}
Java DropboxCustomerRequest DTOs
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.
POST /v1/Dropbox/Customer/{CustomerId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DropboxCustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<CustomerCheckInId>00000000-0000-0000-0000-000000000000</CustomerCheckInId>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<Dropbox>
<Dropbox>
<AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
<DateAdded>0001-01-01T00:00:00</DateAdded>
<Description>String</Description>
<DocumentGroup>String</DocumentGroup>
<DocumentType>String</DocumentType>
<FileSizeInKB>0</FileSizeInKB>
<FirstName>String</FirstName>
<Id>0</Id>
<LastName>String</LastName>
<Locked>false</Locked>
<RecordId>0</RecordId>
<TableName>String</TableName>
</Dropbox>
</Dropbox>
</DropboxCustomerRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DropboxResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Dropbox>
<DropboxExtended>
<AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
<DateAdded>0001-01-01T00:00:00</DateAdded>
<Description>String</Description>
<DocumentGroup>String</DocumentGroup>
<DocumentType>String</DocumentType>
<FileSizeInKB>0</FileSizeInKB>
<FirstName>String</FirstName>
<Id>0</Id>
<LastName>String</LastName>
<Locked>false</Locked>
<RecordId>0</RecordId>
<TableName>String</TableName>
<AgentName>String</AgentName>
<AttachmentName>String</AttachmentName>
<CanShare>false</CanShare>
<IsAgent>false</IsAgent>
<IsContact>false</IsContact>
<IsShared>false</IsShared>
<MimeType>String</MimeType>
<ShareList>String</ShareList>
</DropboxExtended>
</Dropbox>
<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>
</DropboxResponse>