server discovery rest call