diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 1320e70..0000000 --- a/docs/README.md +++ /dev/null @@ -1 +0,0 @@ -[Check the documentation](https://legonzaur.github.io/ToneAPI_backend/openapi) diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..ddc1b80 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,431 @@ + + + +
+ +Download OpenAPI specification:Download
Stats tracking API for Titanfall 2 Northstar
+A JSON Object with weapon IDs as key and weapon data as value
+| server | number Example: server=2 Fetch data for specific server + |
| player | number Example: player=1005930844007 Fetch data for specific player + |
{- "hemlock": {
- "max_kill_distance": 0,
- "avg_kill_distance": 0,
- "kills": 0
}, - "lstar": {
- "max_kill_distance": 0,
- "avg_kill_distance": 0,
- "kills": 0
}
}Data for a specific weapon
+| weaponId required | string Example: epg ID of a weapon + |
| server | number Example: server=2 Fetch data for specific server + |
| player | number Example: player=1005930844007 Fetch data for specific player + |
{- "max_kill_distance": 0,
- "avg_kill_distance": 0,
- "kills": 0
}A JSON Object with player IDs as key and player data as value
+| weapon | string Example: weapon=epg Fetch data for specific weapon + |
| server | number Example: server=2 Fetch data for specific server + |
{- "2250125460": {
- "name": "Legonzaur",
- "deaths": 0,
- "kills": 0,
- "max_kill_distance": 0,
- "avg_kill_distance": 0
}
}Data for a specific player
+| playerId required | string ID of a player + |
| server | number Example: server=2 Fetch data for specific server + |
| weapon | string Example: weapon=epg Fetch data for specific weapon + |
{- "name": "Legonzaur",
- "deaths": 0,
- "kills": 0,
- "max_kill_distance": 0,
- "avg_kill_distance": 0
}Allows a Northstar server to record kills on the database
+| serverId required | string Example: 2 ID of the server + |
| tone_version | string |
| match_id | string |
| game_mode | string |
| map | string |
| game_time | string <time> |
| player_count | integer |
| attacker_name | string |
| attacker_id | integer |
| attacker_current_weapon | string |
| attacker_current_weapon_mods | integer |
| attacker_weapon_1 | string |
| attacker_weapon_1_mods | integer |
| attacker_weapon_2 | string |
| attacker_weapon_2_mods | integer |
| attacker_weapon_3 | string |
| attacker_weapon_3_mods | integer |
| attacker_offhand_weapon_1 | integer |
| attacker_offhand_weapon_2 | integer |
| victim_name | string |
| victim_id | integer |
| victim_current_weapon | string |
| victim_current_weapon_mods | integer |
| victim_weapon_1 | string |
| victim_weapon_1_mods | integer |
| victim_weapon_2 | string |
| victim_weapon_2_mods | integer |
| victim_weapon_3 | string |
| victim_weapon_3_mods | integer |
| victim_offhand_weapon_1 | integer |
| victim_offhand_weapon_2 | integer |
| cause_of_death required | string |
| distance | number |
{- "tone_version": "string",
- "match_id": "string",
- "game_mode": "string",
- "map": "string",
- "game_time": "14:15:22Z",
- "player_count": 0,
- "attacker_name": "string",
- "attacker_id": 0,
- "attacker_current_weapon": "string",
- "attacker_current_weapon_mods": 0,
- "attacker_weapon_1": "string",
- "attacker_weapon_1_mods": 0,
- "attacker_weapon_2": "string",
- "attacker_weapon_2_mods": 0,
- "attacker_weapon_3": "string",
- "attacker_weapon_3_mods": 0,
- "attacker_offhand_weapon_1": 0,
- "attacker_offhand_weapon_2": 0,
- "victim_name": "string",
- "victim_id": 0,
- "victim_current_weapon": "string",
- "victim_current_weapon_mods": 0,
- "victim_weapon_1": "string",
- "victim_weapon_1_mods": 0,
- "victim_weapon_2": "string",
- "victim_weapon_2_mods": 0,
- "victim_weapon_3": "string",
- "victim_weapon_3_mods": 0,
- "victim_offhand_weapon_1": 0,
- "victim_offhand_weapon_2": 0,
- "cause_of_death": "string",
- "distance": 0
}