๐ Platform Summary Analytics
Endpoint: GET /api/admin/analytics/summary/
Auth Required: โ
Yes (Admin / Super Admin Bearer Token)
Content-Type: application/json
๐ Description
The Platform Summary Analytics endpoint provides administrators with a high-level snapshot of the entire CivicEdge platform.
This summary acts as the default dashboard view, allowing admins to quickly understand system health, civic activity, and participation trends at a glance.
It aggregates key metrics from multiple modules into a single response.
๐ฏ Purpose
- Provide a quick overview of platform performance
- Highlight key civic activity indicators
- Support daily administrative monitoring
- Enable leadership-level decision making
๐ Metrics Included
๐งพ Complaint Overview
- Total complaints
- Open complaints
- In-progress complaints
- Resolved complaints
- Average resolution time
๐งโ๐ง Solver Overview
- Total active solvers
- Tasks assigned today
- Tasks completed today
- Pending or overdue tasks
๐ค Volunteer Overview
- Total volunteer groups
- Active volunteers
- Ongoing events
- Participation count
๐ฌ Community Overview
- Active forum threads
- Comments posted today
- Reported content count
- Polls currently active
๐ฅ User Overview
- Total registered users
- New registrations (today / week)
- Daily active users
- Weekly active users
๐ Query Parameters (Optional)
| Parameter | Type | Description |
|---|---|---|
date_range |
string | today, 7_days, 30_days, custom |
zone |
string | Filter by ward or zone |
โ Example Request
```http
GET /api/admin/analytics/summary/?date_range=7_days
Authorization: Bearer