singular model in the api generator

@darbyfrey