-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
/event/{event_slug}/create- Creates an event.- Requires an event name
display_name,discord_role_id,minecraft_version, mod loaderloader,registration_time,start_time, andend_timewithin anapplication/jsonbody.
- Requires an event name
- PUT
/event/{event}/modify- Modifies an event's properties.- Requires any above properties within an
application/jsonbody.
- Requires any above properties within an
- POST
/db/eval- Evaluates an SQL expression and returns the result.- Requires an
expressionwithin anapplication/jsonbody.
- Requires an
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
{
"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
}
}
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
{ "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 } } }