Skip to content

[BE-40] Add user statistics summary endpoint #366

@mftee

Description

@mftee

Overview

Return aggregated statistics for the authenticated user: document counts, risk scores, and verifications inside backend/cmmty/.

Acceptance Criteria

  • Create backend/cmmty/user-stats/ with module, controller, and service
  • Implement GET /cmmty/users/me/stats protected by JWT guard
  • Return: total documents, breakdown by status, average risk score, verified count, flagged count
  • Use efficient aggregation queries
  • Write unit tests for stats calculation

Contribution Folder

All files must be placed inside backend/cmmty/. Do not modify any file outside this folder.

How to Contribute

Comment on this issue to express interest, fork the repo, build inside backend/cmmty/ only, and open a PR targeting main.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions