How to get subcategries for each category in REST API?
I tried to get category as:
https://domain.com/index.php/rest/V1/categories/:categoryID
apimagento2rest
How to get subcategries for each category in REST API?
I tried to get category as:
https://domain.com/index.php/rest/V1/categories/:categoryID
Best Answer
That is correct, are you sure you're using a valid category ID? Example:
https://domain.com/rest/V1/categories/2
Then you can get the sub categories from the response,
response.children
.