GET Api/Driver/GetByID?driver={driver}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| driver | string |
Required |
Body Parameters
None.
Response Information
Resource Description
DriverViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DriverID | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| DriverCode | string |
None. |
|
| MobileNo | string |
None. |
|
| EmailID | string |
None. |
|
| Photo | AttachmentViewModel |
None. |
|
| WorkStatus | WorkStatus |
None. |
|
| AllocatedAsset | AllocatedAssetViewModel |
None. |
|
| DriverStatus | DriverStatus |
None. |
Response Formats
application/json, text/json
Sample:
{
"DriverID": "622282e3-87f6-4a24-ad30-f9e4b30aafd4",
"Name": "sample string 2",
"DriverCode": "sample string 3",
"MobileNo": "sample string 4",
"EmailID": "sample string 5",
"Photo": {
"ImageString": "sample string 1"
},
"WorkStatus": 0,
"AllocatedAsset": {
"VehicleID": "cf8a2abe-e50b-4bcc-add0-680c8019288b",
"IMEINo": "sample string 2"
},
"DriverStatus": 0
}
application/xml, text/xml
Sample:
<DriverViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootDriver.Service">
<AllocatedAsset>
<IMEINo>sample string 2</IMEINo>
<VehicleID>cf8a2abe-e50b-4bcc-add0-680c8019288b</VehicleID>
</AllocatedAsset>
<DriverCode>sample string 3</DriverCode>
<DriverID>622282e3-87f6-4a24-ad30-f9e4b30aafd4</DriverID>
<DriverStatus>Active</DriverStatus>
<EmailID>sample string 5</EmailID>
<MobileNo>sample string 4</MobileNo>
<Name>sample string 2</Name>
<Photo>
<ImageString>sample string 1</ImageString>
</Photo>
<WorkStatus>Free</WorkStatus>
</DriverViewModel>