myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

DEBUGGING.md (629B)


      1 # Debugging documentation
      2 
      3 ## GET/POST requests
      4 ```bash
      5 curl http://127.0.0.1:8000/v1/healthz
      6 curl http://127.0.0.1:8000/v1/leaderboard/allHeats
      7 curl -XPOST -d '{"data":"hi"}' http://127.0.0.1:8000/v1/echo
      8 
      9 token="eyJ..."
     10 curl -d '{"name":"style","value":"App-red.css"}' -H "Authorization: Bearer $token" http://127.0.0.1:8000/v1/leaderboard/updateSetting
     11 curl -H "Authorization: Bearer $token" http://127.0.0.1:8000/v1/leaderboard/getSetting?name=style
     12 ```
     13 
     14 ## Websocket
     15 ```bash
     16 echo "egg fried rice" | websocat ws://127.0.0.1:8000/v1/leaderboard
     17 echo '{"method":"watchScores"}' | websocat ws://127.0.0.1:8000/v1/leaderboard
     18 ```