Skip to content

Add endpoint to get tips count by topic #5

@timothywarner

Description

@timothywarner

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

  • Stats endpoint returns correct counts
  • Response includes all topics even if count is 0
  • Tests verify the stats endpoint

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions