-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Returns the details of the next scheduled game that has not yet been played.
http://killhitstudios.com:5000/schedule/next
GET
/schedule/next
200
JSON
| Field | Type | Description |
|---|---|---|
gameId |
int | The unique ID of the game. |
team1 |
object | The details of team 1 in the game. |
team2 |
object | The details of team 2 in the game. |
| Field | Type | Description |
|---|---|---|
name |
string | The name of the bot representing the team. |
battleCapability |
string | The battle capability of the bot representing the team. |
wins |
int | The number of wins for the bot. |
losses |
int | The number of losses for the bot. |
botId |
string | The unique ID of the bot. |
imageId |
string | The unique ID of the bot's image. |
Returns the details of a bot with the specified ID.
http://killhitstudios.com:5000/bots/4
GET
/bots/:bot_id
bot_id (required): The unique ID of the bot to retrieve.
200
JSON
| Field | Type | Description |
|---|---|---|
name |
string | The name of the bot. |
battleCapability |
string | The battle capability of the bot. |
wins |
int | The number of wins for the bot. |
losses |
int | The number of losses for the bot. |
botId |
string | The unique ID of the bot. |
imageId |
string | The unique ID of the bot's image. |
404
JSON
| Field | Type | Description |
|---|---|---|
error |
string | The error message. |
Returns the details of a game with the specified ID.
http://killhitstudios.com:5000/schedule/4/game
GET
/schedule/:game_id/game
game_id (required): The unique ID of the game to retrieve.
200
JSON
| Field | Type | Description |
|---|---|---|
gameId |
int | The unique ID of the game. |
team1 |
object | The details of team 1 in the game. |
team2 |
object | The details of team 2 in the game. |
winner |
string | The ID of the winning bot, not set until played. |
resulttext |
string | The text result of the game, not set until played. |
| Field | Type | Description |
|---|---|---|
name |
string | The name of the bot representing the team. |
battleCapability |
string | The battle capability of the bot representing the team. |
wins |
int | The number of wins for the bot. |
losses |
int | The number of losses for the bot. |
botId |
string | The unique ID of the bot. |
imageId |
string | The unique ID of the bot's image. |
400
JSON
Returns the details of the next scheduled games that have not yet been played, up to the specified number.
http://killhitstudios.com:5000/schedule/4
GET
/schedule/:number_to_fetch
number_to_fetch (required): The number of games to retrieve.
200
JSON
An array of game objects, each with the following fields:
| Field | Type | Description |
|---|---|---|
gameId |
int | The unique ID of the game. |
team1 |
object | The details of team 1 in the game. |
team2 |
object | The details of team 2 in the game. |
| Field | Type | Description |
|---|---|---|
name |
string | The name of the bot representing the team. |
battleCapability |
string | The battle capability of the bot representing the team. |
wins |
int | The number of wins for the bot. |
losses |
int | The number of losses for the bot. |
botId |
string | The unique ID of the bot. |
imageId |
string | The unique ID of the bot's image. |
404
JSON
| Field | Type | Description |
|---|---|---|
error |
string | The error message. |
Returns a leaderboard of the top bots based on their number of wins.
http://killhitstudios.com:5000/bots/leaderboard
GET
/bots/leaderboard
200
JSON
An array of bot objects, each with the following fields:
| Field | Type | Description |
|---|---|---|
botId |
string | The unique ID of the bot. |
wins |
int | The number of wins for the bot. |
losses |
int | The number of losses for the bot. |
404
JSON
| Field | Type | Description |
|---|---|---|
error |
string | The error message. |
Returns a list of all games that the specified bot will or has played in.
http://killhitstudios.com:5000/bots/3/games
GET
/bots/:bot_id/games
bot_id (required): The unique ID of the bot.
200
JSON
An array of game objects, each with the following fields:
| Field | Type | Description |
|---|---|---|
gameId |
int | The unique ID of the game. |
team1 |
object | The details of team 1 in the game. |
team2 |
object | The details of team 2 in the game. |
| Field | Type | Description |
|---|---|---|
name |
string | The name of the bot representing the team. |
battleCapability |
string | The battle capability of the bot representing the team. |
wins |
int | The number of wins for the bot. |
losses |
int | The number of losses for the bot. |
botId |
string | The unique ID of the bot. |
imageId |
string | The unique ID of the bot's image. |
404
JSON
| Field | Type | Description |
|---|---|---|
error |
string | The error message. |
Runs a battle between the two bots of a game and returns the winner and the result text. Dont test once running.
POST
/battles/:game_id
game_id (required): The unique ID of the game.
The request body must be a JSON object with a gameId field set to the ID of the game.
Example:
{ "gameId": 123 }
200
JSON
| Field | Type | Description |
|---|---|---|
winner |
string | The unique ID of the winning bot. |
resulttext |
string | The result text generated by OpenAI API. |
400
JSON
| Field | Type | Description |
|---|---|---|
error |
string | The error message. |
404
JSON
| Field | Type | Description |
|---|---|---|
error |
string | The error message. |
Returns the image of the specified bot.
GET
/bots/:bot_id/image
bot_id (required): The unique ID of the bot.
200
png
404
png image