Model Detail
# Araç Detayı
Verilen araç koduna ait detay bilgisini döner. **Listeleme değil, tek nesne** döner. Sonuç 24 saat cache'lenir.
## Uç Nokta (Endpoint)
`GET {{baseUrl}}/api/Vehicles/{vehicleCode}/detail/{year}`
## Kimlik Doğrulama
Üst koleksiyondan miras alınan **Bearer Token** kullanılır; token `{{accessToken}}` değişkeninden çözümlenir ve ilgili rolde **Read** yetkisi gerektirir.
## Path Parametreleri
| Parametre | Tip | Zorunlu | Varsayılan | Açıklama |
| --- | --- | --- | --- | --- |
| vehicleCode | string | ✅ | — | Araç kodu. |
| year | integer | ❌ | İçinde bulunulan yıl | Fiyat yılı. Boş veya 0 gönderilirse mevcut yıl kullanılır. (Rota: `{year?}`) |
## Örnek İstek
```
GET {{baseUrl}}/api/Vehicles/RENAULT_CLIO_2024_5D/detail/2024
```
Yıl belirtmeden (mevcut yıl kullanılır):
```
GET {{baseUrl}}/api/Vehicles/RENAULT_CLIO_2024_5D/detail
```
## Yanıt Yapısı
### Başarılı Yanıt (200 OK)
``` json
{
"VehicleCode": "0091351",
"VehicleTypeTraffic": "01",
"VehicleSubTypeTraffic": "1",
"NumberOfSeats": "5",
"NumberOfPassenger": "4",
"VehicleTypeCasco": "01",
"VehicleSubTypeCasco": "1",
"Model": "A7 SPORTBACK 3.0 50 TDI QUATTRO (286) TIPTRON",
"Brand": "AUDI",
"Price": "11885649",
"PriceYear": 2025
}
```
## **Response Parametreleri:**
| **Alan** | **Tip** | **Açıklama** |
| --- | --- | --- |
| VehicleCode | string | Araç kodu. |
| VehicleTypeTraffic | string | Trafik araç tipi. |
| VehicleSubTypeTraffic | string | Trafik araç alt tipi. |
| NumberOfSeats | string | Koltuk sayısı. |
| NumberOfPassenger | string | Yolcu sayısı. |
| VehicleTypeCasco | string | Kasko araç tipi. |
| VehicleSubTypeCasco | string | Kasko araç alt tipi. |
| Model | string | Model adı. |
| Brand | string | Marka adı. |
| Price | string | Fiyat. |
| PriceYear | integer | Fiyatın ait olduğu yıl. |
> Not: Kayıt bulunamazsa servis davranışına göre `null` veya boş nesne dönebilir.
## Hata Yanıtları
**400 Bad Request**
```
İşlem sırasında bir hata oluştu! RequestId: 0HN1GPVL2F3Q0:00000007, LogId: 9f8e7d6c5b4a
```
| Durum Kodu | Gövde | Açıklama |
| --- | --- | --- |
| 401 Unauthorized | (boş) | Token yok / geçersiz / süresi dolmuş. |
| 403 Forbidden | (boş) | Rol bu uç için Read yetkisine sahip değil veya IP beyaz listede değil. |
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
vehicleCode
year
Headers
Accept
Response headers
Transfer-Encoding
Content-Type
Content-Encoding
Vary
X-Frame-Options
X-XSS-Protection
X-Content-Type-Options
Referrer-Policy
X-Powered-By
Date
Response
OK
