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

travel.wink.sdk.extranet.experiences.ExtranetExperiencesSDKConfiguration Maven / Gradle / Ivy

There is a newer version: 30.5.15
Show newest version
package travel.wink.sdk.extranet.experiences;

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.extranet.experiences.api.ActivityApi;
import travel.wink.sdk.extranet.experiences.api.AttractionApi;
import travel.wink.sdk.extranet.experiences.api.PlaceApi;
import travel.wink.sdk.extranet.experiences.invoker.ApiClient;

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

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

	@Bean
	public ActivityApi activityApi() {
		return new ActivityApi(apiClient());
	}

	@Bean
	public AttractionApi attractionApi() {
		return new AttractionApi(apiClient());
	}

	@Bean
	public PlaceApi placeApi() {
		return new PlaceApi(apiClient());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy