Add Rest class and RestMethods interface