Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1 KB

README.md

File metadata and controls

24 lines (21 loc) · 1 KB

healthcheck

Build Status Coverage Status Codacy Badge

A simple project implementing a health check for testing purposes.

Run

docker pull maxwo/healthcheck

docker run -p 8080:8080 maxwo/healthcheck

Get healthcheck state

curl http://127.0.0.1:8080/healthcheck

Set healthcheck state

curl -X PUT -H 'Content-type: application/json' -d 'true' http://127.0.0.1:8080/healthcheck

Healthcheck endpoint

curl http://127.0.0.1:8080/health

It should return a 200 OK status when healthy, otherwise, 503.