EtienneDx / git-mentor

A git server with built-in tools for teaching programming
MIT License
2 stars 0 forks source link

Add health API #42

Open EtienneDx opened 2 months ago

EtienneDx commented 2 months ago

There should be a health API returning the status of the server. Ideally it should cover both the gmt-api server, the database server and the gmt-server server.

This should look like:

GET /health

> {
>   "api": true,
>   "git": false,
>   "database": true
> }

Expanding after #45, the ci should look at this endpoint to validate whether the server is healthy or not