Categorygithub.com/ONSdigital/dp-file-downloader

# README

dp-file-downloader

Accepts GET requests to download a file (currently limited to tables in html, xlsx or csv format), retrieves the definition of the file from the content server (Zebedee), makes a POST request to the renderer service and returns the response to the user.

Getting started

make debug
Environment variableDefaultDescription
BIND_ADDR:23400The host and port to bind to
CORS_ALLOWED_ORIGINS*The allowed origins for CORS requests
SHUTDOWN_TIMEOUT5sThe graceful shutdown timeout (time.Duration format)
HEALTHCHECK_INTERVAL30 secondsInterval between health checks
HEALTHCHECK_CRITICAL_TIMEOUT90 secondsAmount of time to pass since last healthy health check to be deemed a critical failure
OTEL_BATCH_TIMEOUT5sInterval between pushes to OT Collector
OTEL_EXPORTER_OTLP_ENDPOINThttp://localhost:4317URL for OpenTelemetry endpoint
OTEL_SERVICE_NAME"dp-file-downloader"Service name to report to telemetry tools
TABLE_RENDERER_HOSThttp://localhost:23300The hostname and port of the table renderer
CONTENT_SERVER_HOSThttp://localhost:8082The hostname and port of the content service

Endpoints

urlMethodDescription
/download/table?format={format}&uri={uri}GETRetrieves (generates) and returns the requested file

Contributing

See CONTRIBUTING for details.

License

Copyright © 2016-2020, 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