Player Stats API and Duel History API

( This is a mock data on the api now )

*Endpoints

player stats
/api/stats/player/<table>/<id:int>

id = player id

example

{“id”: 128990897839800320, “71278040”: 0, “85103922”: 0, “20292186”: 0, “46247282”: 0, “45803070”: 0, “88078306”: 0, “3734202”: 0, “82738277”: 0, “91812341”: 0, “43422537”: 0, “35261759”: 0, “2055403”: 0, “98827725”: 0, “12444060”: 0, “29401950”: 0, “69599136”: 0, “31548215”: 0, “74003290”: 0, “40838625”: 0, “94770493”: 0, “70368879”: 0, “35726888”: 0, “56832966”: 0, “84013237”: 0, “62517849”: 0, “90590303”: 0, “55285840”: 0, “6983839”: 0, “59071624”: 0, “6511113”: 0, “85289965”: 6, “7480763”: 0, “2857636”: 0, “73639099”: 0, “73964868”: 0, “21044178”: 0, “94656263”: 0, “31292357”: 0, “44928016”: 0, “48686504”: 0, “97631303”: 0, “59750328”: 0, “59919307”: 0, “9581215”: 0, “94192409”: 0, “80101899”: 0, “36975314”: 0, “94145021”: 18, “8972398”: 6, “14558127”: 12, “14558128”: 6, “61901281”: 6, “66752837”: 6, “26655293”: 12, “5969957”: 6, “68464358”: 18, “32476603”: 12, “15381421”: 18, “99234526”: 6, “67748760”: 12, “5560911”: 6, “78661338”: 6, “55878038”: 6, “88264978”: 6, “41620959”: 6, “81439173”: 6, “8267140”: 18, “31443476”: 18, “87571563”: 12, “36668118”: 12, “62265044”: 6, “27548199”: 6, “5041348”: 6, “86148577”: 6, “13143275”: 6, “73539069”: 18, “99011763”: 6, “23732205”: 6, “11969228”: 6, “24361622”: 6, “29296344”: 6, “49725936”: 6, “29479265”: 6, “80666118”: 6, “27204311”: 12, “54693926”: 12,}

player stats global

/api/stats/player/<table>

table can be one of the following
'types','cards','catagory','actions','win_types','win_cards','win_catagory','win_actions'

* Duel history

player history
/api/stats/history/<id:int>

return

{"data":{"vs":{"name":"XYZ" , "avatar":"XYZ.png"} , "result":"win"}  , ....}

player history global
/api/stats/history

return

[{"winner":{"name":"XYZ" , "avatar":"XYZ.png"} , "Loser":{"name":"YZX" , "avatar":"YZX.png"}} , ....]