diff --git a/docs/index.html b/docs/index.html index 5f32368..2f87839 100644 --- a/docs/index.html +++ b/docs/index.html @@ -53,7 +53,10 @@ data-styled.g14[id="sc-crHmcD"]{content:"bNUQy,"}/*!sc*/ .laPRNF{height:20px;width:20px;min-width:20px;vertical-align:middle;float:right;-webkit-transition:-webkit-transform 0.2s ease-out;-webkit-transition:transform 0.2s ease-out;transition:transform 0.2s ease-out;-webkit-transform:rotateZ(0);-ms-transform:rotateZ(0);transform:rotateZ(0);}/*!sc*/ .laPRNF polygon{fill:white;}/*!sc*/ .jCLLyq{height:1.3em;width:1.3em;min-width:1.3em;vertical-align:middle;-webkit-transition:-webkit-transform 0.2s ease-out;-webkit-transition:transform 0.2s ease-out;transition:transform 0.2s ease-out;-webkit-transform:rotateZ(-90deg);-ms-transform:rotateZ(-90deg);transform:rotateZ(-90deg);}/*!sc*/ -data-styled.g15[id="sc-egiyK"]{content:"jLPfXH,bPEzCN,laPRNF,jCLLyq,"}/*!sc*/ +.FBjwd{height:1.5em;width:1.5em;min-width:1.5em;vertical-align:middle;float:left;-webkit-transition:-webkit-transform 0.2s ease-out;-webkit-transition:transform 0.2s ease-out;transition:transform 0.2s ease-out;-webkit-transform:rotateZ(-90deg);-ms-transform:rotateZ(-90deg);transform:rotateZ(-90deg);}/*!sc*/ +.FBjwd polygon{fill:#d41f1c;}/*!sc*/ +.cUKGZj{height:18px;width:18px;min-width:18px;vertical-align:middle;-webkit-transition:-webkit-transform 0.2s ease-out;-webkit-transition:transform 0.2s ease-out;transition:transform 0.2s ease-out;-webkit-transform:rotateZ(-90deg);-ms-transform:rotateZ(-90deg);transform:rotateZ(-90deg);}/*!sc*/ +data-styled.g15[id="sc-egiyK"]{content:"jLPfXH,bPEzCN,laPRNF,jCLLyq,FBjwd,cUKGZj,"}/*!sc*/ .kCCtqV{border-left:1px solid #7c7cbb;box-sizing:border-box;position:relative;padding:10px 10px 10px 0;}/*!sc*/ @media screen and (max-width:50rem){.kCCtqV{display:block;overflow:hidden;}}/*!sc*/ tr:first-of-type > .sc-hBUSln,tr.last > .kCCtqV{border-left-width:0;background-position:top left;background-repeat:no-repeat;background-size:1px 100%;}/*!sc*/ @@ -228,16 +231,19 @@ data-styled.g53[id="sc-cNKqjZ"]{content:"iYcnri,"}/*!sc*/ data-styled.g54[id="sc-AjmGg"]{content:"bcpfGN,"}/*!sc*/ .iUheaL{margin-top:15px;}/*!sc*/ data-styled.g57[id="sc-jgrJph"]{content:"iUheaL,"}/*!sc*/ +.iFIEVq button{background-color:transparent;border:0;outline:0;font-size:13px;font-family:Courier,monospace;cursor:pointer;padding:0;color:#333333;}/*!sc*/ +.iFIEVq button:focus{font-weight:600;}/*!sc*/ +.iFIEVq .sc-egiyK{height:1.1em;width:1.1em;}/*!sc*/ +.iFIEVq .sc-egiyK polygon{fill:#666;}/*!sc*/ +data-styled.g58[id="sc-gSQFLo"]{content:"iFIEVq,"}/*!sc*/ .gHbDui{vertical-align:middle;font-size:13px;line-height:20px;}/*!sc*/ data-styled.g59[id="sc-lbhJGD"]{content:"gHbDui,"}/*!sc*/ .eLMLxg{color:rgba(102,102,102,0.9);}/*!sc*/ data-styled.g60[id="sc-iNGGcK"]{content:"eLMLxg,"}/*!sc*/ .ifsMbX{color:#666;}/*!sc*/ data-styled.g61[id="sc-jeraig"]{content:"ifsMbX,"}/*!sc*/ -.eyZzuM{vertical-align:middle;font-size:13px;line-height:20px;}/*!sc*/ -data-styled.g63[id="sc-nVkyK"]{content:"eyZzuM,"}/*!sc*/ -.eSyGZd{color:#d41f1c;font-size:0.9em;font-weight:normal;margin-left:20px;line-height:1;}/*!sc*/ -data-styled.g64[id="sc-hiwPVj"]{content:"eSyGZd,"}/*!sc*/ +.hvXkwh{color:#666;word-break:break-word;}/*!sc*/ +data-styled.g62[id="sc-eJwWfJ"]{content:"hvXkwh,"}/*!sc*/ .hqhiLz{border-radius:2px;word-break:break-word;background-color:rgba(51,51,51,0.05);color:rgba(51,51,51,0.9);padding:0 5px;border:1px solid rgba(51,51,51,0.1);font-family:Courier,monospace;}/*!sc*/ .sc-clIzBv + .sc-clIzBv{margin-left:0;}/*!sc*/ data-styled.g68[id="sc-clIzBv"]{content:"hqhiLz,"}/*!sc*/ @@ -337,11 +343,9 @@ data-styled.g118[id="sc-dUbtfd"]{content:"ggmziU,"}/*!sc*/ .exjkhl:focus{outline:auto #1d8127;}/*!sc*/ .exjkhl::before{content:"—";font-weight:bold;width:1.5em;text-align:center;display:inline-block;vertical-align:top;}/*!sc*/ .exjkhl:focus{outline:0;}/*!sc*/ -.gBqHPX{display:block;border:0;width:100%;text-align:left;padding:10px;border-radius:2px;margin-bottom:4px;line-height:1.5em;cursor:pointer;color:#d41f1c;background-color:rgba(212,31,28,0.07);cursor:default;}/*!sc*/ -.gBqHPX:focus{outline:auto #d41f1c;}/*!sc*/ -.gBqHPX::before{content:"—";font-weight:bold;width:1.5em;text-align:center;display:inline-block;vertical-align:top;}/*!sc*/ -.gBqHPX:focus{outline:0;}/*!sc*/ -data-styled.g119[id="sc-htJRVC"]{content:"hoRAnv,exjkhl,gBqHPX,"}/*!sc*/ +.wltdp{display:block;border:0;width:100%;text-align:left;padding:10px;border-radius:2px;margin-bottom:4px;line-height:1.5em;cursor:pointer;color:#d41f1c;background-color:rgba(212,31,28,0.07);}/*!sc*/ +.wltdp:focus{outline:auto #d41f1c;}/*!sc*/ +data-styled.g119[id="sc-htJRVC"]{content:"hoRAnv,exjkhl,wltdp,"}/*!sc*/ .jHtNTU{vertical-align:top;}/*!sc*/ data-styled.g123[id="sc-fXeWAj"]{content:"jHtNTU,"}/*!sc*/ .bTvSgn{font-size:1.3em;padding:0.2em 0;margin:3em 0 1.1em;color:#333333;font-weight:normal;}/*!sc*/ @@ -381,7 +385,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/ -

ToneAPI (2.0)

Download OpenAPI specification:Download

Stats tracking API for Titanfall 2 Northstar

+ " fill="currentColor">

ToneAPI (3.0)

Download OpenAPI specification:Download

Stats tracking API for Titanfall 2 Northstar

All query params can be negated using !. Example : (https://tone.sleepycat.date/v2/client/gamemodes?gamemode=!sns)

client

Routes accessibles by everyone

-

List of hosts

An object with host ID as keys and host name as values

+

Your GET endpoint

An object with host ID as keys and host name as values

Responses

Response samples

Content type
application/json
{
  • "1": "Fvnkhead",
  • "2": "Legonzaur"
}

List of servers

A JSON object with server names as keys and server data as values

+

Response samples

Content type
application/json
{
  • "1": "Fvnkhead",
  • "2": "Legonzaur"
}

List of servers

A JSON object with server names as keys and server data as values

query Parameters
server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

player
integer
Example: player=1005930844007

Fetch data for specific player

weapon
string
Example: weapon=epg

Fetch data for specific weapon

@@ -412,7 +416,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/
gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

host
integer
Example: host=1

Fetch data for specific host

Responses

Response samples

Content type
application/json
{
  • "fvnkhead's 3v3": {
    },
  • "fvnkhead's 7v7": {
    }
}

Statistics for all weapons

A JSON Object with weapon IDs as keys and weapon data as values

+

Response samples

Content type
application/json
{
  • "fvnkhead's 3v3": {
    },
  • "fvnkhead's 7v7": {
    }
}

Statistics for all weapons

A JSON Object with weapon IDs as keys and weapon data as values

query Parameters
server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

player
integer
Example: player=1005930844007

Fetch data for specific player

weapon
string
Example: weapon=epg

Fetch data for specific weapon

@@ -420,7 +424,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/
gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

host
integer
Example: host=1

Fetch data for specific host

Responses

Response samples

Content type
application/json
{
  • "autopistol": {
    },
  • "car": {
    }
}

Statistics for all players

A JSON Object with player IDs as keys and player data as values

+

Response samples

Content type
application/json
{
  • "autopistol": {
    },
  • "car": {
    }
}

Statistics for all players

A JSON Object with player IDs as keys and player data as values

query Parameters
weapon
string
Example: weapon=epg

Fetch data for specific weapon

server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

player
integer
Example: player=1005930844007

Fetch data for specific player

@@ -428,7 +432,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/
map
string
Example: map=lf_stacks

Fetch data for specific map

host
integer
Example: host=1

Fetch data for specific host

Responses

Response samples

Content type
application/json
{
  • "2250125460": {
    }
}

Statistics for all maps

A JSON Object with map IDs as keys and map data as values

+

Response samples

Content type
application/json
{
  • "2250125460": {
    }
}

Your GET endpoint

A JSON Object with map IDs as keys and map data as values

query Parameters
host
integer
Example: host=1

Fetch data for specific host

gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

map
string
Example: map=lf_stacks

Fetch data for specific map

@@ -436,7 +440,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/
player
integer
Example: player=1005930844007

Fetch data for specific player

server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

Responses

Response samples

Content type
application/json
{
  • "lf_meadow": {
    },
  • "lf_township": {
    }
}

Statistics for all gamemodes

A JSON Object with gamemodes IDs as keys and gamemodes data as values

+

Response samples

Content type
application/json
{
  • "lf_meadow": {
    },
  • "lf_township": {
    }
}

Your GET endpoint

A JSON Object with gamemodes IDs as keys and gamemodes data as values

query Parameters
host
integer
Example: host=1

Fetch data for specific host

gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

map
string
Example: map=lf_stacks

Fetch data for specific map

@@ -444,17 +448,26 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/
player
integer
Example: player=1005930844007

Fetch data for specific player

server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

Responses

Response samples

Content type
application/json
{
  • "ps": {
    },
  • "aitdm": {
    }
}

server

Routes accessibles only to server owners

-

post-servers-serverId

Used to test auth

+

Response samples

Content type
application/json
{
  • "ps": {
    },
  • "aitdm": {
    }
}

server

Routes accessibles only to server owners

+

Test Authentication

Used to test auth

Authorizations:
Auth_Token

Responses

Post kills

Allows a Northstar server to record kills on the database

-
Authorizations:
Auth_Token
Request Body schema: application/json
tone_version
string
match_id
string
game_mode
string
map
string
game_time
string <time>
player_count
integer
attacker_name
string
attacker_id
integer
attacker_current_weapon
string
attacker_current_weapon_mods
integer
attacker_weapon_1
string
attacker_weapon_1_mods
integer
attacker_weapon_2
string
attacker_weapon_2_mods
integer
attacker_weapon_3
string
attacker_weapon_3_mods
integer
attacker_offhand_weapon_1
integer
attacker_offhand_weapon_2
integer
victim_name
string
victim_id
integer
victim_current_weapon
string
victim_current_weapon_mods
integer
victim_weapon_1
string
victim_weapon_1_mods
integer
victim_weapon_2
string
victim_weapon_2_mods
integer
victim_weapon_3
string
victim_weapon_3_mods
integer
victim_offhand_weapon_1
integer
victim_offhand_weapon_2
integer
cause_of_death
required
string
distance
number

Responses

Request samples

Content type
application/json
{
  • "tone_version": "string",
  • "match_id": "string",
  • "game_mode": "string",
  • "map": "string",
  • "game_time": "14:15:22Z",
  • "player_count": 0,
  • "attacker_name": "string",
  • "attacker_id": 0,
  • "attacker_current_weapon": "string",
  • "attacker_current_weapon_mods": 0,
  • "attacker_weapon_1": "string",
  • "attacker_weapon_1_mods": 0,
  • "attacker_weapon_2": "string",
  • "attacker_weapon_2_mods": 0,
  • "attacker_weapon_3": "string",
  • "attacker_weapon_3_mods": 0,
  • "attacker_offhand_weapon_1": 0,
  • "attacker_offhand_weapon_2": 0,
  • "victim_name": "string",
  • "victim_id": 0,
  • "victim_current_weapon": "string",
  • "victim_current_weapon_mods": 0,
  • "victim_weapon_1": "string",
  • "victim_weapon_1_mods": 0,
  • "victim_weapon_2": "string",
  • "victim_weapon_2_mods": 0,
  • "victim_weapon_3": "string",
  • "victim_weapon_3_mods": 0,
  • "victim_offhand_weapon_1": 0,
  • "victim_offhand_weapon_2": 0,
  • "cause_of_death": "string",
  • "distance": 0
}
+

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Match

Allows a Northstar server to create a match on the database

+
Authorizations:
Auth_Token

Responses

Response samples

Content type
application/json
{
  • "match": 0
}

Kill

Allows a Northstar server to record kills on the database

+
Authorizations:
Auth_Token
Request Body schema: application/json
game_time
number
player_count
integer
match_id
integer
cause_of_death
string
distance
number
object (PlayerKillData)
object (PlayerKillData)

Responses

Request samples

Content type
application/json
{
  • "game_time": 0,
  • "player_count": 0,
  • "match_id": 0,
  • "cause_of_death": "string",
  • "distance": 0,
  • "victim": {
    },
  • "attacker": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string"
}