Get Attributes by Category
Get all attributes for a specific category (includes multilingual names/values).
Endpoint
Authentication
Required (Store role)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | Category ID |
Response
Success (200 OK)
[
{
"id": 1,
"name": "Color",
"name_az": "Rəng",
"name_en": "Color",
"name_es": "Color",
"name_de": "Farbe",
"type": "select",
"values": "[{\"name\":\"Red\"},{\"name\":\"Blue\"}]",
"values_az": "[{\"name\":\"Qırmızı\"},{\"name\":\"Mavi\"}]",
"values_en": "[{\"name\":\"Red\"},{\"name\":\"Blue\"}]",
"values_es": "[{\"name\":\"Rojo\"},{\"name\":\"Azul\"}]",
"values_de": "[{\"name\":\"Rot\"},{\"name\":\"Blau\"}]",
"options_api": "",
"category_id": 1,
"category": {
"id": 1,
"name": "Elektronika",
"name_az": "Elektronika",
"name_en": "Electronics",
"name_es": "Electrónica",
"name_de": "Elektronik",
"image": "https://...",
"parent_id": null
},
"is_filter": true,
"is_view": true,
"created": "2025-01-15T10:30:00Z"
}
]
Error Responses
Category Not Found (404)
Notes
- Returns non-deleted attributes for the given category.
- Includes multilingual fields for names (
name_az/en/es/de) and values (values_az/en/es/de), with English fallback when a locale is missing. values_*are JSON array strings for select/checkbox types.
Get Attributes By Category
Get all attributes for a specific category.
Endpoint
Authentication
Not required (public endpoint)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | Category ID |
Response
Success (200 OK)
[
{
"id": 1,
"name": "Color",
"type": "select",
"values": "Red,Blue,Green",
"options_api": "",
"category_id": 1,
"category": {
"id": 1,
"name": "Electronics",
"image": "https://...",
"parent_id": null
},
"is_filter": true,
"is_view": true,
"created": "2025-01-15T10:30:00Z"
}
]
Error Responses
Missing ID Parameter (400)
Example Request
Notes
- Only returns non-deleted attributes
- Results are ordered by ID descending (newest first)
- This is a public endpoint, no authentication required