Check Open API docs
Get all players
curl 'fide.thanh.se/api/players'
Get top 10 players by standard rating with descending order
curl 'fide.thanh.se/api/players?sort_by=standard&order=desc&size=10'
Get all players sort by blitz rating and is active on page 5
curl 'fide.thanh.se/api/players?sort_by=blitz&order=desc&page=5&is_active=true'
- Docker
Also requires JDK 21 with sbt
cp .env.example .env
docker compose up -d
sbt backend/run
COMPOSE_PROFILES=sbt docker compose up -d
open http://localhost:9669/docs // you may need to wait a bit for syncing
curl http://localhost:9669/api/players
http://localhost:8180/?pgsql=db&username=admin&db=fide&ns=fide (password: dummy)
sbt test
sbt lint