Implement API thống kê tổng quan cho dashboard (Stat Cards).
{
"code": 200,
"message": "Fetch dashboard statistics successfully",
"data": {
"totalArticles": { "value": 128450, "growthRate": 12.5 },
"totalJournals": { "value": 3420, "growthRate": 4.2 },
"totalAuthors": { "value": 89200, "growthRate": 8.1 },
"totalCitations": { "value": 1450200, "growthRate": 18.3 }
}
}
🎯 Goal
Implement API thống kê tổng quan cho dashboard (Stat Cards).
📡 Endpoint
GET /dashboard/stats
🧾 RESPONSE CONTRACT
🧠 BUSINESS LOGIC
Formula:
growthRate = ((current - previous) / previous) * 100
🧪 ACCEPTANCE CRITERIA