All Downloads are FREE. Search and download functionalities are using the official Maven repository.

travel.wink.sdk.lookup.LookupSDKConfiguration Maven / Gradle / Ivy

package travel.wink.sdk.lookup;

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.lookup.api.LookupApi;
import travel.wink.sdk.lookup.invoker.ApiClient;

@RequiredArgsConstructor
@Configuration
public class LookupSDKConfiguration {
	private final WebClient webClient;

	@Bean
	public ApiClient apiClient() {
		return new ApiClient(this.webClient);
	}

	@Bean
	public LookupApi lookupApi() {
		return new LookupApi(apiClient());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy