using api generator for all models