Before using the API, please install dependencies:
npm install
Then, run:
node server.js
A driver ressource is a character you can play in the game.
/driver
-- Get all drivers available/driver/:id
-- Get specific driver by ID
GET http://127.0.0.1:3000/driver/5c8783a190789c5b64f2c72c
{
"_id":"5c8783a190789c5b64f2c72c",
"name":"Luigi",
"size":"Medium",
"driverModel":"MediumDriverModel3",
"__v":0
}
name
string -- Driver namesize
string -- Driver sizedriverModel
string -- Driver statistics by model type
A body ressource is a vehicle you can choose in the game.
/body
-- Get all drivers available/body/:id
-- Get specific body by ID
GET http://127.0.0.1:3000/body/5c8788adc51dfa04d4a5babe
{
"_id":"5c8788adc51dfa04d4a5babe",
"name":"Mr Scooty",
"speedGnd":-0.75,
"speedWtr":-0.5,
"speedAir":-0.5,
"speedGty":-0.25,
"acceleration":0.75,
"weight":-0.5,
"handlingGnd":0.5,
"handlingWtr":0.5,
"handlingAir":0.25,
"handlingGty":0.5,
"grip":0.25,
"miniturbo":0.75,
"__v":0
}
name
string-- Body (Kart) namespeedGnd
number -- Body speed on groundspeedWtr
number -- Body speed underwaterspeedAir
number -- Body speed on airspeedGty
number -- Body speed on gravityacceleration
number -- Body accelerationweight
number -- Body weighthandlingGnd
number -- Body handling on groundhandlingWtr
number -- Body handling underwaterhandlingAir
number -- Body handling on airhandlingGty
number -- Body handling on gravitygrip
number -- Body gripminiturbo
number -- Body mini turbo value
A tire ressource is a part of vehicle you can choose in the game.
/tire
-- Get all tires available/tire/:id
-- Get specific tire by ID
GET http://127.0.0.1:3000/tire/5c878ca2c16b4820283161e3
{
"_id":"5c878ca2c16b4820283161e3",
"name":"Button",
"speedGnd":-0.25,
"speedWtr":-0.25,
"speedAir":-0.25,
"speedGty":0,
"acceleration":0.25,
"weight":-0.5,
"handlingGnd":0,
"handlingWtr":0,
"handlingAir":-0.25,
"handlingGty":0.25,
"grip":-0.5,
"miniturbo":0.5,
"__v":0
}
name
string-- Tire namespeedGnd
number -- Tire speed on groundspeedWtr
number -- Tire speed underwaterspeedAir
number -- Tire speed on airspeedGty
number -- Tire speed on gravityacceleration
number -- Tire accelerationweight
number -- Tire weighthandlingGnd
number -- Tire handling on groundhandlingWtr
number -- Tire handling underwaterhandlingAir
number -- Tire handling on airhandlingGty
number -- Tire handling on gravitygrip
number -- Tire gripminiturbo
number -- Tire mini turbo value
A glider ressource is a glider, attach to a vehicle you can choose in the game.
/glider
-- Get all gliders available/glider/:id
-- Get specific glider by ID
GET http://127.0.0.1:3000/glider/5c878ac532e4724f4c4dd477
{
"_id":"5c878ac532e4724f4c4dd477",
"name":"Super Glider",
"speedGnd":0,
"speedWtr":0,
"speedAir":0,
"speedGty":0,
"acceleration":0,
"weight":0,
"handlingGnd":0,
"handlingWtr":0,
"handlingAir":0,
"handlingGty":0,
"grip":0,
"miniturbo":0,
"__v":0
}
name
string -- Glider namespeedGnd
number -- Glider speed on groundspeedWtr
number -- Glider speed underwaterspeedAir
number -- Glider speed on airspeedGty
number -- Glider speed on gravityacceleration
number -- Glider accelerationweight
number -- Glider weighthandlingGnd
number -- Glider handling on groundhandlingWtr
number -- Glider handling underwaterhandlingAir
number -- Glider handling on airhandlingGty
number -- Glider handling on gravitygrip
number -- Glider gripminiturbo
number -- Glider mini turbo value
This API supports CRUD requests. You can make GET, POST, PUT and DELETE requests.
POST http://127.0.0.1:3000/glider
{
"name" : "Diddy Kong",
"driverModel" : "LightDriverModel"
}
Contributors :
- Samy VERA
- Tanguy POTIER
- Adrien VAUCARD