| GET,OPTIONS | /v1/coverage/self/shifts |
|---|
import Foundation
import ServiceStack
public class CoverageSelfShiftsRequest : Codable
{
public var contactID:Int
required public init(){}
}
public class CoverageSelfShiftsResponse : Codable
{
public var responseStatus:ResponseStatus
public var shifts:[CoverageSelfShift] = []
required public init(){}
}
public class CoverageSelfShift : Codable
{
public var workerScheduleItemID:Int
public var label:String
public var site:String
public var role:String
required public init(){}
}
Swift CoverageSelfShiftsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/coverage/self/shifts HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Shifts":[{"WorkerScheduleItemID":0,"Label":"String","Site":"String","Role":"String"}]}