POST api/DriverCompliance/EndDriverShift
Request Information
URI Parameters
None.
Body Parameters
DriverShiftRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyID | string |
None. |
|
| HHID | string |
None. |
|
| Date | string |
None. |
|
| StartTime | string |
None. |
|
| EndTime | string |
None. |
|
| MobileFlag | string |
None. |
|
| CurrentFlag | string |
None. |
|
| Status | string |
None. |
|
| Lat | decimal number |
None. |
|
| Lng | decimal number |
None. |
|
| Long | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"CompanyID": "sample string 1",
"HHID": "sample string 2",
"Date": "sample string 3",
"StartTime": "sample string 4",
"EndTime": "sample string 5",
"MobileFlag": "sample string 6",
"CurrentFlag": "sample string 7",
"Status": "sample string 8",
"Lat": 1.0,
"Lng": 1.0,
"Long": 1.0
}
application/xml, text/xml
Sample:
<DriverShiftRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models"> <CompanyID>sample string 1</CompanyID> <CurrentFlag>sample string 7</CurrentFlag> <Date>sample string 3</Date> <EndTime>sample string 5</EndTime> <HHID>sample string 2</HHID> <Lat>1</Lat> <Lng>1</Lng> <Long>1</Long> <MobileFlag>sample string 6</MobileFlag> <StartTime>sample string 4</StartTime> <Status>sample string 8</Status> </DriverShiftRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultWithModel| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| refcode | string |
None. |
|
| total | integer |
None. |
|
| datas | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"refcode": "sample string 3",
"total": 4,
"datas": {}
}
application/xml, text/xml
Sample:
<ResultWithModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models"> <datas /> <message>sample string 2</message> <refcode>sample string 3</refcode> <success>true</success> <total>4</total> </ResultWithModel>