GET api/drivers/{id}/addesses/{addressId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
|
| addressId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
DriverAddressDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| driver_id | integer |
None. |
|
| address | string |
None. |
|
| city | string |
None. |
|
| country | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"driver_id": 2,
"address": "sample string 3",
"city": "sample string 4",
"country": "sample string 5"
}
application/xml, text/xml
Sample:
<DriverAddressDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/autocenter_api.Models.DTO"> <address>sample string 3</address> <city>sample string 4</city> <country>sample string 5</country> <driver_id>2</driver_id> <id>1</id> </DriverAddressDTO>