ActiveRecord attribute mapping for API development