The statsService is responsible for keeping track of numeric stats of games
/games/{gameId}/player/{uuid}/stat/{statId}?since=1496675655742 [GET] - Get an agregated stat response
Response
{
"amount": 215
}
This will automatically be logged at the current time of the receiving service.
Request
{
"amount": 5
}
Response
{
"Success": true
}
Name | Value |
---|---|
MONGO_URI | {mongo_uri} |
DB_NAME | {db name to store data} |
Response
{
"topPlayers": [
{
"uuid": "asd",
"amount": 12
},{
"uuid": "asde",
"amount": 8
}
]
}