rest request formatting