Skip to content

Conversation

@jacobtread
Copy link
Member

Games now store their creation time and the games API response includes the total players in a game along with the creation time for the game.

Below is an example of an unauthenticated API request to the games API /api/games:

{
    "games": [
        {
            "id": 1,
            "state": "PreGame",
            "setting": 285,
            "attributes": {
                "ME3_dlc2500": "required",
                "ME3gameDifficulty": "difficulty0",
                "ME3gameEnemyType": "enemy1",
                "ME3gameState": "IN_LOBBY",
                "ME3map": "map2",
                "ME3privacy": "PRIVATE"
            },
            "players": null,
            "total_players": 1,
            "created_at": "2024-05-11T03:52:59.688572600Z"
        }
    ],
    "more": false,
    "total_items": 1
}

@jacobtread jacobtread added the enhancement New feature or request label May 11, 2024
@jacobtread jacobtread self-assigned this May 11, 2024
@jacobtread jacobtread merged commit c926ee7 into master May 11, 2024
@jacobtread jacobtread deleted the feature-improved-games-api branch May 11, 2024 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants