hopfenspace / MateBot

Micro service providing an API for MateBot clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rework the /status endpoint into a more generic /health endpoint

CrsiX opened this issue · comments

commented

The GET /status endpoint currently provides a bunch of irrelevant data. It should be replaced with a much simpler GET /health endpoint which only carries the startup timestamp and should return a 200 response in any case.

We may add further data to this endpoint in the future (e.g. RAM or CPU usage), but this is currently not needed. Additionally, this endpoint may be available without authentication, since it provides very generic information about the server only. This allows monitoring solutions to watch over the server without needing to hassle with the authentication flow of the application.