Implémenter route /v0/health

Ajouter error type si dbclient ou bottinclient ne sont pas implémentés

Ajouter echo.Group v0
This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-15 18:13:48 -04:00
parent 3791631045
commit dc72748fbe
4 changed files with 76 additions and 0 deletions

View file

@ -1,2 +1,18 @@
// Package apiresponse provides response types for API routes
package apiresponse
// Response defines the basic response types fields
type Response struct {
Error string
Message string
StatusCode int
}
// HealthGET is the response type for `GET /v:version/health/ http/1.1`
type HealthGET struct {
Response
Data struct {
BottinStatus string
DBStatus string
}
}