Virola Web API - Server Health
curl -k -X GET \ -H "Authorization: Bearer TOKEN" \ https://HOST:PORT/api/v1/server-health
You can also use the javascript language to access wabapi, as shown in the following example:
<html>
<body>
<script>
var req = new XMLHttpRequest();
req.onreadystatechange = function() {
if (req.readyState == 4 && req.status == 200)
document.write("<pre>" + req.responseText + "</pre>");
}
req.open("GET", "https://HOST:PORT/api/v1/server-health", true);
req.setRequestHeader("Authorization", "Bearer TOKEN");
req.send(null);
</script>
</body>
</html>
All available Web API calls
- Authentication with token – suitable for individual requests
- Authentication with a username and password – suitable for maintaining a session to send multiple requests
- Logout
- Getting user status
- Getting rooms
- Getting and sending messages
- Getting users
- Checking server health