Added views and models for REST API