0

I am beginner in android .I have three rest API . I want to hit three rest API within single network request.is it possible ???. if possible give me some resource . thank you

Sandeep Malik
  • 1,972
  • 1
  • 8
  • 17
  • 1
    In general 3 API call means 3 network call but I get what you are asing. Either You can merge all the 3 in one or find a possibility of batch. See this https://stackoverflow.com/questions/36474120/how-to-make-multiple-request-and-wait-until-data-is-come-from-all-the-requests-i – Rohit5k2 Jul 09 '19 at 11:43
  • https://stackoverflow.com/questions/51112602/multiple-api-request-using-retrofit-and-rx-java – Rohit5k2 Jul 09 '19 at 11:44
  • except rx java , have any mechanism in retrofit for handle this ?? – Abdul Quddus Mozumder Jul 09 '19 at 11:51

1 Answers1

1

No, you can not hit more than one API in a single request. You have to create multiple request.You can follow this link for more information about retrofit :- https://square.github.io/retrofit/

Sandeep Malik
  • 1,972
  • 1
  • 8
  • 17