Method for create api ids in a model.
Create api ids only for resources without api ids.