This API endpoint retrieves the highest test data from each user and returns it as a JSON array.
GET /api/leaderboard
This endpoint does not require any request parameters.
curl -X GET "https://example.com/api/leaderboard"
[
{
"userName": "user_1",
"wpm": 85,
},
{
"userName": "user_2",
"score": 80,
},
{
"userName": "user_3",
"wpm": 73,
}
]