POST api/Drivers/GetDriverStatus
Get the status of a driver for any given period
Request Information
URI Parameters
None.
Body Parameters
DriverPeriod| Name | Description | Type | Additional information |
|---|---|---|---|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| DriverId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"StartDate": "2025-12-11T05:26:01.3787624+02:00",
"EndDate": "2025-12-11T05:26:01.3787624+02:00",
"DriverId": 3
}
application/xml, text/xml
Sample:
<DriverPeriod xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSWebAPI.Models.DriverDTO"> <DriverId>3</DriverId> <EndDate>2025-12-11T05:26:01.3787624+02:00</EndDate> <StartDate>2025-12-11T05:26:01.3787624+02:00</StartDate> </DriverPeriod>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of DriverRedGreenStatusDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| DriverId | integer |
None. |
|
| DriverRedGreenStatus | boolean |
None. |
|
| DriverRedGreenStatusReason | string |
None. |
|
| DriverStatusDate | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"DriverId": 1,
"DriverRedGreenStatus": true,
"DriverRedGreenStatusReason": "sample string 3",
"DriverStatusDate": "sample string 4"
},
{
"DriverId": 1,
"DriverRedGreenStatus": true,
"DriverRedGreenStatusReason": "sample string 3",
"DriverStatusDate": "sample string 4"
}
]
application/xml, text/xml
Sample:
<ArrayOfDriverRedGreenStatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSWebAPI.Models.DriverDTO">
<DriverRedGreenStatusDTO>
<DriverId>1</DriverId>
<DriverRedGreenStatus>true</DriverRedGreenStatus>
<DriverRedGreenStatusReason>sample string 3</DriverRedGreenStatusReason>
<DriverStatusDate>sample string 4</DriverStatusDate>
</DriverRedGreenStatusDTO>
<DriverRedGreenStatusDTO>
<DriverId>1</DriverId>
<DriverRedGreenStatus>true</DriverRedGreenStatus>
<DriverRedGreenStatusReason>sample string 3</DriverRedGreenStatusReason>
<DriverStatusDate>sample string 4</DriverStatusDate>
</DriverRedGreenStatusDTO>
</ArrayOfDriverRedGreenStatusDTO>