https://github.com/shacknetisp/statsdb-interface
Web Server interface to a Red Eclipse statistics database.
https://github.com/shacknetisp/statsdb-interface
Last synced: 11 days ago
JSON representation
Web Server interface to a Red Eclipse statistics database.
- Host: GitHub
- URL: https://github.com/shacknetisp/statsdb-interface
- Owner: shacknetisp
- License: zlib
- Created: 2015-08-01T04:21:52.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-07-10T16:50:42.000Z (almost 10 years ago)
- Last Synced: 2025-04-06T15:15:54.538Z (about 1 year ago)
- Language: Python
- Homepage: http://redeclipse.net:28700
- Size: 895 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Statistics Web Interface for [Red Eclipse](http://redeclipse.net)
Run with: `./server.py `
# API
`/api//<[optional specific request]>?<[optional flags and filters]>`
Flags:
* all-flags: Enable everything, overwritten by `flags` and `no-flags`
* clear-flags: Disable everything, overwritten by `flags` and `no-flags`
* flags: Enable a specific flag (`?flags=flag1&flags=flag2`)
* no-flags: Disable a specific flag like `flags`
Filters:
* Basic: Will only return entries if they match. (, not-)
* Math: Simple comparisions. (, not-, lt-, gt-)
* Basic OR: Will only return entries if they have one of the matches.
* Basic AND: Will only return entries with all of the matches.
* Basic GLOB: Will match SQLite GLOBs.
Limits: If < 0 return all, else limit number of games used to calculate.
## /api/games
* Flags: server, teams, affinities, rounds, players, playerdamage, playeraffinities, playerweapons, weapons
* Filters: mode (basic), time (math), timeplayed (math), id (math), map (basic OR), players (basic AND), mutators (basic AND), uniqueplayers (math), fighting (basic)
## /api/maps
* Flags: recentgames, race
* Limits: recentgames
## /api/modes
* Flags: recentgames
* Limits: recentgames
## /api/muts
* Flags: recentgames
* Limits: recentgames
## /api/players
* Flags: games, recentgames, affinities, recentsums, damage, weapons
* Filters: name (basic GLOB)
* Limits: recentgames, recentsums
## /api/servers
* Flags: games, recentgames
* Filters: host (basic), version (basic GLOB), authflags (basic GLOB)
* Limits: recentgames
## /api/weapons
--