Liveness probe, plain text
GET
/ping
const url = 'https://example.com/ping';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/pingFor probes that want a body they can string-match without parsing JSON.
Responses
Section titled “Responses”Pong
Media typetext/plain
string