Sign inSign up

kevingimbel/baas

By kevingimbel

•Updated over 9 years ago

Booleans as a service. Because why not.

Image
0

1.7K

kevingimbel/baas repository overview

baas is a nodeJS based API to get booleans. View the source code at github.com/bullgit/baas⁠.

⁠Image Usage

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.

⁠HTTP API

⁠/true

Returns a "true" boolean in JSON.

{"boolean": true}
⁠/false

Returns a "false" boolean in JSON.

{"boolean": false}
⁠/random

Returns 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"
}

Tag summary

Content type

Image

Digest

Size

18.1 MB

Last updated

over 9 years ago

docker pull kevingimbel/baas