GET api/getcars
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of CarName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Plates | string |
Required Max length: 15 |
|
Brand | string |
Required Max length: 35 |
|
Model | string |
Required Max length: 35 |
|
FuelType | FuelType |
None. |
|
FuelTypeId | integer |
None. |
|
Kilometers | decimal number |
None. |
|
Year | integer |
None. |
|
HasAdBlue | boolean |
None. |
|
ChassisNumber | string |
Max length: 50 |
|
KontoId | integer |
None. |
|
OfficeId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Plates": "sample string 2", "Brand": "sample string 3", "Model": "sample string 4", "FuelType": { "Id": 1, "Name": "sample string 2" }, "FuelTypeId": 5, "Kilometers": 6.1, "Year": 7, "HasAdBlue": true, "ChassisNumber": "sample string 9", "KontoId": 10, "OfficeId": 11 }, { "Id": 1, "Plates": "sample string 2", "Brand": "sample string 3", "Model": "sample string 4", "FuelType": { "Id": 1, "Name": "sample string 2" }, "FuelTypeId": 5, "Kilometers": 6.1, "Year": 7, "HasAdBlue": true, "ChassisNumber": "sample string 9", "KontoId": 10, "OfficeId": 11 } ]
application/xml, text/xml
Sample:
<ArrayOfCar xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GasTrackerAPI.Models"> <Car> <Brand>sample string 3</Brand> <ChassisNumber>sample string 9</ChassisNumber> <FuelType> <Id>1</Id> <Name>sample string 2</Name> </FuelType> <FuelTypeId>5</FuelTypeId> <HasAdBlue>true</HasAdBlue> <Id>1</Id> <Kilometers>6.1</Kilometers> <KontoId>10</KontoId> <Model>sample string 4</Model> <OfficeId>11</OfficeId> <Plates>sample string 2</Plates> <Year>7</Year> </Car> <Car> <Brand>sample string 3</Brand> <ChassisNumber>sample string 9</ChassisNumber> <FuelType> <Id>1</Id> <Name>sample string 2</Name> </FuelType> <FuelTypeId>5</FuelTypeId> <HasAdBlue>true</HasAdBlue> <Id>1</Id> <Kilometers>6.1</Kilometers> <KontoId>10</KontoId> <Model>sample string 4</Model> <OfficeId>11</OfficeId> <Plates>sample string 2</Plates> <Year>7</Year> </Car> </ArrayOfCar>