POST api/Cargo/AddDriver
Request Information
URI Parameters
None.
Body Parameters
DriverModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DriverId | integer |
None. |
|
| DriverName | string |
None. |
|
| DriverMobile | string |
None. |
|
| IsActive | boolean |
None. |
|
| Notes | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DriverId": 1,
"DriverName": "sample string 2",
"DriverMobile": "sample string 3",
"IsActive": true,
"Notes": "sample string 5"
}
application/xml, text/xml
Sample:
<DriverModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models"> <DriverId>1</DriverId> <DriverMobile>sample string 3</DriverMobile> <DriverName>sample string 2</DriverName> <IsActive>true</IsActive> <Notes>sample string 5</Notes> </DriverModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | string |
None. |
|
| ErrorText | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": "sample string 1",
"ErrorText": "sample string 2",
"Data": {}
}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models"> <Data /> <ErrorText>sample string 2</ErrorText> <Success>sample string 1</Success> </ResultModel>