cURL
curl --request GET \ --url https://api.example.com/api/categories/:slug
{ "category": { "_id": "507f1f77bcf86cd799439011", "name": "Technology", "slug": "technology", "description": "Articles about technology and innovation", "createdAt": "2024-01-15T10:30:00.000Z" } }
Retrieve a specific category by its slug
Show Properties
{ "error": "Category not found" }
{ "error": "Database connection failed" }
curl https://api.vaniyk-empire.com/api/categories/technology