add models and rest api