GET api/Vehicle/modifications?modelId={modelId}

Получить модификации автомобиля по идентификатору модели автомобиля

Request Information

URI Parameters

ИмяОписаниеТипДополнительная информация
modelId

Идентификатор модели автомобиля

integer

Required

Body Parameters

None.

Response Information

Resource Description

Список модификаций

Collection of ModificationViewModel
ИмяОписаниеТипДополнительная информация
Id

Идентификатор модификации

integer

None.

Name

Наименование модификации

string

None.

From

Дата начала выпуска

date

None.

To

Дата окончания выпуска

date

None.

BodyType

Тип кузова

string

None.

Cylinder

Количество цилиндров

integer

None.

CylinderCapacityCcm

Рабочий обьем в кубических сантиметрах

integer

None.

CylinderCapacityLiter

Рабочий обьем в литрах

decimal number

None.

FuelType

Вид топлива

string

None.

FuelTypeProcess

Подготовка топлива

string

None.

ImpulsionType

Тип привода

string

None.

EngineType

Вид двигателя

string

None.

EngineCodes

Коды двигателей

Collection of string

None.

PowerHP

Мощность в л/c

integer

None.

PowerKW

Мощность в кВт

integer

None.

Valves

Количество клапанов на цилиндр

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "From": "2019-10-14T16:28:41.7447096+03:00",
    "To": "2019-10-14T16:28:41.7447096+03:00",
    "BodyType": "sample string 3",
    "Cylinder": 1,
    "CylinderCapacityCcm": 1,
    "CylinderCapacityLiter": 1.1,
    "FuelType": "sample string 4",
    "FuelTypeProcess": "sample string 5",
    "ImpulsionType": "sample string 6",
    "EngineType": "sample string 7",
    "EngineCodes": [
      "sample string 1",
      "sample string 2"
    ],
    "PowerHP": 1,
    "PowerKW": 1,
    "Valves": 1
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "From": "2019-10-14T16:28:41.7447096+03:00",
    "To": "2019-10-14T16:28:41.7447096+03:00",
    "BodyType": "sample string 3",
    "Cylinder": 1,
    "CylinderCapacityCcm": 1,
    "CylinderCapacityLiter": 1.1,
    "FuelType": "sample string 4",
    "FuelTypeProcess": "sample string 5",
    "ImpulsionType": "sample string 6",
    "EngineType": "sample string 7",
    "EngineCodes": [
      "sample string 1",
      "sample string 2"
    ],
    "PowerHP": 1,
    "PowerKW": 1,
    "Valves": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfModificationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoCatalogApi.Models">
  <ModificationViewModel>
    <BodyType>sample string 3</BodyType>
    <Cylinder>1</Cylinder>
    <CylinderCapacityCcm>1</CylinderCapacityCcm>
    <CylinderCapacityLiter>1.1</CylinderCapacityLiter>
    <EngineCodes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </EngineCodes>
    <EngineType>sample string 7</EngineType>
    <From>2019-10-14T16:28:41.7447096+03:00</From>
    <FuelType>sample string 4</FuelType>
    <FuelTypeProcess>sample string 5</FuelTypeProcess>
    <Id>1</Id>
    <ImpulsionType>sample string 6</ImpulsionType>
    <Name>sample string 2</Name>
    <PowerHP>1</PowerHP>
    <PowerKW>1</PowerKW>
    <To>2019-10-14T16:28:41.7447096+03:00</To>
    <Valves>1</Valves>
  </ModificationViewModel>
  <ModificationViewModel>
    <BodyType>sample string 3</BodyType>
    <Cylinder>1</Cylinder>
    <CylinderCapacityCcm>1</CylinderCapacityCcm>
    <CylinderCapacityLiter>1.1</CylinderCapacityLiter>
    <EngineCodes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </EngineCodes>
    <EngineType>sample string 7</EngineType>
    <From>2019-10-14T16:28:41.7447096+03:00</From>
    <FuelType>sample string 4</FuelType>
    <FuelTypeProcess>sample string 5</FuelTypeProcess>
    <Id>1</Id>
    <ImpulsionType>sample string 6</ImpulsionType>
    <Name>sample string 2</Name>
    <PowerHP>1</PowerHP>
    <PowerKW>1</PowerKW>
    <To>2019-10-14T16:28:41.7447096+03:00</To>
    <Valves>1</Valves>
  </ModificationViewModel>
</ArrayOfModificationViewModel>