POST api/TruckRegister/CreateHandheld
Request Information
URI Parameters
None.
Body Parameters
CreatemhhdModel| Name | Description | Type | Additional information |
|---|---|---|---|
| hhid | string |
None. |
|
| groupid | string |
None. |
|
| shortname | string |
None. |
|
| tag | string |
None. |
|
| speedlimitid | string |
None. |
|
| fuelcost | decimal number |
None. |
|
| fixedcost | decimal number |
None. |
|
| timecost | decimal number |
None. |
|
| endpoint | string |
None. |
|
| btname | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"hhid": "sample string 1",
"groupid": "sample string 2",
"shortname": "sample string 3",
"tag": "sample string 4",
"speedlimitid": "sample string 5",
"fuelcost": 1.1,
"fixedcost": 1.1,
"timecost": 1.1,
"endpoint": "sample string 6",
"btname": "sample string 7"
}
application/xml, text/xml
Sample:
<TruckRegisterController.CreatemhhdModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Controllers"> <btname>sample string 7</btname> <endpoint>sample string 6</endpoint> <fixedcost>1.1</fixedcost> <fuelcost>1.1</fuelcost> <groupid>sample string 2</groupid> <hhid>sample string 1</hhid> <shortname>sample string 3</shortname> <speedlimitid>sample string 5</speedlimitid> <tag>sample string 4</tag> <timecost>1.1</timecost> </TruckRegisterController.CreatemhhdModel>
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>