GET api/Car/GetOne?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
CarDto| Name | Description | Type | Additional information |
|---|---|---|---|
| plate | string |
None. |
|
| insurancePolicyValidity | date |
None. |
|
| owner | string |
None. |
|
| color | ColorEnum |
None. |
|
| colorName | string |
None. |
|
| manufactureYear | integer |
None. |
|
| modelYear | integer |
None. |
|
| steeringTypeEnum | CarSteeringTypeEnum |
None. |
|
| steeringTypeEnumName | string |
None. |
|
| gearBoxEnum | CarGearBoxEnum |
None. |
|
| gearBoxEnumName | string |
None. |
|
| carModelName | string |
None. |
|
| manufacturerId | integer |
None. |
|
| manufacturerName | string |
None. |
|
| insurancePolicy | string |
None. |
|
| carModelId | integer |
None. |
|
| clientId | integer |
None. |
|
| clientName | string |
None. |
|
| insuranceCompanyId | integer |
None. |
|
| key | integer |
None. |
|
| id | integer |
None. |
|
| isNew | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"plate": "sample string 1",
"insurancePolicyValidity": "2025-11-08T09:43:11.2358978-03:00",
"owner": "sample string 3",
"color": 1,
"colorName": "sample string 4",
"manufactureYear": 1,
"modelYear": 1,
"steeringTypeEnum": 1,
"steeringTypeEnumName": "sample string 5",
"gearBoxEnum": 1,
"gearBoxEnumName": "sample string 6",
"carModelName": "sample string 7",
"manufacturerId": 8,
"manufacturerName": "sample string 9",
"insurancePolicy": "sample string 10",
"carModelId": 11,
"clientId": 12,
"clientName": "sample string 13",
"insuranceCompanyId": 14,
"key": 15,
"id": 15,
"isNew": true
}
application/xml, text/xml
Sample:
<CarDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffDriver.Webapi.Models.MasterData"> <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew> <key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">15</key> <carModelId>11</carModelId> <carModelName>sample string 7</carModelName> <clientId>12</clientId> <clientName>sample string 13</clientName> <color>Preto</color> <colorName>sample string 4</colorName> <gearBoxEnum>Manual</gearBoxEnum> <gearBoxEnumName>sample string 6</gearBoxEnumName> <insuranceCompanyId>14</insuranceCompanyId> <insurancePolicy>sample string 10</insurancePolicy> <insurancePolicyValidity>2025-11-08T09:43:11.2358978-03:00</insurancePolicyValidity> <manufactureYear>1</manufactureYear> <manufacturerId>8</manufacturerId> <manufacturerName>sample string 9</manufacturerName> <modelYear>1</modelYear> <owner>sample string 3</owner> <plate>sample string 1</plate> <steeringTypeEnum>Cremalheira_e_Pinhão</steeringTypeEnum> <steeringTypeEnumName>sample string 5</steeringTypeEnumName> </CarDto>