CSSG-Labs/flask-todo-app

Create healthcheck endpoint

Aperta

#9 aperta il 9 apr 2022

 (1 commento) (0 reazioni) (2 assegnatari)HTML (4 fork)auto 404
backendgood first issue

Metriche repository

Star
 (2 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

  • 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

Guida contributor