🛒 Ecommerce
Get category by id
The API endpoint allows users to fetch a category based on the categoryId provided as a path variable in the URL.
When accessing this endpoint and providing a valid categoryId, the response will contain the details and information associated with the specified category.
get/ecommerce/categories/{categoryId}
Response
Get category by id
Example response
{
"data": {
"_id": "649e792a64e7dba29b7265fc",
"createdAt": "2023-06-30T06:41:46.367Z",
"name": "sleek",
"owner": "649e792964e7dba29b72634a",
"updatedAt": "2023-06-30T06:41:46.367Z"
},
"message": "Category fetched successfully",
"statusCode": 200,
"success": true
}