GET api/Car

Gets all cars.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of cars.

Collection of Car
NameDescriptionTypeAdditional information
id

Gets or sets the ID of the car.

integer

None.

carName

Gets or sets the name of the car.

string

None.

carImage

Gets or sets the URL of the car image.

string

None.

likes

Gets or sets the number of likes the car has.

integer

None.

price

Gets or sets the price of the car.

string

None.

about

Gets or sets the description of the car.

string

None.

spec

Gets or sets the specifications of the car.

string

None.

brand

Gets or sets the brand of the car.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "carName": "sample string 2",
    "carImage": "sample string 3",
    "likes": 4,
    "price": "sample string 5",
    "about": "sample string 6",
    "spec": "sample string 7",
    "brand": "sample string 8"
  },
  {
    "id": 1,
    "carName": "sample string 2",
    "carImage": "sample string 3",
    "likes": 4,
    "price": "sample string 5",
    "about": "sample string 6",
    "spec": "sample string 7",
    "brand": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCar xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
  <Car>
    <about>sample string 6</about>
    <brand>sample string 8</brand>
    <carImage>sample string 3</carImage>
    <carName>sample string 2</carName>
    <id>1</id>
    <likes>4</likes>
    <price>sample string 5</price>
    <spec>sample string 7</spec>
  </Car>
  <Car>
    <about>sample string 6</about>
    <brand>sample string 8</brand>
    <carImage>sample string 3</carImage>
    <carName>sample string 2</carName>
    <id>1</id>
    <likes>4</likes>
    <price>sample string 5</price>
    <spec>sample string 7</spec>
  </Car>
</ArrayOfCar>