Restservice implementation