why don't you  extend APIEntity