-
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">
This endpoint returns the details for the bot with the specified bot_id.
{
"botId": "1",
"name": "Bot 1",
"battleCapability": "string of text,
"wins": 5,
"losses": 3,
"imageId": "5e8b3f3c086f9a6d4a6b4f6c"
}