code: public ApiResponse<List<Integer>> getRouteOriginDestinationWithHttpInfo(Integer destination, Integer origin,
              List<Integer> avoid, List<List<Integer>> connections, String datasource, String flag, String ifNoneMatch)
              throws ApiException {
          com.squareup.okhttp.Call call = getRouteOriginDestinationValidateBeforeCall(destination, origin, avoid,
                  connections, datasource, flag, ifNoneMatch, null);
          Type localVarReturnType = new TypeToken<List<Integer>>() {
          }.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Get route Get the systems between origin and destination --- This route
  is cached for up to 86400 seconds
  
  @param destination
  destination solar system ID (required)
  @param origin
  origin solar system ID (required)
  @param avoid
  avoid solar system ID(s) (optional)
  @param connections
  connected solar system pairs (optional)
  @param datasource
  The server name you would like data from (optional, default to
  tranquility)
  @param flag
  route security preference (optional, default to shortest)
  @param ifNoneMatch
  ETag from a previous request. A 304 will be returned if this
  matches the current ETag (optional)
  @return ApiResponse&lt;List&lt;Integer&gt;&gt;
  @throws ApiException
  If fail to call the API, e.g. server error or cannot
  deserialize the response body