Add bet support to API (For Streamer AND Viewer)
CRUD for bet as streamer
CRUD for bet as viewer
As streamer:
- Being able to start/cancel a bet from endpoint
- Being able to state who won from endpoint
- Maybe get stats about the bet (invested coins, status, nb of participant, ...) (as Events or/and as HTTP API)
As viewer:
- Receive an Event when there is a new bet
- Get bet info using endpoint (remaining time, title, bet A, bet B, nb of people who bet)
- Place a bet using endpoint
- Event win or lose
4
votes
CImrnt
shared this idea