This is currently a Work in progress CnCNet Ladder API & UI for Command & Conquer. The aim is to support all CnCNet games at https://cncnet.org which feature recording in-game statistics.
- Installing the projects dependencies
npm install
- Configure
.env-example
to your local mysql database - Run
composer install
- Run
php artisan serve
Prefix requests with api/v1/
- GET
/ping
to ensure that the server is online
- POST
/result/:game/:player
accepts gameres packet (via POST body) for the supplied:game
- GET
/ladder/:game
will return the top 150 leaderboard players for the supplied:game
- GET
/ladder/:game/game/:gameId
will return all data for a given:gameId
- GET
/ladder/:game/player/:player
will return most data for given:player
- Not yet implemented *
- GET
/auth/token
HTTP authentication using Account credentials Successful authentication of this endpoint will return an auth token for future requests.
- GET
/user/account
Returns a list of player usernames linked to this account.
- POST
/user/create
using HTTP authentication Request requires email, password. Returns token.
- POST
/player/:username
Using the following images without our consent is strictly forbidden. Do not use these on your own site that is public.
- Player Badges, found in
/public/images/badges
- Logo