Ejemplo n.º 1
0
        public async Task <ActionResult <string> > GetApiCall()
        {
            var url             = "http://api.openweathermap.org/data/2.5/weather?id=742865&appid=cd533a4d285b167b15dfc1cfa4bdd1d0";
            var weatherResponse = await httpClientService.GetModelsAsync(url);

            await elasticSearchService.InsertElasticAsync(weatherResponse);

            return(Ok(weatherResponse));
        }