Skip to content

Backend - Add commitments overview aggregates endpoint for dashboard KPIs #266

@1nonlypiece

Description

@1nonlypiece

Description

Add GET /api/commitments/overview?ownerAddress=... returning aggregates (counts, totals, average compliance, fees, violations) for dashboard KPI cards.

Requirements and context

  • Must be secure, tested, and documented
  • Must require auth for ownerAddress

Suggested execution

  • Implement aggregator (reuse analytics code where possible)
  • Add docs and tests

Test and commit

  • Add tests for empty and non-empty datasets

Example commit message

feat: add commitments overview aggregates endpoint for dashboard

Guidelines

  • Minimum 95 percent test coverage
  • Timeframe: 72 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programapiAPI routes, request/response contractsbackendBackend/API implementationenhancementImprovement to existing functionality
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions