Category
This service is used to list categories based on the mainCategoryId. Providing the mainCategoryId is mandatory when using this service.
see: Main Category
Warning
An example is provided in the Response section. Please note that this example data may not include all fields and is intended for illustrative purposes only.
Request
curl --location --request GET '<BASE_URL>/categories'
--header 'Content-Type: application/json'
--header 'Authorization: Basic ZGVtbzpwQDU1dzByZA=='
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
mainCategoryId | Integer | Yes | Used to list categories with parent category id. |
Response
[
{
"id": 7,
"name": "Beyaz Eşya",
"mainCategoryId": 1
},
{
"id": 4,
"name": "Bilgisayar & Tablet",
"mainCategoryId": 1
},
{
"id": 8,
"name": "Elektronik Aksesuarlar",
"mainCategoryId": 1
},
{
"id": 10,
"name": "Foto & Kamera",
"mainCategoryId": 1
},
{
"id": 2,
"name": "Giyilebilir Teknoloji",
"mainCategoryId": 1
},
{
"id": 6,
"name": "Kişisel Bakım Aletleri",
"mainCategoryId": 1
},
{
"id": 1,
"name": "Küçük Ev Aletleri",
"mainCategoryId": 1
},
{
"id": 9,
"name": "Oyunculara Özel",
"mainCategoryId": 1
},
{
"id": 3,
"name": "Telefon",
"mainCategoryId": 1
},
{
"id": 5,
"name": "TV & Görüntü & Ses",
"mainCategoryId": 1
}
]