model: allow nested models by id properly
adapter/rest: allow endpoint as a lambda value