code: public RestRequestInformation asRestRequestInformation() {
          try {
              return new RestRequestInformationImpl(
                      api, new URL(endpoint.getFullUrl(urlParameters)), queryParameters, headers, body);
          } catch (MalformedURLException e) {
              throw new AssertionError(e);
          }
      }
docs: Gets the information for this rest request.
  
  @return The information for this rest request.