Missing models in resource API

Models can't be defined twice in different resources, but it implies that models are missing in one resource.

This PR fix that.