Bug #2527
Implement New Summary API Endpoint for Station-wise Performance Report
0%
Description
Develop a new backend summary endpoint to provide aggregated station-wise performance data for reporting and dashboard purposes in EVVMS.
This endpoint should return summarized metrics per station within a selected date range, enabling business users to monitor station performance and revenue efficiently.
Objectives
Create a scalable API that provides:
Station-wise total sessions
Total energy consumed (kWh)
Total revenue
Average revenue per session
Optional comparison with previous period
API Requirements
Endpoint Example:
GET /api/reports/station-summary
Query Parameters
startDate
endDate
tenantId
stationId (optional)
groupBy (daily / weekly / monthly)
Response Structure
{
"success": true,
"data": [
{
"stationId": 101,
"stationName": "Jaipur EV Hub",
"totalSessions": 120,
"totalEnergyKwh": 1800,
"totalRevenue": 36000,
"avgRevenuePerSession": 300
}
]
}
Updated by Shreya Agarwal about 2 hours ago
- Assignee changed from Shubham Sharma to Shreya Agarwal