Check server type
To check the server type
Method : GET
URI : /server/type
Example
curl -X GET https://<MasterIP:Port>/server/type
Response
{
"type": "master",
"num_slaves": 1,
"slaves": [
{
"ip": "testrepl2.bangdb.com",
"port": "10101",
"sync_state": "SYNC_IN_PROGRESS"
}
],
"service_type": "DB_SERVICE"
}