Skip to content

Making Requests

Olivia edited this page Apr 17, 2021 · 2 revisions

Making Requests

Making requests depends on a lot of factors.

GET requests are used to get data with a randomized, non-player UUID. They're useful for getting public info like the server TPS.

POST requests are used to send data like username/UUID, key, etc. They're useful for getting player-specific information.

GET requests, no authkey

A simple GET request can be made in a browser. Navigate to the route (or the root route) to get some data.

GET requests, with authkey

Since the key is a parameter, you can simply append ?key=YOUR_KEY_HERE for example, ?key=CHANGE_ME_PLEASE and get data.

POST requests

By default, POST requests require an auth key, and a username or uuid parameter to get user-specific data. This value can be randomized if it's not necessary to get any specific data.

The default root route can take a request parameter to send whatever you want. It will be parsed as normal and returned.

Here is a sample request using Postman.

Sample request using postman.

Clone this wiki locally