promotional bannermobile promotional banner
premium banner
REST API for DeathCounter

Description

REST API For DeathCounter

 

REST-API

Get all deaths in the Universe (or EnablePerWorldTracking is disabled in the config of DeathCounter):

GET: http://webserverAddress:port/UnkownBundle/DeathCounter-REST-API/get

Get all deaths in a specific world (only works if EnablePerWorldTracking is enabled, otherwhise the universe list will be returned):

GET: http://webserverAddress:port/UnkownBundle/DeathCounter-REST-API/get?WORLD_NAME

Get a list with all available worlds:

GET: http://webserverAddress:port/UnkownBundle/DeathCounter-REST-API/worlds

 

WebServer

This mod requires the Nitrado WebServer mod.

To configure the webserver edit/create the config.json file in mods/Nitrado_WebServer/

Example config:

Please note: insecure should only be true on private/testing environment
{
  "BindHost": "127.0.0.1",
  "BindPort": 5520,
  "Tls": {
    "Insecure": true,
    "CertificateProvider": "selfsigned"
  }
}

More info about the config