curl --location --request GET 'https://api.yourapp.com/subcategories/1' \ --header 'Accept: application/json'
{ "success": true, "message": "Subcategory retrieved successfully", "data": { "subcategory": { "id": 1, "name": "Smartphones", "description": "Mobile phones and related accessories", "category": { "id": 1, "name": "Electronics", "description": "Electronic devices and components" }, "created_at": "2024-03-08T09:15:00.000000Z", "updated_at": "2024-03-08T09:15:00.000000Z" } } }
Retrieve a specific subcategory by its ID
Show data
Show subcategory
Show category