R2Northstar / NorthstarMasterServer

Master server for Northstar
MIT License
92 stars 33 forks source link

Pdata json api #48

Closed barnabwhy closed 2 years ago

barnabwhy commented 2 years ago

Adds a JSON API to get player data. Would be useful were someone to make a stat tracking web app or something


Endpoints:

### /player/pdata - All pdata (excluding pdiff) - Pretty much encompasses all the below and more, the other ones are for getting more specific information - This endpoint notably **excludes** username ### /player/info - Username (if #42 gets merged) - Player id - Gen - XP - Calling card - Callsign icon - Net worth ### /player/stats - Player id - Gen - XP - Credits - Net worth - Faction XP - Titan XP - FD titan XP - Game stats - Map stats - Time stats - Distance stats - Weapon stats - Weapon kill stats - Kill stats - Death stats - Misc stats - FD stats - Titan stats - KD ratio - PVP KD ratio - Win streak - Highest win streak ### /player/loadout - Faction - Full active pilot loadout - Full active titan loudout - Full pilot loadout list - Full titan loadout list
barnabwhy commented 2 years ago

Closes #31