| GET,POST,PUT,DELETE,OPTIONS | /v1/CrewAttendance/{AttendanceID} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/CrewAttendance |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class CrewAttendanceRequest
{
open var AttendanceID:Int? = null
open var CrewAttendance:ArrayList<CrewAttendance> = ArrayList<CrewAttendance>()
}
open class CrewAttendance
{
open var AttendanceID:Int? = null
open var ContactID:Int? = null
open var ContactName:String? = null
open var ProjectID:Int? = null
open var ProjectName:String? = null
open var AttendanceDate:Date? = null
open var AttendanceStatusID:Short? = null
open var AttendanceStatusName:String? = null
open var Comments:String? = null
}
open class CrewAttendanceResponse
{
open var ResponseStatus:ResponseStatus? = null
open var CrewAttendance:ArrayList<CrewAttendance> = ArrayList<CrewAttendance>()
}
Kotlin CrewAttendanceRequest 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/CrewAttendance/{AttendanceID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"AttendanceID":0,"CrewAttendance":[{"AttendanceID":0,"ContactID":0,"ContactName":"String","ProjectID":0,"ProjectName":"String","AttendanceDate":"0001-01-01T00:00:00.0000000","AttendanceStatusID":0,"AttendanceStatusName":"String","Comments":"String"}]}
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"}},"CrewAttendance":[{"AttendanceID":0,"ContactID":0,"ContactName":"String","ProjectID":0,"ProjectName":"String","AttendanceDate":"0001-01-01T00:00:00.0000000","AttendanceStatusID":0,"AttendanceStatusName":"String","Comments":"String"}]}