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
DriverViewModelName | 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": "88e1e824-be5f-4728-8713-12af643365a5", "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": "e8f52efc-5f22-477d-87ea-7916a43168c4", "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>e8f52efc-5f22-477d-87ea-7916a43168c4</VehicleID> </AllocatedAsset> <DriverCode>sample string 3</DriverCode> <DriverID>88e1e824-be5f-4728-8713-12af643365a5</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>