Sub Category
This service is used to list subcategories based on the categoryId. Providing the categoryId is mandatory when using this service.
see: 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>/sub-categories'
--header 'Content-Type: application/json'
--header 'Authorization: Basic ZGVtbzpwQDU1dzByZA=='
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
categoryId | Integer | Yes | Used to list subcategories by categoryId. |
Response
[
{
"id": 5,
"name": "Blender",
"categoryId": 1
},
{
"id": 6,
"name": "Çay Makinesi",
"categoryId": 1
},
{
"id": 4,
"name": "Kahve Makinesi",
"categoryId": 1
},
{
"id": 3,
"name": "Robot Süpürge",
"categoryId": 1
},
{
"id": 1,
"name": "Süpürge",
"categoryId": 1
},
{
"id": 9,
"name": "Tartı",
"categoryId": 1
},
{
"id": 7,
"name": "Tost Makinesi",
"categoryId": 1
},
{
"id": 2,
"name": "Ütü",
"categoryId": 1
},
{
"id": 8,
"name": "Waffle Makinesi",
"categoryId": 1
}
]