chenwardT / lol_stats2

Website to perform match aggregation and analysis for Riot Games' League of Legends.
2 stars 0 forks source link

Using Django Rest Framework for frontend API #14

Open chenwardT opened 8 years ago

chenwardT commented 8 years ago

The API that the frontend will fetch page data from doesn't exist.

All that is in place is a naively serialized, paginated list of records for a select few models. The API should probably provide something similar to what lol_stats (the original project) used to feed AngularJS: a single request should reply with everything needed to populate the page, or at the very least, requests required should be minimized.

This should probably occur after the DB schema is finalized.

chenwardT commented 8 years ago

Serious work has begun on this as of https://github.com/chenwardT/lol_stats2/commit/19e4e7f711c5d8620b96d4a3642fe0e77b46132b

/summoner-matches/ endpoint is pretty quick now, with DB queries taking ~100 ms to get 10 matches worth of data, not including runes and masteries.

Schema revision may not be necessary.