POST Authentication/RegisterType2
Request Information
URI Parameters
None.
Body Parameters
RegisterRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CourierType | integer |
None. |
|
| VehicleType | integer |
None. |
|
| Phone | string |
None. |
|
| Password | string |
None. |
|
| Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CourierType": 1,
"VehicleType": 2,
"Phone": "sample string 3",
"Password": "sample string 4",
"Name": "sample string 5"
}
application/xml, text/xml
Sample:
<Authentication.RegisterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveriGoRestAPI.Models"> <CourierType>1</CourierType> <Name>sample string 5</Name> <Password>sample string 4</Password> <Phone>sample string 3</Phone> <VehicleType>2</VehicleType> </Authentication.RegisterRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
GeneralResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2"
}
application/xml, text/xml
Sample:
<CourierModels.GeneralResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveriGoRestAPI.Models"> <message>sample string 2</message> <success>true</success> </CourierModels.GeneralResponse>