Support enums as parameters in API methods