add field injectors while generate API