package
0.0.0-20230221132528-3834a52fd169
Repository: https://github.com/zaprit/reflow.git
Documentation: pkg.go.dev

# Functions

APIRoot is the root function that identifies a solder compatible api Stock solder returns: {"api":"TechnicSolder","version":"v0.7.7","stream":"DEV"} I've never seen it not be DEV and as far as I can tell it doesn't matter what the api or version attributes are.
GetBuild assembles a build struct from the database and returns it as JSON.
GetMod gets a specific mod from the database and returns it as a JSON document with the following format { "id":123, "name":"test-mod", "description":"This is a description of a test mod","author":"Test Author", "link":"https://example.com", "versions":["1.0"], "pretty_name":"Test Mod" } If the mod can't be found it returns this error.
GetModpack gets a specific modpack and its builds and returns them in a JSON document.
GetModpacks gets the modpack list from the database and returns it as JSON.
GetMods gets the list of mods from the database and displays it in a JSON document with the following format {"mod-slug":"pretty-name",...} Where mod-slug is the internal name used by regular solder and pretty-name is the display name.
GetModVersion is the API endpoint that returns a specific version of a mod in the following JSON format { "id":1, "md5":"949b3066566657167bc3da57fd1b0a83", "filesize":462, "url":"http:\/\/127.0.0.1:8080\/mods\/test-mod\/test-mod-1.0.zip" }.
StartServer Starts the http server ready to accept connections.
VerifyKey is the endpoint that verifies a key.