package com.devjob.application.config;

import com.devjob.application.client.JobHttpClient;
import com.devjob.application.client.JobHttpClientFallback;
import com.devjob.application.client.NotificationHttpClient;
import com.devjob.application.client.NotificationHttpClientFallback;
import com.devjob.application.client.UserHttpClient;
import org.springframework.cloud.client.circuitbreaker.httpservice.HttpServiceFallback;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.service.registry.ImportHttpServices;

@Configuration
@ImportHttpServices(group = "devjob-job", types = JobHttpClient.class)
@ImportHttpServices(group = "devjob-notification", types = NotificationHttpClient.class)
@ImportHttpServices(group = "devjob-user", types = UserHttpClient.class)
@HttpServiceFallback(value = JobHttpClientFallback.class, group = "devjob-job")
@HttpServiceFallback(value = NotificationHttpClientFallback.class, group = "devjob-notification")
public class HttpClientConfig {
}
