We need commands to manage the backend, so for now, these will be implemented via the authentication system.
These are internal, so regular users shouldn't be using these. All endpoints are assumed to use the /internal/* path. Additionally, any of these endpoints MAY change at any time, and API is not 100% guaranteed.
POST Create User (Auth)
/user/create
{
"username": "tiny_pineapple",
"roles": [
"abcde"
]
}
POST Create User Role (Auth)
/user/role/create
PUT Update User Role (Auth)
Any fields provided will override existing values.
Response
We need commands to manage the backend, so for now, these will be implemented via the authentication system.
These are internal, so regular users shouldn't be using these. All endpoints are assumed to use the
/internal/*path. Additionally, any of these endpoints MAY change at any time, and API is not 100% guaranteed./event/{event_slug}/create- Creates an event.display_name,discord_role_id,minecraft_version, mod loaderloader,registration_time,start_time, andend_timewithin anapplication/jsonbody./event/{event}/modify- Modifies an event's properties.application/jsonbody./db/eval- Evaluates an SQL expression and returns the result.expressionwithin anapplication/jsonbody.POST Create User (Auth)
/user/create{ "username": "tiny_pineapple", "roles": [ "abcde" ] }POST Create User Role (Auth)
/user/role/create{ "name": "Pineapple", "permissions": "1", // The user cannot add permissions they do not have, the server MUST refuse this request "integrations": { "discord": { "color": "ABCDEF", "permissions": "1" // Discord permissions } } }PUT Update User Role (Auth)
Any fields provided will override existing values.
Response
{ "name": "Pineapple", "permissions": "1", // The user cannot add permissions they do not have, the server MUST refuse this request "integrations": { "discord": { "color": "ABCDEF", "permissions": "1" // Discord permissions } } }