Generic REST Class