An open API service indexing awesome lists of open source software.

https://github.com/turnerlabs/turner-defaultbackend

A trivial web service that returns 501 Not Implemented for all requests except for health checks, which get 200 OK
https://github.com/turnerlabs/turner-defaultbackend

defaultbackend golang helloworld webserver

Last synced: 9 months ago
JSON representation

A trivial web service that returns 501 Not Implemented for all requests except for health checks, which get 200 OK

Awesome Lists containing this project

README

          

# turner-defaultbackend

A trivial web service that returns _501 Not Implemented_ for all requests except of health checks, which get _200 OK_.

Configuration via the following env variables (all are optional):

* `PORT` (default: 8001) - the port to listen on
* `HEALTHCHECK`: (default: /healthz) - the URL that should return _200 OK_
* `PRODUCT` (default: "") - for inclusion in the body of the HEALTHCHECK response
* `ENVIRONMENT` (default: "") - for inclusion in the body of the HEALTHCHECK response
* `ENABLE_LOGGING` - set to `true` to log requests to stdout