travel.wink.sdk.booking.client.EngineClientSDKConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of booking-engine-client-sdk-java Show documentation
Show all versions of booking-engine-client-sdk-java Show documentation
Java SDK for the Wink Booking Engine Client API
package travel.wink.sdk.booking.client;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;
import travel.wink.sdk.booking.client.api.ConfigurationApi;
import travel.wink.sdk.booking.client.invoker.ApiClient;
@RequiredArgsConstructor
@Configuration
public class EngineClientSDKConfiguration {
private final WebClient webClient;
@Bean
public ApiClient apiClient() {
return new ApiClient(this.webClient);
}
@Bean
public ConfigurationApi configurationApi() {
return new ConfigurationApi(apiClient());
}
}