ShepardApiFactory.java
package de.dlr.bt.stc.sink.shepard;
import de.dlr.shepard.client.java.ApiClient;
import de.dlr.shepard.client.java.api.TimeseriesApi;
public class ShepardApiFactory {
private ApiClient getApiClient(String basePath, String apiKey) {
var apiClient = new ApiClient();
apiClient.setBasePath(basePath);
apiClient.setApiKey(apiKey);
return apiClient;
}
public TimeseriesApi getTimeseriesApi(String basePath, String apiKey) {
return new TimeseriesApi(getApiClient(basePath, apiKey));
}
}