Added endpoints and a model