Added get-rest method.