Neomojimixer API docutmentation
As many people requested it here is the Neomojimixer API.
It was written by
James Endicott (@o76923@kitty.social) to have a easy way to access the neomojimixer from programms outside of the browser. See the available endpoints below
/list
Parameters: None
Returns a JSON with the complete list of all avaialabe parts currently in the Neomojimixer. It gives back the level/layer and then which part is available in this level.
Example:
{"arms":["3c","aww", ... ,"yellow_heart"],"body":["blobbee",...,],
etc.
/list/<level>
Parameters: None
Returns a JSON with the complete list of all avaialabe parts in the specified level/layer. /body
will return a second level with the specified colour of that element and /arms
will return a second level with a list of all the colour variations.
Example:/list/mouth
{":3":{},"angler":{},"aww":{},"baa":{},"blank":{},
etc.
/part/<level>/<name>
Parameters: None
Returns a PNG with the specified part. <level>
and <name>
are the ones specified in /list
.
Example:/part/body/neomilk
Returns
/part/<level>/<name>/<variant>
Parameters: None
Returns a PNG with the specified part for the arms
level. <level>
, <name>
and <variant>
are the ones specified in /list
.
Example:/part/arms/aww/yellow
Returns
/create
Parameters: Optional GET
or POST
Either add GET
parameters in the style of ?body=neocat&arms=baby&eyes=drowsy
or provide a JSON
string via POST
like {"body": "neocat", "arms": baby", "eyes": "drowsy"}
Returns a PNG with the specified parts. All levels that hasn't been specified will be returned blank.
Example:/create?body=neocat&arms=baby&eyes=drowsy
Returns
/create/random
Parameters: Optional GET
or POST
Either add GET
parameters in the style of ?body=neofox&arms=torch&eyes=cute
or provide a JSON
string via POST
like {"body": "neofox", "arms": torch", "eyes": "cute"}
Returns a PNG with the specified parts. All levels that hasn't been specified will be randomized. For a completly randomized Neomoji just don't provide any parameters. To prevent a specific level from appearing just set it to blank
.
There is a bias set to each level how likley it is to be set to blank
instead of a random element.
body
: 0%
eyes
: 1%
mouth
: 1%
badge
: 95%
arms
: 50%
hat
: 75%
front
: 95%
back
: 95%
Example:/create/random?body=neofox&arms=torch
Returns or or