Booleans as a service. Because why not.
1.7K
baas is a nodeJS based API to get booleans. View the source code at github.com/bullgit/baas.
Run the image and specify the port to bind to. By default port 8000 is used.
$ docker run --rm -d -p "1337:8000" kevingimbel/baas
The HTTP API is then available at port 1337.
/trueReturns a "true" boolean in JSON.
{"boolean": true}
/falseReturns a "false" boolean in JSON.
{"boolean": false}
/randomReturns a random boolean in JSON.
Response: Can be true or false
{"boolean": true}
{"boolean": false}
All other requests will return the default baas description.
{
"baas": "boolean as a service",
"endpoints": {
"/true": "returns true",
"/false": "returns false",
"/random": "returns random boolean"
},
"boolean": "none"
}
Content type
Image
Digest
Size
18.1 MB
Last updated
over 9 years ago
docker pull kevingimbel/baas