Tournament Leaderboard

Create Tournament Leaderboard

POST [endpoint]/v2/tournament/create

API to Create Tournament Leaderboard

Headers

Request Body

{
    "message": "Create Game Successfully!",
    "status": "Success"
}

Get Leaderboard Tournament

Get List Leaderboard Tournament

GET [endpoint]/v2/leaderboard/{tournament_id}

Headers

Request Body

{
    "status": "success",
    "data": {
        "scoreType": [
            "kill",
            "assist",
            "death"
        ],
        "rank": [
            {
                "komo_username": "Aviabee",
                "scores": [
                    {
                        "kill": 10
                    },
                    {
                        "assist": 4
                    },
                    {
                        "death": 7
                    }
                ]
            },
            {
                "komo_username": "komochess",
                "scores": [
                    {
                        "kill": 11
                    },
                    {
                        "assist": 4
                    },
                    {
                        "death": 0
                    }
                ]
            }
        ]
    }
}

Update Tournament Leaderboard

PUT [endpoint]/v2/leaderboard/{tournament_id}

This request will type in body with JSON format. The format is Array of Object.

Headers

Request Body

{
    "message": "Update Tournament Leaderboard Successfully!",
    "status": "Success"
}

Last updated