renamed ApiMethod to Action.