To run a REST API health check, use the following:
$ export TOKEN=<my JWT token>
$ curl -k -H
"Authorization: Bearer ${TOKEN}"
"http://localhost/api/REST/v1/test"
{
"message"
:
"OK"
}
If the REST API is running successfully, this command will return “OK“.
If your JWT is incorrect, this command will return an authentication failure.
If the URL is incorrect or the REST server isn't running, nothing will be returned.