RaidMax / IW4M-Admin

Complete administration tool for IW4x, Pluto T6, Pluto IW5, Pluto T5, Pluto T4, H1-Mod, CoD4x, IW6x, TeknoMW3, and most Call of Duty® dedicated servers.
MIT License
212 stars 43 forks source link

[FEATURE REQUEST] Add Webfront info to API #231

Closed ghost closed 2 years ago

ghost commented 2 years ago

GET api/info

Concept

{
    "ClientsOnline": 63,
    "MaxClients": 252,
    "MaxPlayersToday": {
        "value": 91,
        "timestamp": "timestamp"
    },
    "ClientsToday": 812,
    "TotalClients": 33291
}

TL;DR

Get your instance's information via API request

RaidMax commented 2 years ago

Added in f9f3ff6 example response /api/info

{
   "totalConnectedClients":0,
   "totalClientSlots":18,
   "totalTrackedClients":86,
   "totalRecentClients":{
      "value":2,
      "time":null,
      "startAt":"2022-03-07T18:13:30.6475998Z",
      "endAt":"2022-03-08T18:13:30.6475304Z"
   },
   "maxConcurrentClients":{
      "value":1,
      "time":"2022-03-08T01:58:24.6848616",
      "startAt":"2022-03-07T18:13:30.6470699Z",
      "endAt":"2022-03-08T18:13:30.6469885Z"
   }
}