Leaderboard Controller

Get Player Score

Path: /api/leaderboard/score/{leaderboardId}/{playerId}

Method: GET

Example Http Request

GET /api/leaderboard/score/53905b8f-1062-4354-9e39-cb5d1b85d282/test-player-05a5ecb7-ab29-4621-909e-f2e4933091de?ascending=false HTTP/1.1
Host: localhost:8080

Example Http Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 239

{"position":null,"playerId":"test-player-05a5ecb7-ab29-4621-909e-f2e4933091de","displayName":"Test Player test-player-05a5ecb7-ab29-4621-909e-f2e4933091de","rankValue":1500,"displayValue":"15:00.75","data":{"mode":"competitive","level":8}}

Example Curl Request

$ curl 'http://localhost:8080/api/leaderboard/score/53905b8f-1062-4354-9e39-cb5d1b85d282/test-player-05a5ecb7-ab29-4621-909e-f2e4933091de?ascending=false' -i -X GET

Leaderboard Controller Footer