remove is_string and is_int in api controller