Need backend API
Closed this issue · 0 comments
joshmadewell commented
Can be written in Node -- and hosted on the same server as the website for now.
Needs to handle all the RIOT API interactions as well as data crunching on match history details. Not sure if we're going to get elophants help.
I want to implement a summoner object that makes more sense:
Object<Summoner>
{
id: 355215,
name: "Crab Leg Warrior",
queryName: "crab leg warrior", // the value that we hit RIOT with
lolKingUrl: "http://www.lolking.net/summoner/na/355215",
opGgUrl: "http://na.op.gg/summoner/userName=crab+leg+warrior" // just use RIOT's "name" value to populate url
}
GET -- /summoner/{summoner_id}
GET -- /summoner/by-name/{name}
GET -- /matchhistory/{summoner_id}
GET -- /champion
GET -- /champion/{champion_id}