cURL
curl --request GET \ --url https://api.example.com/api/categories
{ "categories": [ { "_id": "507f1f77bcf86cd799439011", "name": "Technology", "slug": "technology", "description": "Articles about technology and innovation", "createdAt": "2024-01-15T10:30:00.000Z" }, { "_id": "507f1f77bcf86cd799439012", "name": "Travel", "slug": "travel", "description": "Travel guides and tips", "createdAt": "2024-01-16T14:20:00.000Z" } ] }
Retrieve a list of all categories
Show Category Object
{ "error": "Database connection failed" }
curl https://api.vaniyk-empire.com/api/categories