Trendsic Platform Service

<back to all web services

CoverageSelfDayNotesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/coverage/self/daynotes
import Foundation
import ServiceStack

public class CoverageSelfDayNotesRequest : Codable
{
    public var date:String

    required public init(){}
}

public class CoverageSelfDayNotesResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var todayLabel:String
    public var today:[CoverageSelfDayNote] = []
    public var previousLabel:String
    public var previous:[CoverageSelfDayNote] = []
    public var canWrite:Bool

    required public init(){}
}

public class CoverageSelfDayNote : Codable
{
    public var rosterDayNoteID:Int
    public var authorName:String
    public var body:String
    public var timeText:String
    public var mine:Bool

    required public init(){}
}


Swift CoverageSelfDayNotesRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/coverage/self/daynotes HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TodayLabel":"String","Today":[{"RosterDayNoteID":0,"AuthorName":"String","Body":"String","TimeText":"String","Mine":false}],"PreviousLabel":"String","Previous":[{"RosterDayNoteID":0,"AuthorName":"String","Body":"String","TimeText":"String","Mine":false}],"CanWrite":false}