Class UsersApiClientConfig

java.lang.Object
net.andresbustamante.yafoot.core.web.config.UsersApiClientConfig

@Configuration public class UsersApiClientConfig extends Object
  • Constructor Details

    • UsersApiClientConfig

      public UsersApiClientConfig()
  • Method Details

    • usersRestTemplate

      @Bean(name="usersRestTemplate") public org.springframework.web.client.RestTemplate usersRestTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder)
      Builds the RestTemplate object to use for the users REST API.
      Parameters:
      builder - Builder to use
      Returns:
      RestTemplate configured to contact the users API