Retrieves all the cars
Request Information
URI Parameters :
None.
Body Parameters :
None.
Response Information
Resource Description :
IHttpActionResult
car| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary Key |
globally unique identifier | |
| name |
Name of the car |
string |
Required Max length: 64 |
| licence_plate |
Licence Plate Of the car |
string | |
| initial_km |
Actual KM value of the car before starting to add car travel on odyssee |
integer | |
| mileage_mandatory | boolean | ||
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date | |
| current_km |
Current KM value of the car |
integer |
Response Formats
application/json, text/json
Sample:
{
"id": "95c7aa48-f0bd-4e9f-b478-90629c00c4a0",
"name": "sample string 2",
"licence_plate": "sample string 3",
"initial_km": 4,
"mileage_mandatory": true,
"modified_dateutc": "2026-01-11T23:43:16.9676064+00:00",
"current_km": 7
}
application/xml, text/xml
Sample:
<car xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <current_km>7</current_km> <id>95c7aa48-f0bd-4e9f-b478-90629c00c4a0</id> <initial_km>4</initial_km> <licence_plate>sample string 3</licence_plate> <mileage_mandatory>true</mileage_mandatory> <modified_dateutc>2026-01-11T23:43:16.967Z</modified_dateutc> <name>sample string 2</name> </car>