Creation of REST classes