Background
There is no public endpoint to list all predictions for a given market. Clients
wishing to show "who predicted what" on a market detail page must scrape private
user endpoints or go on-chain. A public, paginated endpoint is needed.
Goal
Add GET /predictions/market/:marketId returning paginated, anonymized
predictions for a market.
Requirements
-
In PredictionsService, add:
-
Add the route to PredictionsController:
Acceptance criteria
- Returns paginated results without exposing user IDs.
- Non-existent market returns empty list (not 404).
Background
There is no public endpoint to list all predictions for a given market. Clients
wishing to show "who predicted what" on a market detail page must scrape private
user endpoints or go on-chain. A public, paginated endpoint is needed.
Goal
Add
GET /predictions/market/:marketIdreturning paginated, anonymizedpredictions for a market.
Requirements
In
PredictionsService, add:Add the route to
PredictionsController:Acceptance criteria