Booleans-as-a-Service (v0.1.1)

Download OpenAPI specification:

License: MIT

Booleans-as-a-Service provides a simplistic API to create, read, update and delete boolean values.

New

Create new Boolean entries

Create a new Boolean entry

Create a new Boolean entry

query Parameters
expires_at
integer <int64>

Unix epoch time stamp in seconds, when entry expires. Is prioritized over expires_in.

expires_in
integer <int64>

Amount of seconds from now until the entry expires

Request Body schema:

Create a new Boolean entry in the database

label
string
value
boolean

Responses

Request samples

Content type
{
  • "label": "A short description",
  • "value": true
}

Response samples

Content type
application/json
{
  • "id": "asdf1234",
  • "label": "A short description",
  • "value": true
}

Existing

Manage existing Boolean entries

Retrieve a Boolean entry

Retrieve a Boolean entry

path Parameters
id
required
string
Example: asdf1234

The ID of the Boolean

Responses

Response samples

Content type
application/json
{
  • "id": "asdf1234",
  • "label": "A short description",
  • "value": true
}

Update an existing Boolean entry

Update an existing Boolean entry

path Parameters
id
required
string
Example: asdf1234

The ID of the Boolean

query Parameters
expires_at
integer <int64>

Unix epoch time stamp in seconds, when entry expires. Is prioritized over expires_in.

expires_in
integer <int64>

Amount of seconds from now until the entry expires

Request Body schema:

Create a new Boolean entry in the database

label
string
value
boolean

Responses

Request samples

Content type
{
  • "label": "A short description",
  • "value": true
}

Response samples

Content type
application/json
{
  • "id": "asdf1234",
  • "label": "A short description",
  • "value": true
}

Toggle an existing Boolean value

Toggle an existing Boolean value

path Parameters
id
required
string
Example: asdf1234

The ID of the Boolean

Responses

Response samples

Content type
application/json
{
  • "id": "asdf1234",
  • "label": "A short description",
  • "value": true
}

Delete an existing Boolean value

Delete an existing Boolean value

path Parameters
id
required
string
Example: asdf1234

The ID of the Boolean

Responses