Backend API for use with os-league-tools.
-
Install packages:
npm install
-
Set up
.env
file:- Make a copy of
/.env.example
and rename it to/.env.development
- Any fields with the value
"example"
will need to be replaced with valid values in order to function correctly. Not all routes need env vars./hiscores
routes do not require any env vars/feedback
routes require allHEIGHT_*
vars to be correctly filled out. See Height API documentation for more info on the keys and IDs used in task creation.
- Make a copy of
-
Start app:
npm run dev
-
API will be running at http://localhost:8080/
Returns leagues hiscores for the given RSN, formatted as JSON using osrs-json-hiscores.
Use query param mode
to get hiscores for a different gamemode. Valid options:
- seasonal (default)
- main
- ironman
- hardcore
- ultimate
Sends general feedback to Height #feedback list.
Request body:
{
"description": string,
}
Sends a suggestion to Height #suggestions list.
Request body:
{
"description": string,
}
Sends a bug report to Height #bugs list.
Request body:
{
// Required
"description": string,
// Optional
"reproSteps": string,
"device": string,
"client": string,
"debugInfo": string,
}