Ga naar hoofdinhoud

Dashboard Endpoints

API endpoints for dashboard widgets, statistics, and summary data.

Employee Statistics

GET /api/employee-statistics/count
GET /api/employee-statistics/months

Response Example

{
"total": 45,
"active": 40,
"inactive": 5
}

Dashboard Widgets

GET /api/dashboard/widgets

Available Widgets

WidgetDescription
employee-countActive/total employee count
time-tracking-summaryToday's tracked hours
project-statusProjects by status
invoice-summaryOutstanding/paid invoices
expense-summaryMonthly expense totals
task-summaryTasks by status

Organization Statistics

GET /api/stats/organization

Response

{
"employeeCount": 45,
"projectCount": 12,
"activeTimers": 8,
"todayTrackedHours": 156.5,
"outstandingInvoices": 15000.0,
"monthlyExpenses": 8500.0
}

Report Endpoints

# Time & Activity
GET /api/report/time-activity

# Weekly report
GET /api/report/weekly

# Amounts owed
GET /api/report/amounts-owed

# Project budgets
GET /api/report/project-budgets

# Manual time edits
GET /api/report/manual-time

# Expense report
GET /api/report/expense