dis-bundle-api

September 9, 2026 · View on GitHub

The dis-bundle-api is a backend service for managing and publishing datasets and content as bundles, similar to Florence’s collections.

Getting started

To run make lint-api-spec you require the Node version specified in .nvmrc and to install redocly/cli:

   # Ensure you have the correct version of node installed
   nvm install

   # Install redocly
   nvm exec -- npm install -g @redocly/cli

Dependencies

  • No further dependencies other than those defined in go.mod

Configuration

Environment variableDefaultDescription
BIND_ADDR:29800The host and port to bind to
DATASET_API_URLhttp://localhost:22000The hostname and port for the Dataset API
GRACEFUL_SHUTDOWN_TIMEOUT5sThe graceful shutdown timeout in seconds (time.Duration format)
HEALTHCHECK_INTERVAL30sTime between self-healthchecks (time.Duration format)
HEALTHCHECK_CRITICAL_TIMEOUT90sTime to wait until an unhealthy dependent propagates its state to make this app unhealthy (time.Duration format)
OTEL_BATCH_TIMEOUT5sTimeout for OpenTelemetry batch export (time.Duration format)
OTEL_EXPORTER_OTLP_ENDPOINTlocalhost:4317Endpoint for OpenTelemetry service
OTEL_SERVICE_NAMEdis-bundle-apiLabel of service for OpenTelemetry service
OTEL_ENABLEDfalseFeature flag to enable OpenTelemetry
DEFAULT_MAXIMUM_LIMIT1000Default number of maximum bundles returned
DEFAULT_LIMIT20Default number of bundles returned
DEFAULT_OFFSET0Default offset
ENABLE_PERMISSIONS_AUTHfalseFeature flag to enable permissions authentication
SLACK_ENABLEDfalseFeature flag to enable Slack notifications
ZEBEDEE_URLhttp://localhost:8082Zebedee URL
ZEBEDEE_CLIENT_TIMEOUT30sTimeout for Zebedee client (time.Duration format)
BUNDLE_PUBLISH_SLOW_THRESHOLD59sDuration a bundle's content item publish can take before a Slack alarm is raised (time.Duration format)

Contributing

See CONTRIBUTING for details.

License

Copyright © 2026, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.