Skip to content

. Add GET /api/v1/admin/dashboard endpoint #367

Description

@DeFiVC

What: Add an admin dashboard endpoint that returns platform-wide statistics (total users, enrollments, quiz completions, credentials minted, rewards claimed).

Why: Admins need a high-level view of platform health and growth. Currently there's no aggregate statistics endpoint.

Scope: Create endpoint that queries aggregate stats: total users, new users (today/week/month), total enrollments, quiz completion rate, total credentials, total rewards claimed. Include trend data (comparisons with previous period).

Acceptance criteria:

  • Returns all key platform metrics
  • Includes trend comparisons
  • Cached for 5 minutes
  • Only accessible by admins

Technical context:src/database/schema.ts — all tables. src/modules/users/user.service.ts — aggregate queries.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions