A leaderboard system with a RESTful API
Build and run using Maven:
mvn verify
mvn exec:java
Test using Maven:
mvn test
GET /scores
: returns all recorded scores.GET /scores/top/<n>
: returns the topn
scores (n: uint
).POST /scores
: takes two arguments (nickname: string
andscore: uint
) and stores that score.