Health check
Try it
GET
/pingAuthentication
No authentication required.
Response
200OK
application/json- object
statusstring
curl -X GET 'https://api.example.com/v1/ping'const response = await fetch('https://api.example.com/v1/ping', {
method: 'GET'
});
const data = await response.json();
console.log(data);interface ApiResponse {
// shape your response here
}
const response: Response = await fetch('https://api.example.com/v1/ping', {
method: 'GET'
});
const data = (await response.json()) as ApiResponse;
console.log(data);import requests
url = "https://api.example.com/v1/ping"
response = requests.request("get", url)
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.example.com/v1/ping", nil)
if err != nil {
panic(err)
}
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
out, _ := io.ReadAll(resp.Body)
fmt.Println(string(out))
}{
"status": "ok"
}