Skip to content

Magento 2.3.3 rest api Get call rest/all/V1/categories not returning name in the the response #25837

@YouCanDoIt12

Description

@YouCanDoIt12

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":[]}]}]}

Metadata

Metadata

Labels

Issue: Format is validGate 1 Passed. Automatic verification of issue format passed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions