Version: 5.2.x
Read Server Uptime
To read the OpenHIM uptime you will need to make a TLS request to the OpenHIM API for the below method and endpoint.
#
Example- NodeJS
- Bash
Copy the below code into a file titled openhim-api.js
Execute the below command in your terminal to run the nodejs script
Execute the below command in your terminal where the file is located with the required arguments.
The response status code will be 200
if successful.