We can send a ping request to check the status of the API.
It uses the REST endpoint GET /xray/api/v1/system/ping to perform the Health Check.
And the ping endpoint responds to requests with a basic 200: Ping successful message.
It uses the REST endpoint GET /xray/api/v1/system/ping to perform the Health Check.
And the ping endpoint responds to requests with a basic 200: Ping successful message.
Command:
curl -uadmin:password -XGET http://localhost:8082/xray/api/v1/system/ping
Output:
{"status":"pong"}
Sample usage: