Rest API for CRUD operations.