GET api/drivers/{id}/contacts
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DriverContactDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| number | string |
None. |
|
| types | integer |
None. |
|
| primary | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"number": "sample string 2",
"types": 3,
"primary": true
},
{
"id": 1,
"number": "sample string 2",
"types": 3,
"primary": true
}
]
application/xml, text/xml
Sample:
<ArrayOfDriverContactDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/autocenter_api.Models.DTO">
<DriverContactDTO>
<id>1</id>
<number>sample string 2</number>
<primary>true</primary>
<types>3</types>
</DriverContactDTO>
<DriverContactDTO>
<id>1</id>
<number>sample string 2</number>
<primary>true</primary>
<types>3</types>
</DriverContactDTO>
</ArrayOfDriverContactDTO>