Replace controller generator with api generator