CSSG-Labs/flask-todo-app

Create healthcheck endpoint

Offen

#9 geöffnet am 09.04.2022

 (1 Kommentar) (0 Reaktionen) (2 zugewiesene Personen)HTML (4 Forks)auto 404
backendgood first issue

Repository-Metriken

Stars
 (2 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

  • GET request to route returns JSON response:
    • HTTP status code
    • Current datetime
    • Uptime

WHAT:

  • an endpoint that can be used to check if the app is running

WHY:

  • Useful for tests to ensure app is working
  • Useful for future diagnostic checks and reports (ex: database connectivity status)

HOW:

  • Example can be seen in this Express.js article

Contributor Guide