class ExternalService {

    public String sendGetRequest(String url){
        String externalResponse="";
        RestTemplate template=new RestTemplate();
        try{
            externalResponse=template.getForObject(url,String.class);
        }
        catch (Exception ex){
            ex.printStackTrace();
        }

        return externalResponse;
    }

}