Fix a case clause in rest-appi