Releasesv0.1.0
Operations

Whether the first-run setup is open (only when OHS_SETUP_TOKEN is set)

GET
/v1/setup

Public, no credential. needed is true while OHS_SETUP_TOKEN is set and the instance has no tenant. With no OHS_SETUP_TOKEN the route is not mounted (404). See docs/setup.md.

Response Body

The setup state. Sent with Cache-Control: no-store.

application/json
  1. response
needed*boolean

True while the instance has no tenant and POST /v1/setup can create one.

curl -X GET 'http://localhost:8080/v1/setup'
{  "needed": true}
Edit on GitHub