package com.liquidnet.service.feign.example.api;

import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "liquidnet-service-example",fallback = FallbackFactory.Default.class)
public interface FeignExampleClient {

    @GetMapping("/service-example/emp/test")
    String test(@RequestParam("str") String str);
}
