Health check
const options = {method: 'GET'};
fetch('http://localhost:4055/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4055/health"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url http://localhost:4055/healthimport requests
url = "http://localhost:4055/health"
response = requests.get(url)
print(response.text){
"status": "<string>",
"timestamp": "<string>"
}Health
Health check
Returns the health of the API
GET
/
health
Health check
const options = {method: 'GET'};
fetch('http://localhost:4055/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4055/health"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url http://localhost:4055/healthimport requests
url = "http://localhost:4055/health"
response = requests.get(url)
print(response.text){
"status": "<string>",
"timestamp": "<string>"
}Was this page helpful?