Brand Years
# Markaya Göre Model Yılları
Verilen markaya ait model yıllarını sayfalı şekilde döner. Sonuç 24 saat cache'lenir.
## Uç Nokta (Endpoint)
`GET {{baseUrl}}/api/Vehicles/{brand}`
## 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 | Açıklama |
| --- | --- | --- | --- |
| brand | string | ✅ | Marka değeri (ör. 009). |
## Sorgu Parametreleri
| Parametre | Tip | Zorunlu | Varsayılan | Açıklama |
| --- | --- | --- | --- | --- |
| query | string | ❌ | (boş) | Yıl arama metni. |
| page | integer | ❌ | 1 | Sayfa numarası. 1'den küçük gönderilirse 1'e sabitlenir. |
| pagesize | integer | ❌ | 100 | Sayfa başına kayıt. Maksimum 100. |
## Örnek İstek
```
GET {{baseUrl}}/api/Vehicles/RENAULT?query=&page=1&pagesize=100
```
## Yanıt Yapısı
### Başarılı Yanıt (200 OK)
``` json
{
"Data": [
{
"Value": "1975",
"Text": "1975"
},
{
"Value": "1979",
"Text": "1979"
},
{
"Value": "1980",
"Text": "1980"
},
{
"Value": "1981",
"Text": "1981"
},
{
"Value": "1982",
"Text": "1982"
},
{
"Value": "1983",
"Text": "1983"
},
{
"Value": "1984",
"Text": "1984"
},
{
"Value": "1985",
"Text": "1985"
},
{
"Value": "1986",
"Text": "1986"
},
{
"Value": "1987",
"Text": "1987"
},
{
"Value": "1988",
"Text": "1988"
},
{
"Value": "1989",
"Text": "1989"
},
{
"Value": "1990",
"Text": "1990"
},
{
"Value": "1991",
"Text": "1991"
},
{
"Value": "1992",
"Text": "1992"
},
{
"Value": "1993",
"Text": "1993"
},
{
"Value": "1994",
"Text": "1994"
},
{
"Value": "1995",
"Text": "1995"
},
{
"Value": "1996",
"Text": "1996"
},
{
"Value": "1997",
"Text": "1997"
},
{
"Value": "1998",
"Text": "1998"
},
{
"Value": "1999",
"Text": "1999"
},
{
"Value": "2000",
"Text": "2000"
},
{
"Value": "2001",
"Text": "2001"
},
{
"Value": "2002",
"Text": "2002"
},
{
"Value": "2003",
"Text": "2003"
},
{
"Value": "2004",
"Text": "2004"
},
{
"Value": "2005",
"Text": "2005"
},
{
"Value": "2006",
"Text": "2006"
},
{
"Value": "2007",
"Text": "2007"
},
{
"Value": "2008",
"Text": "2008"
},
{
"Value": "2009",
"Text": "2009"
},
{
"Value": "2010",
"Text": "2010"
},
{
"Value": "2011",
"Text": "2011"
},
{
"Value": "2012",
"Text": "2012"
},
{
"Value": "2013",
"Text": "2013"
},
{
"Value": "2014",
"Text": "2014"
},
{
"Value": "2015",
"Text": "2015"
},
{
"Value": "2016",
"Text": "2016"
},
{
"Value": "2017",
"Text": "2017"
},
{
"Value": "2018",
"Text": "2018"
},
{
"Value": "2019",
"Text": "2019"
},
{
"Value": "2020",
"Text": "2020"
},
{
"Value": "2021",
"Text": "2021"
},
{
"Value": "2022",
"Text": "2022"
},
{
"Value": "2023",
"Text": "2023"
},
{
"Value": "2024",
"Text": "2024"
},
{
"Value": "2025",
"Text": "2025"
},
{
"Value": "2026",
"Text": "2026"
}
],
"Page": 1,
"PageSize": 100,
"TotalCount": 49
}
```
## **Response Parametreleri:**
| **Alan** | **Tip** | **Açıklama** |
| --- | --- | --- |
| Data | array | `SelectListItemDTO` listesi. |
| Page | integer | Mevcut sayfa numarası. |
| PageSize | integer | Sayfa başına kayıt sayısı. |
| TotalCount | integer | Toplam kayıt sayısı. |
Data:
| **Alan** | **Tip** | **Açıklama** |
| --- | --- | --- |
| Value | string | Yıl değeri (kod). |
| Text | string | Yıl görünen metni. |
EndFragment
## Hata Yanıtları
**400 Bad Request**
```
İşlem sırasında bir hata oluştu! RequestId: 0HN1GPVL2F3Q0:00000006, LogId: 1a2b3c4d5e6f
```
| 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
brand
Headers
Accept
Query parameters
query
Yıl arama metni. Opsiyonel.
page
pagesize
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
