Class OpenFeignDistanceConfiguration

java.lang.Object
com.unosquare.carmigo.configuration.OpenFeignDistanceConfiguration

@Configuration public class OpenFeignDistanceConfiguration extends Object
Open feign configuration to communicate with Distance API.
  • Constructor Details

    • OpenFeignDistanceConfiguration

      public OpenFeignDistanceConfiguration()
  • Method Details

    • requestInterceptor

      @Bean public feign.RequestInterceptor requestInterceptor()
      Intercepts a request to Distance to add some headers.
      Returns:
      a RequestInterceptor.