Hello and welcome. You've reached the back end for https://wart.gay, a web app built to handle the suggestion and selection of weekly art prompts. This server was created to handle a persistent database of prompts and associated data as required by the front end.
Check server status.
parameters: none
=> "online"
Get currently selected prompt.
parameters: none
=> active prompt as string | "---"
Get all prompts in specified category.
parameters:
"pending" | "current" | "past" | "active"=> json array of prompts in category
Check validity of admin password.
parameters:
=> true | false
Add a prompt to the suggestion pool.
parameters:
=> success message echoing parameter
Add 1 point of endorsement to specified prompt.
parameters:
=> success message echoing parameter
All admin methods require the site password as a parameter and can return 401 "unauthorized access" if it is incorrect.
Approve an array of pending prompts.
parameters:
=> acknowledgement of request
Reject an array of pending prompt.
parameters:
=> acknowledgement of request
Randomly select a new active prompt from the current pool.
parameters: none
=> success message including newly selected prompt
Override the currently active prompt. Will move the outgoing active prompt back to the current(prospective) pool.
parameters:
=> success message including newly selected prompt
Set the endorsement level of target prompt to specified level.
parameters:
=> success message echoing parameters
Insert prompt into database category with optionally specified selection date. If prompt already exists, category and selection date will be updated.
parameters:
"pending" | "current" | "past" | "active"=> descriptive success or error message
Remove prompt from database
parameters:
=> success message echoing parameter