| GET | /v1/coverage/planned |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type CoveragePtoCheck() =
member val Ok:Boolean = new Boolean() with get,set
member val Text:String = null with get,set
[<AllowNullLiteral>]
type CoveragePlannedItem() =
member val WorkerTimeOffID:Int32 = new Int32() with get,set
member val ContactId:Int32 = new Int32() with get,set
member val WorkerName:String = null with get,set
member val Initials:String = null with get,set
member val Dates:String = null with get,set
member val Reason:String = null with get,set
member val Stage:String = null with get,set
member val StageLabel:String = null with get,set
member val NeedBook:Boolean = new Boolean() with get,set
member val CoverageGapId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Checks:ResizeArray<CoveragePtoCheck> = new ResizeArray<CoveragePtoCheck>() with get,set
member val DenyReason:String = null with get,set
[<AllowNullLiteral>]
type CoveragePlannedResponse() =
member val Items:ResizeArray<CoveragePlannedItem> = new ResizeArray<CoveragePlannedItem>() with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type CoveragePlannedRequest() =
class end
F# CoveragePlannedRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/coverage/planned HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Items:
[
{
WorkerTimeOffID: 0,
ContactId: 0,
WorkerName: String,
Initials: String,
Dates: String,
Reason: String,
Stage: String,
StageLabel: String,
NeedBook: False,
CoverageGapId: 0,
Checks:
[
{
Ok: False,
Text: String
}
],
DenyReason: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}