| GET,POST,PUT,DELETE,OPTIONS | /v1/CrewAttendance/{AttendanceID} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/CrewAttendance |
"use strict";
export class CrewAttendance {
/** @param {{AttendanceID?:number,ContactID?:number,ContactName?:string,ProjectID?:number,ProjectName?:string,AttendanceDate?:string,AttendanceStatusID?:number,AttendanceStatusName?:string,Comments?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
AttendanceID;
/** @type {number} */
ContactID;
/** @type {string} */
ContactName;
/** @type {number} */
ProjectID;
/** @type {string} */
ProjectName;
/** @type {string} */
AttendanceDate;
/** @type {number} */
AttendanceStatusID;
/** @type {string} */
AttendanceStatusName;
/** @type {string} */
Comments;
}
export class CrewAttendanceResponse {
/** @param {{ResponseStatus?:ResponseStatus,CrewAttendance?:CrewAttendance[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {CrewAttendance[]} */
CrewAttendance = [];
}
export class CrewAttendanceRequest {
/** @param {{AttendanceID?:number,CrewAttendance?:CrewAttendance[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
AttendanceID;
/** @type {CrewAttendance[]} */
CrewAttendance = [];
}
JavaScript CrewAttendanceRequest 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/CrewAttendance/{AttendanceID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
AttendanceID: 0,
CrewAttendance:
[
{
AttendanceID: 0,
ContactID: 0,
ContactName: String,
ProjectID: 0,
ProjectName: String,
AttendanceDate: 0001-01-01,
AttendanceStatusID: 0,
AttendanceStatusName: String,
Comments: String
}
]
}
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
}
},
CrewAttendance:
[
{
AttendanceID: 0,
ContactID: 0,
ContactName: String,
ProjectID: 0,
ProjectName: String,
AttendanceDate: 0001-01-01,
AttendanceStatusID: 0,
AttendanceStatusName: String,
Comments: String
}
]
}