Implement the REST methods : GET, PUT, POST, DELETE.