goto-bus-stop / recgames

[WIP] Age of Empires 2 Recorded Games. Watch out, the current live version will be wiped multiple times before an actual release :)
https://recgam.es
GNU General Public License v3.0
1 stars 0 forks source link

JSON API #3

Closed goto-bus-stop closed 7 years ago

goto-bus-stop commented 7 years ago

Basically JSON-API, probably. There are not that many data types, most likely, because the parsed documents are going to be treated as documents and not as tabular data (hopefully).

Create a recorded game: POST /api/games/ Upload: PUT /api/games/:slug/file Get parsed document: GET /api/games/:slug/relationships/analysis Get players: GET /api/games/:slug/relationships/players

Derived player data, for player profiles or something: GET /api/players GET /api/players/:generatedId GET /api/players/:generatedId/relationships/games