| POST,OPTIONS | /v1/safety/toolbox |
|---|
export class ToolboxRosterMember
{
public ContactID: number;
public ContactName: string;
public HasAcked: boolean;
public constructor(init?: Partial<ToolboxRosterMember>) { (Object as any).assign(this, init); }
}
export class ToolboxTalkToday
{
public ToolboxTalkID: number;
public Topic: string;
public Presenter: string;
public AckCount: number;
public CrewTotal: number;
public Roster: ToolboxRosterMember[] = [];
public constructor(init?: Partial<ToolboxTalkToday>) { (Object as any).assign(this, init); }
}
export class ToolboxTalkTodayResponse
{
public ResponseStatus: ResponseStatus;
public Talk: ToolboxTalkToday;
public constructor(init?: Partial<ToolboxTalkTodayResponse>) { (Object as any).assign(this, init); }
}
export class ToolboxTalkCreateRequest
{
public Topic: string;
public Presenter: string;
public Notes: string;
public TalkDate?: string;
public constructor(init?: Partial<ToolboxTalkCreateRequest>) { (Object as any).assign(this, init); }
}
TypeScript ToolboxTalkCreateRequest 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.
POST /v1/safety/toolbox HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Topic: String,
Presenter: String,
Notes: String,
TalkDate: 0001-01-01
}
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
}
]
}
}