Description
Add a statistics endpoint that returns the count of tips grouped by topic. This is useful for displaying topic distribution in a dashboard.
Requirements
- Add
GET /api/tips/stats endpoint
- Return count of tips for each topic
- Include total count
Example Response
{
"total": 35,
"byTopic": {
"shortcuts": 5,
"chat": 12,
"completions": 5,
"prompts": 8,
"agents": 5
}
}
Acceptance Criteria
Description
Add a statistics endpoint that returns the count of tips grouped by topic. This is useful for displaying topic distribution in a dashboard.
Requirements
GET /api/tips/statsendpointExample Response
{ "total": 35, "byTopic": { "shortcuts": 5, "chat": 12, "completions": 5, "prompts": 8, "agents": 5 } }Acceptance Criteria