created restController class. Post Put Delete Get rest actions for base domain objetc