Added rest request method