Sujeet Raman

Sujeet Raman

  • 860
  • 927
  • 354.5k

How to use IHttpClientFactory or HttpClient to call multiple API's?

Feb 1 2021 2:12 PM
Hi all,
 
I am new to ASP.net core web API.I was trying to create a main API which will call 2 services (concider these 2 are micro services)
 
1.api/school/getdetails
2.api/college/details
 
i gone through some article and i understood  IHttpClientFactory or HttpClient can help to this but i am not sure how to use these.Lots of articles confusing me..
 
main api should be......... http://SYS09X.com:5008/api/school/getdetails
 
MainAPI........calls.........school service,college service 
 
please help me with some article or suggestion for my understanding 

Answers (5)