| GET,OPTIONS | /v1/Equipment/fleet |
|---|
"use strict";
export class EquipmentVehicle {
/** @param {{EquipmentVehicleID?:number,EquipmentID?:number,UnitNumber?:string,VehicleType?:string,CapacityText?:string,CapacityTons?:number,DeckFeet?:number,Plate?:string,VIN?:string,GpsUnit?:string,InsuranceExpires?:string,InspectionDue?:string,Capabilities?:string,VehicleStatus?:string,VendorID?:number,EquipmentName?:string,Ownership?:string,RentalVendor?:string,TruckCode?:string,RigCode?:string,BoardModule?:string,UpdatedAt?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
EquipmentVehicleID;
/** @type {number} */
EquipmentID;
/** @type {string} */
UnitNumber;
/** @type {string} */
VehicleType;
/** @type {string} */
CapacityText;
/** @type {?number} */
CapacityTons;
/** @type {?number} */
DeckFeet;
/** @type {string} */
Plate;
/** @type {string} */
VIN;
/** @type {string} */
GpsUnit;
/** @type {?string} */
InsuranceExpires;
/** @type {?string} */
InspectionDue;
/** @type {string} */
Capabilities;
/** @type {string} */
VehicleStatus;
/** @type {?number} */
VendorID;
/** @type {string} */
EquipmentName;
/** @type {string} */
Ownership;
/** @type {string} */
RentalVendor;
/** @type {string} */
TruckCode;
/** @type {string} */
RigCode;
/** @type {string} */
BoardModule;
/** @type {?string} */
UpdatedAt;
}
export class EquipmentVehicleResponse {
/** @param {{Vehicle?:EquipmentVehicle,Fleet?:EquipmentVehicle[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {EquipmentVehicle} */
Vehicle;
/** @type {EquipmentVehicle[]} */
Fleet = [];
/** @type {ResponseStatus} */
ResponseStatus;
}
export class EquipmentFleetRequest {
constructor(init) { Object.assign(this, init) }
}
JavaScript EquipmentFleetRequest 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/Equipment/fleet HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Vehicle:
{
EquipmentVehicleID: 0,
EquipmentID: 0,
UnitNumber: String,
VehicleType: String,
CapacityText: String,
CapacityTons: 0,
DeckFeet: 0,
Plate: String,
VIN: String,
GpsUnit: String,
InsuranceExpires: 0001-01-01,
InspectionDue: 0001-01-01,
Capabilities: String,
VehicleStatus: String,
VendorID: 0,
EquipmentName: String,
Ownership: String,
RentalVendor: String,
TruckCode: String,
RigCode: String,
BoardModule: String,
UpdatedAt: 0001-01-01
},
Fleet:
[
{
EquipmentVehicleID: 0,
EquipmentID: 0,
UnitNumber: String,
VehicleType: String,
CapacityText: String,
CapacityTons: 0,
DeckFeet: 0,
Plate: String,
VIN: String,
GpsUnit: String,
InsuranceExpires: 0001-01-01,
InspectionDue: 0001-01-01,
Capabilities: String,
VehicleStatus: String,
VendorID: 0,
EquipmentName: String,
Ownership: String,
RentalVendor: String,
TruckCode: String,
RigCode: String,
BoardModule: String,
UpdatedAt: 0001-01-01
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}