gbv / jskos-server

Web service to access JSKOS data
https://coli-conc.gbv.de/api/
MIT License
6 stars 4 forks source link

Status endpoint should check database #187

Closed nichtich closed 10 months ago

nichtich commented 1 year ago

If the backend database is down, each endpoint returns a DatabaseAccessError but the /status endpoint. Status endpoint should do a simple query to check whether database is alive and readable. This is not a major bug but I'd call it a bug as "status" implies such a check.

stefandesu commented 1 year ago

That's what the ok value is for. Maybe not the best name though.