Then, I added references to the following libraries:
System.Net.Http System.Threading.Tasks Microsoft.AspNetCore.Mvc
Then, I created the HomeController and Index action method:
[Route(“api/[controller]”)] public class HomeController : Controller { private readonly HttpClient _httpClient; public HomeController(HttpClient httpClient) { _httpClient = httpClient; } [HttpGet] public async Task Index() { var response = await _httpClient .GetAsync(“https://jsonplaceholder.typicode
https://t.co/SqcJKOatM1