Overview
The StreamForge API needs an endpoint that exposes contributor scoring data to downstream services and the frontend dashboard.
What needs to be done
- Create a
scoring module inside src/
- Implement a
GET /scoring/:contributor endpoint that returns:
contributor (string)
total_score (number)
breakdown (array of events and their individual scores)
- Connect the endpoint to the scoring logic from StreamForge Core
- Return proper HTTP status codes:
200 on success
404 if contributor not found
400 for malformed requests
Acceptance Criteria
Notes
Use NestJS conventions — controller, service, and module pattern. Keep the service layer separate from the controller.
Overview
The StreamForge API needs an endpoint that exposes contributor scoring data to downstream services and the frontend dashboard.
What needs to be done
scoringmodule insidesrc/GET /scoring/:contributorendpoint that returns:contributor(string)total_score(number)breakdown(array of events and their individual scores)200on success404if contributor not found400for malformed requestsAcceptance Criteria
GET /scoring/:contributorendpoint exists and responds correctly404Notes
Use NestJS conventions — controller, service, and module pattern. Keep the service layer separate from the controller.