Categorygithub.com/ONSdigital/dp-hierarchy-api

# README

dp-hierarchy-api

An API used to retrieve hierarchies - using root or child endpoints - returning children and parents (breadcrumbs) for the requested node.

Getting started

Configuration

Environment variableDefaultDescription
BIND_ADDR:22600The host and port to bind to
HIERARCHY_API_URLhttp://localhost:22600The external address of this API
GRACEFUL_SHUTDOWN_TIMEOUT5sThe graceful shutdown timeout (Go time.Duration format)
CODE_LIST_URLhttp://localhost:22400The external address of the Code List API
HEALTHCHECK_INTERVAL30sThe time between doing health checks
HEALTHCHECK_CRITICAL_TIMEOUT90sThe time taken for the health changes from warning state to critical due to subsystem check failures

Graph / Neptune Configuration

Environment variableDefaultDescription
GRAPH_DRIVER_TYPE""string identifier for the implementation to be used (e.g. 'neptune' or 'mock')
GRAPH_ADDR""address of the database matching the chosen driver type (web socket)
NEPTUNE_TLS_SKIP_VERIFYfalseflag to skip TLS certificate verification, should only be true when run locally

:warning: to connect to a remote Neptune environment on MacOSX using Go 1.18 or higher you must set NEPTUNE_TLS_SKIP_VERIFY to true. See our Neptune guide for more details.

Contributing

See CONTRIBUTING for details.

License

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

Released under MIT license, see LICENSE for details

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author