-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions (*)
Magento version: community 2.3.3
Rest Api : rest/all/V1/categories
Method: Get
Steps to reproduce (*)
Make a get call to the rest api rest/all/V1/categories
check the response:
The response should contain name for the child category
Expected result (*)
{
"id": 1,
"parent_id": 0,
"name": "sss",
"is_active": null,
"position": 0,
"level": 0,
"product_count": null,
"children_data": [
{
"id": 2,
"parent_id": 1,
"name": "sss",
"is_active": true,
"position": 1,
"level": 1,
"product_count": null,
"children_data": []
},
{
"id": 3,
"parent_id": 1,
"name": "sss",
"is_active": true,
"position": 2,
"level": 1,
"product_count": null,
"children_data": [
{
"id": 4,
"parent_id": 3,
"name": "sss",
"is_active": true,
"position": 1,
"level": 2,
"product_count": null,
"children_data": []
}
]
}
]
}
Actual result (*)
{"id":1,"parent_id":0,"name":null,"is_active":null,"position":0,"level":0,"product_count":null,"children_data":[{"id":2,"parent_id":1,"name":null,"is_active":null,"position":1,"level":1,"product_count":null,"children_data":[]},{"id":3,"parent_id":1,"name":null,"is_active":null,"position":2,"level":1,"product_count":null,"children_data":[{"id":4,"parent_id":3,"name":null,"is_active":null,"position":1,"level":2,"product_count":null,"children_data":[]}]}]}