GET api/Auto?makeId={makeId}&type={type}&modelSlug={modelSlug}&userGuid={userGuid}&apiKey={apiKey}
Возвращает модель по слагу
Информация о запросе
URI параметры
| Имя | Описание | Тип | Дополнительная информация |
|---|---|---|---|
| makeId |
Id производителя |
integer |
Required |
| type |
Тип |
VehicleType |
Required |
| modelSlug |
Слаг наименования модели |
string |
Required |
| userGuid |
Ваш UserGuid |
globally unique identifier |
Нет. |
| apiKey |
Ваш ApiKey |
string |
Нет. |
Параметры тела запроса
Нет.
Информация об ответе
Описание ресурсов
Модель автомобиля
ModelViewModel| Имя | Описание | Тип | Дополнительная информация |
|---|---|---|---|
| Id |
Идентификатор |
integer |
Нет. |
| Name |
Название |
string |
Нет. |
| MakeId |
Идентификатор производителя |
integer |
Нет. |
| Slug |
Слаг |
string |
Нет. |
| Type |
Тип авто |
VehicleType |
Нет. |
| HasGenerations |
Указывает имеются ли у модели поколения |
boolean |
Нет. |
Форматы ответа
application/json, text/json
Пример:
{
"Id": 1,
"Name": "sample string 2",
"MakeId": 3,
"Slug": "sample string 4",
"Type": 0,
"HasGenerations": true
}
multipart/form-data
Пример:
{"Id":1,"Name":"sample string 2","MakeId":3,"Slug":"sample string 4","Type":0,"HasGenerations":true}
application/xml, text/xml
Пример:
<ModelViewModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>1</Id> <Name>sample string 2</Name> <MakeId>3</MakeId> <Slug>sample string 4</Slug> <Type>Car</Type> <HasGenerations>true</HasGenerations> </ModelViewModel>