Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improved games api #68

Merged
merged 2 commits into from
May 11, 2024
Merged

feat: improved games api #68

merged 2 commits into from
May 11, 2024

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
1 check passed
@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.

1 participant