Add RESTful API for managing models.