[Rest] Fixing syntax errors