-
-
Notifications
You must be signed in to change notification settings - Fork 1
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.
A simple GET request can be made in a browser. Navigate to the route (or the root route) to get some data.
Since the key is a parameter, you can simply append ?key=YOUR_KEY_HERE for example, ?key=CHANGE_ME_PLEASE and get data.
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.
