rest-repo for class