Add healthcheck endpoint (close #140)

This commit is contained in:
Petr Sloup
2017-05-10 08:57:51 +02:00
parent d30027e992
commit 5d93b1d4f9
3 changed files with 24 additions and 0 deletions

View File

@@ -64,3 +64,10 @@ Array of all TileJSONs is at ``/index.json`` (``/rendered.json``; ``/data.json``
List of available fonts
=======================
Array of names of the available fonts is at ``/fonts.json``
Health check
============
Endpoint reporting health status is at ``/health`` and currently returns:
* ``503`` Starting - for a short period before everything is initialized
* ``200`` OK - when the server is running