rest interface working