tarantool / docbot

Bot to automate some GitHub things
4 stars 1 forks source link

Add `/health` endpoint for service version control #36

Open ochaplashkin opened 1 year ago

ochaplashkin commented 1 year ago

Now, you need to look either at GitHub CI or log in to the virtual machine to understand which version is installed on the environment.

I suggest adding an additional endpoint "healthcheck", which will give the response:

GET /health

{
    "version": "master-b721d19"
    "status": "ok"
}

or, if tag is exist:

{
    "version": "1.0.0"
    "status": "ok"
}