GET api/Vehicle/applicableModifications?modelId={modelId}&vendorCode={vendorCode}&vendorName={vendorName}&loadApplicableProperties={loadApplicableProperties}

Получить модификации автомобиля по идентификатору модели автомобиля, коду и наименованию производителя запчасти (детали)

Request Information

URI Parameters

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

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

integer

Required

vendorCode

Код (артикул)

string

Required

vendorName

Наименование производителя (бренд)

string

Required

loadApplicableProperties

Включать в ответ свойства детали для текущей модификации

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

Список модификаций автомобиля, в которых применяется указанная запчасть (деталь)

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

Свойства для выбранной модификации

Collection of PropertyPropertyValueViewModel

None.

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:
[
  {
    "ApplicableProperties": [
      {
        "Property": {
          "Rank": 1,
          "Name": "sample string 2",
          "ShortName": "sample string 3",
          "UnitName": "sample string 4"
        },
        "Values": [
          {
            "Rank": 1,
            "Value": "sample string 2"
          },
          {
            "Rank": 1,
            "Value": "sample string 2"
          }
        ]
      },
      {
        "Property": {
          "Rank": 1,
          "Name": "sample string 2",
          "ShortName": "sample string 3",
          "UnitName": "sample string 4"
        },
        "Values": [
          {
            "Rank": 1,
            "Value": "sample string 2"
          },
          {
            "Rank": 1,
            "Value": "sample string 2"
          }
        ]
      }
    ],
    "Id": 1,
    "Name": "sample string 2",
    "From": "2019-10-14T17:03:32.6516694+03:00",
    "To": "2019-10-14T17:03:32.6516694+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
  },
  {
    "ApplicableProperties": [
      {
        "Property": {
          "Rank": 1,
          "Name": "sample string 2",
          "ShortName": "sample string 3",
          "UnitName": "sample string 4"
        },
        "Values": [
          {
            "Rank": 1,
            "Value": "sample string 2"
          },
          {
            "Rank": 1,
            "Value": "sample string 2"
          }
        ]
      },
      {
        "Property": {
          "Rank": 1,
          "Name": "sample string 2",
          "ShortName": "sample string 3",
          "UnitName": "sample string 4"
        },
        "Values": [
          {
            "Rank": 1,
            "Value": "sample string 2"
          },
          {
            "Rank": 1,
            "Value": "sample string 2"
          }
        ]
      }
    ],
    "Id": 1,
    "Name": "sample string 2",
    "From": "2019-10-14T17:03:32.6516694+03:00",
    "To": "2019-10-14T17:03:32.6516694+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:
<ArrayOfApplicableModificationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoCatalogApi.Models">
  <ApplicableModificationViewModel>
    <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-14T17:03:32.6516694+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-14T17:03:32.6516694+03:00</To>
    <Valves>1</Valves>
    <ApplicableProperties>
      <PropertyPropertyValueViewModel>
        <Property>
          <Name>sample string 2</Name>
          <Rank>1</Rank>
          <ShortName>sample string 3</ShortName>
          <UnitName>sample string 4</UnitName>
        </Property>
        <Values>
          <PropertyValueViewModel>
            <Rank>1</Rank>
            <Value>sample string 2</Value>
          </PropertyValueViewModel>
          <PropertyValueViewModel>
            <Rank>1</Rank>
            <Value>sample string 2</Value>
          </PropertyValueViewModel>
        </Values>
      </PropertyPropertyValueViewModel>
      <PropertyPropertyValueViewModel>
        <Property>
          <Name>sample string 2</Name>
          <Rank>1</Rank>
          <ShortName>sample string 3</ShortName>
          <UnitName>sample string 4</UnitName>
        </Property>
        <Values>
          <PropertyValueViewModel>
            <Rank>1</Rank>
            <Value>sample string 2</Value>
          </PropertyValueViewModel>
          <PropertyValueViewModel>
            <Rank>1</Rank>
            <Value>sample string 2</Value>
          </PropertyValueViewModel>
        </Values>
      </PropertyPropertyValueViewModel>
    </ApplicableProperties>
  </ApplicableModificationViewModel>
  <ApplicableModificationViewModel>
    <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-14T17:03:32.6516694+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-14T17:03:32.6516694+03:00</To>
    <Valves>1</Valves>
    <ApplicableProperties>
      <PropertyPropertyValueViewModel>
        <Property>
          <Name>sample string 2</Name>
          <Rank>1</Rank>
          <ShortName>sample string 3</ShortName>
          <UnitName>sample string 4</UnitName>
        </Property>
        <Values>
          <PropertyValueViewModel>
            <Rank>1</Rank>
            <Value>sample string 2</Value>
          </PropertyValueViewModel>
          <PropertyValueViewModel>
            <Rank>1</Rank>
            <Value>sample string 2</Value>
          </PropertyValueViewModel>
        </Values>
      </PropertyPropertyValueViewModel>
      <PropertyPropertyValueViewModel>
        <Property>
          <Name>sample string 2</Name>
          <Rank>1</Rank>
          <ShortName>sample string 3</ShortName>
          <UnitName>sample string 4</UnitName>
        </Property>
        <Values>
          <PropertyValueViewModel>
            <Rank>1</Rank>
            <Value>sample string 2</Value>
          </PropertyValueViewModel>
          <PropertyValueViewModel>
            <Rank>1</Rank>
            <Value>sample string 2</Value>
          </PropertyValueViewModel>
        </Values>
      </PropertyPropertyValueViewModel>
    </ApplicableProperties>
  </ApplicableModificationViewModel>
</ArrayOfApplicableModificationViewModel>