Query parameters
-
rootCategoryId integer
-
depth integer
GET /V1/categories
curl \
-X GET https://magento2.winkelstraat.mac/rest/all/V1/categories
Response examples (200)
{
"id": 42,
"parent_id": 42,
"name": "string",
"is_active": true,
"position": 42,
"level": 42,
"product_count": 42,
"children_data": [
{}
]
}
Response examples (400)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}