CSSG-Labs/flask-todo-app

Create healthcheck endpoint

Open

#9 opened on Apr 9, 2022

 (1 comment) (0 reactions) (2 assignees)HTML (4 forks)auto 404
backendgood first issue

Repository metrics

Stars
 (2 stars)
PR merge metrics
 (PR metrics pending)

Description

  • 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