PocketRelay / Server

Mass Effect 3 Rust Server Emulator, LAN and WAN private server
https://pocket-relay.pages.dev/
MIT License
12 stars 4 forks source link

feat: improved games api #68

Closed jacobtread closed 3 months ago

jacobtread commented 3 months ago

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
}