Wiring up models to API