ICTU / quality-time

Software quality monitoring for teams and projects
Apache License 2.0
49 stars 15 forks source link

API health endpoint doesn't report on health #9860

Open wkoot opened 1 week ago

wkoot commented 1 week ago

Describe the bug The health endpoint is not actually an endpoint, it just happens to return http 200 ok like any api url path.

To Reproduce

  1. Navigate to /api/health
  2. Navigate to /api/randompage
  3. Observe that the return data is the same

Expected behaviour JSON return data, describing the instance health such as

{
  "health": "GREEN"
}

And, return a 404 for non-existing endpoints.