| 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.*
open class DropboxCustomerRequest
{
open var Dropbox:ArrayList<Dropbox> = ArrayList<Dropbox>()
open var CustomerId:UUID? = null
open var CustomerCheckInId:UUID? = null
}
open class Dropbox
{
open var Id:Int? = null
open var AttachmentId:UUID? = null
open var FirstName:String? = null
open var LastName:String? = null
open var TableName:String? = null
open var RecordId:Int? = null
open var Description:String? = null
open var DocumentType:String? = null
open var DocumentGroup:String? = null
open var DateAdded:Date? = null
open var Locked:Boolean? = null
open var FileSizeInKB:Double? = null
}
open class DropboxResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Dropbox:ArrayList<DropboxExtended> = ArrayList<DropboxExtended>()
}
open class DropboxExtended : Dropbox()
{
open var AttachmentName:String? = null
open var AgentName:String? = null
open var MimeType:String? = null
open var IsAgent:Boolean? = null
open var IsContact:Boolean? = null
open var IsShared:Boolean? = null
open var CanShare:Boolean? = null
open var ShareList:String? = null
}
Kotlin DropboxCustomerRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Dropbox":[{"Id":0,"AttachmentId":"00000000000000000000000000000000","FirstName":"String","LastName":"String","TableName":"String","RecordId":0,"Description":"String","DocumentType":"String","DocumentGroup":"String","DateAdded":"0001-01-01T00:00:00.0000000","Locked":false,"FileSizeInKB":0}],"CustomerId":"00000000000000000000000000000000","CustomerCheckInId":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Dropbox":[{"AttachmentName":"String","AgentName":"String","MimeType":"String","IsAgent":false,"IsContact":false,"IsShared":false,"CanShare":false,"ShareList":"String","Id":0,"AttachmentId":"00000000000000000000000000000000","FirstName":"String","LastName":"String","TableName":"String","RecordId":0,"Description":"String","DocumentType":"String","DocumentGroup":"String","DateAdded":"0001-01-01T00:00:00.0000000","Locked":false,"FileSizeInKB":0}]}