ForAgent - SubParameter
ForAgent - SubParameter
# Alt Parametre + Acente Bazlı Bağımlılıklar
Bağlı parametreleri **alt parametre Id'sine göre** ve **acente bazlı** include/exclude kontrolü ile sayfalı döner.
## Uç Nokta (Endpoint)
`GET {{baseUrl}}/api/parameters/{parameterId}/parameterValues/{parameterValue}/Dependencies/{subParameterId}/ForAgent/{agentId}`
## 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 |
| --- | --- | --- | --- |
| parameterId | integer | ✅ | DependentParameterId — bağlı (ana) parametrenin Id'si. |
| parameterValue | string | ✅ | Bağlı parametrenin değeri (DependentParameterValue). |
| subParameterId | integer | ✅ | Alt parametre Id — sonuçları bu alt parametreye göre filtreler. |
| agentId | integer | ✅ | Acente Id. |
## Sorgu Parametreleri
| Parametre | Tip | Zorunlu | Varsayılan | Açıklama |
| --- | --- | --- | --- | --- |
| query | string | ❌ | (boş) | Arama metni. |
| page | integer | ❌ | 1 | Sayfa numarası. 1'den küçük gönderilirse 1'e sabitlenir. |
| pagesize | integer | ❌ | 100 | Sayfa boyutu. 1-100 aralığı dışındaysa 100 kullanılır. |
## Örnek İstek
```
GET {{baseUrl}}/api/parameters/1/parameterValues/TOYOTA/Dependencies/2/ForAgent/1001?query=&page=1&pagesize=100
```
## Yanıt Yapısı
### Başarılı Yanıt (200 OK)
``` json
{
"Data": [
{
"Id": 816,
"ParameterId": 3,
"ParameterValue": "1113",
"ParameterValueText": "AKÇAABAT",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 817,
"ParameterId": 3,
"ParameterValue": "1141",
"ParameterValueText": "ARAKLI",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 818,
"ParameterId": 3,
"ParameterValue": "1150",
"ParameterValueText": "ARSİN",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 819,
"ParameterId": 3,
"ParameterValue": "1244",
"ParameterValueText": "ÇAYKARA",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 820,
"ParameterId": 3,
"ParameterValue": "1507",
"ParameterValueText": "MAÇKA",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 821,
"ParameterId": 3,
"ParameterValue": "1548",
"ParameterValueText": "OF",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 822,
"ParameterId": 3,
"ParameterValue": "1647",
"ParameterValueText": "SÜRMENE",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 823,
"ParameterId": 3,
"ParameterValue": "1681",
"ParameterValueText": "TONYA",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 824,
"ParameterId": 3,
"ParameterValue": "1709",
"ParameterValueText": "VAKFIKEBİR",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 825,
"ParameterId": 3,
"ParameterValue": "1732",
"ParameterValueText": "YOMRA",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 826,
"ParameterId": 3,
"ParameterValue": "1775",
"ParameterValueText": "BEŞİKDÜZÜ",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 827,
"ParameterId": 3,
"ParameterValue": "1842",
"ParameterValueText": "ŞALPAZARI",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 828,
"ParameterId": 3,
"ParameterValue": "1896",
"ParameterValueText": "ÇARŞIBAŞI",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 829,
"ParameterId": 3,
"ParameterValue": "1909",
"ParameterValueText": "DERNEKPAZARI",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 830,
"ParameterId": 3,
"ParameterValue": "1917",
"ParameterValueText": "DÜZKÖY",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 831,
"ParameterId": 3,
"ParameterValue": "1942",
"ParameterValueText": "HAYRAT",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 832,
"ParameterId": 3,
"ParameterValue": "1966",
"ParameterValueText": "KÖPRÜBAŞI",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
},
{
"Id": 833,
"ParameterId": 3,
"ParameterValue": "2097",
"ParameterValueText": "ORTAHİSAR",
"DependentParameterId": 2,
"DependentParameterValue": "61",
"DependencyType": "=",
"DependencyConnectionTypeToOtherKey": null,
"DependencyExecutionLevelForOtherKey": null
}
],
"Page": 1,
"PageSize": 100,
"TotalCount": 18
}
```
## **Response Parametreleri:**
| **Alan** | **Tip** | **Açıklama** |
| --- | --- | --- |
| Data | array | `ParameterDependencyApiDTO` 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** |
| --- | --- | --- |
| Id | integer | Bağımlılık kaydının Id'si. |
| ParameterId | integer | Ana parametre Id. |
| ParameterValue | string | Ana parametre değeri. |
| ParameterValueText | string | Ana parametre değerinin metni. |
| DependentParameterId | integer | Bağlı parametre Id. |
| DependentParameterValue | string | Bağlı parametre değeri. |
| DependencyType | string | Bağımlılık tipi (ör. Model) |
| DependencyConnectionTypeToOtherKey | string | Diğer anahtara bağlanma tipi. |
| DependencyExecutionLevelForOtherKey | short / null | Diğer anahtar için çalışma seviyesi. |
## Hata Yanıtları
**400 Bad Request** — `[HandleException]` filtresi tüm hataları düz metne (`text/plain`) çevirir.
```
İşlem sırasında bir hata oluştu! RequestId: 0HN1GPVL2F3Q0:00000004, LogId: e90a47b1c2d3
```
| 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
parameterId
parameterValue
subParameterId
agentId
Headers
Accept
Query parameters
query
Arama sorgusu. 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
