Generate controller and model for api