-
Notifications
You must be signed in to change notification settings - Fork 0
Home
tommywaaf edited this page Feb 18, 2023
·
36 revisions
Returns details about the next game with no winner, including the details of the two bots competing.
GET /getnextgame
HTTP 200 OK Content-Type: application/json
{ "gameId": 123, "team1": { "name": "Bot A", "battleCapability": "string of text", "wins": 5, "losses": 2, "botId": "1", "imageId": "xyz123" }, "team2": { "name": "Bot B", "battleCapability": "string of text", "wins": 7, "losses": 1, "botId": "2", "imageId": "abc456" } }
Returns the image data for the bot with the specified bot_id.
GET /getbotimage/2
HTTP 200 OK Content-Type: image/jpeg
<Image data for bot with bot_id "2">