Obter estatísticas do dashboard

GET /categories/dashboard/stats

Retorna as estatísticas gerais do sistema.

Responses

  • 200 application/json

    Estatísticas do dashboard retornadas com sucesso

    Hide response attributes Show response attributes object
    • totalUsers integer
    • totalProductsSold integer
    • totalSales number(float)
    • totalActiveGardens integer
    • totalProducts integer
    • totalQuestionsAnswered integer
GET /categories/dashboard/stats
curl \
 --request GET 'http://localhost:8000/categories/dashboard/stats'
Response examples (200)
{
  "totalUsers": 42,
  "totalProductsSold": 42,
  "totalSales": 42.0,
  "totalActiveGardens": 42,
  "totalProducts": 42,
  "totalQuestionsAnswered": 42
}