CSSG-Labs/flask-todo-app

Create healthcheck endpoint

Aberta

#9 aberto em 9 de abr. de 2022

 (1 comentário) (0 reação) (2 responsáveis)HTML (4 forks)auto 404
backendgood first issue

Métricas do repositório

Stars
 (2 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador