Zum Hauptinhalt springen

API — Dashboard

Documentacao tecnica gerada automaticamente a partir da especificacao OpenAPI.


GET /api/dashboard/stats

Get Dashboard Stats

Exemplo resposta (200):

{
"orders_today": 0,
"orders_month": 0,
"revenue_today": "string",
"revenue_month": "string",
"revenue_prev_month": "string",
"orders_prev_month": 0,
"total_products": 0,
"total_customers": 0,
"pending_orders": 0,
"top_products": [
"..."
],
"recent_orders": [
"..."
]
}

GET /api/dashboard/stats/chart

Get Dashboard Chart

Parametros:

NomeTipoObrigatorioDescricao
periodstringNao

Exemplo resposta (200):

{
"labels": [
"..."
],
"revenue": [
"..."
],
"orders": [
"..."
]
}

Erros possiveis: 422 Validation Error


GET /api/dashboard/stats/breakdown

Get Dashboard Breakdown

Exemplo resposta (200):

{
"by_status": {},
"by_payment": {},
"top_categories": [
"..."
]
}

Documentacao gerada automaticamente.