Problem with Feign Client

0

Good afternoon I have a small problem in connecting to another API with the feign client, which happens that locally testing works, when I go up to production it simply gives a notfound.

Feign Client Service code

@FeignClient("service-buscar-indice")

public interface BuscarIndiceFinanceiroService {
public static final String HTTP_HEADER_AUTHORIZATION= "Authorization";
static final String HTTP_HEADER_APPLICATION = "Application";

@GetMapping(value = "", consumes = MediaType.APPLICATION_JSON_VALUE)
public String buscarIndice(
        @RequestHeader(name = HTTP_HEADER_AUTHORIZATION) String authorizationHeaderValue,
        @RequestHeader(name = HTTP_HEADER_APPLICATION) String application,
        @RequestParam(name = "codigo", required = true) String codigo);

}

Controller code of the other api (yes the feign is already enabled and etc ... locally it works, that's the problem kk)

@RestController
@RequestMapping(path = "")
public class BuscarIndiceController {

@Autowired
private BuscarIndiceService buscarIndiceService;

@GetMapping(path="")
public String buscarIndiceFinanceiro(@RequestParam(name="codigo",required=true) String codigo){
    return buscarIndiceService.buscarIndicePorCodigo(codigo);
}


}
    
asked by anonymous 06.06.2018 / 16:33

0 answers