tnnt-devteam / python-backend

Rework of the TNNT backend in Python for better maintainability
MIT License
0 stars 2 forks source link

design game-data lookup API #3

Closed aoeixsz4 closed 2 years ago

aoeixsz4 commented 3 years ago

this would be ideally a RESTful API served by Django, and the focus would first be on just looking up game data, without any scoring considerations.

one open question is how to integrate the parser - either it could make PUT and POST requests to update the model which is maintained by the REST API, or they could act on the same database but be somewhat independent of eachother (tho still use Django DB abstractions, not both directly accessing the DB).

somehow I quite like the idea of separate agent which watches xlog sources for new information and then inserts records using the REST API, but this would need to be secured somehow so that random actors cannot simply add things as they please.