Trendsic Platform Service

<back to all web services

ToolboxTalkTodayRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/safety/toolbox/today
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 ToolboxRosterMember() = 
        member val ContactID:Int32 = new Int32() with get,set
        member val ContactName:String = null with get,set
        member val HasAcked:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type ToolboxTalkToday() = 
        member val ToolboxTalkID:Int32 = new Int32() with get,set
        member val Topic:String = null with get,set
        member val Presenter:String = null with get,set
        member val AckCount:Int32 = new Int32() with get,set
        member val CrewTotal:Int32 = new Int32() with get,set
        member val Roster:ResizeArray<ToolboxRosterMember> = new ResizeArray<ToolboxRosterMember>() with get,set

    [<AllowNullLiteral>]
    type ToolboxTalkTodayResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Talk:ToolboxTalkToday = null with get,set

    [<AllowNullLiteral>]
    type ToolboxTalkTodayRequest() = 
        class end

F# ToolboxTalkTodayRequest DTOs

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

HTTP + JSV

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

GET /v1/safety/toolbox/today HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Talk: 
	{
		ToolboxTalkID: 0,
		Topic: String,
		Presenter: String,
		AckCount: 0,
		CrewTotal: 0,
		Roster: 
		[
			{
				ContactID: 0,
				ContactName: String,
				HasAcked: False
			}
		]
	}
}