update API.md to include type parameter in games/ endpoint

This commit is contained in:
evanpelle
2025-10-27 13:22:37 -07:00
parent 48909d5d25
commit 74197d49e4
+3 -2
View File
@@ -19,13 +19,14 @@ GET https://api.openfront.io/public/games
- `start` (required): ISO 8601 timestamp
- `end` (required): ISO 8601 timestamp
- `limit` (optional): Number of results (max 1000)
- `type` (optional): Game type, must be one of `[Private, Public, Singleplayer]`
- `limit` (optional): Number of results (max 1000, default 50)
- `offset` (optional): Pagination offset
**Example Request:**
```bash
curl "https://api.openfront.io/public/games?start=2025-10-25T00:00:00Z&end=2025-10-26T23:59:59Z&limit=10&offset=5"
curl "https://api.openfront.io/public/games?start=2025-10-25T00:00:00Z&end=2025-10-26T23:59:59Z&type=Singleplayer&limit=10&offset=5"
```
**Response:**