travel.wink.sdk.affiliate.browse.AffiliateBrowseSDKConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of affiliate-browse-sdk-java Show documentation
Show all versions of affiliate-browse-sdk-java Show documentation
Java SDK for the Wink Affiliate Browse API
package travel.wink.sdk.affiliate.browse;
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.affiliate.browse.api.SearchCategoriesApi;
import travel.wink.sdk.affiliate.browse.api.BrowseApi;
import travel.wink.sdk.affiliate.browse.api.CuratedListApi;
import travel.wink.sdk.affiliate.browse.api.SavedSearchApi;
import travel.wink.sdk.affiliate.browse.invoker.ApiClient;
@RequiredArgsConstructor
@Configuration
public class AffiliateBrowseSDKConfiguration {
private final WebClient webClient;
@Bean
public ApiClient apiClient() {
return new ApiClient(this.webClient);
}
@Bean
public BrowseApi browseApi() {
return new BrowseApi(apiClient());
}
@Bean
public CuratedListApi curatedListApi() {
return new CuratedListApi(apiClient());
}
@Bean
public SavedSearchApi savedSearchApi() {
return new SavedSearchApi(apiClient());
}
@Bean
public SearchCategoriesApi searchCategoriesApi() {
return new SearchCategoriesApi(apiClient());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy