added path parameter to makeRequestWithMethodName