allow fields to be defined on API view