Ozellik Gruplari
Urun ozelliklerini gruplamak icin kullanilan yapilar (ornegin "Fiziksel Ozellikler", "Teknik Ozellikler").
Base URL: /api/tenant/product-catalog/attribute-groups
Yetkilendirme: Bearer Token + X-Api-Key
Modul: Product Catalog modulu musteriye atanmis olmalidir.
Headers:
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
X-Api-Key: customer-api-key
POST /
Yeni ozellik grubu olusturur.
Request Body:
{
"sortOrder": 1,
"isActive": true,
"translations": [
{
"languageId": "9cd14a82-...",
"name": "Fiziksel Ozellikler"
}
]
}
| Alan | Tip | Zorunlu | Aciklama |
|---|---|---|---|
sortOrder | int | Hayir | Siralama degeri |
isActive | bool | Hayir | Aktiflik durumu (varsayilan: true) |
translations | AttributeGroupTranslationRequest[] | Evet | Dil cevirileri |
AttributeGroupTranslationRequest
| Alan | Tip | Zorunlu | Aciklama |
|---|---|---|---|
languageId | Guid | Evet | Dil ID |
name | string | Evet | Grup adi |
Response — 201 Created:
{
"success": true,
"data": {
"id": "3fa85f64-...",
"sortOrder": 1,
"isActive": true,
"createdAt": "2026-03-28T14:00:00Z",
"updatedAt": null,
"translations": [
{
"languageId": "9cd14a82-...",
"languageCode": "tr",
"name": "Fiziksel Ozellikler"
}
]
}
}
GET /
Tum ozellik gruplarini listeler.
Response — 200 OK: AttributeGroupResponse[] dizisi doner.
GET /{id}
Belirli bir ozellik grubunu getirir.
Response — 200 OK: AttributeGroupResponse objesi doner.
PUT /{id}
Ozellik grubunu gunceller.
Request Body: CreateAttributeGroupRequest ile ayni yapidir.
Response — 200 OK: AttributeGroupResponse objesi doner.
DELETE /{id}
Ozellik grubunu siler (soft delete).
Response — 204 No Content
Olasi Hatalar
| Kod | Durum |
|---|---|
401 | Token eksik veya gecersiz |
403 | Tenant kullanicisi yetkisi yok veya product-catalog modul erisimi yok |
404 | Ozellik grubu bulunamadi |