architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

NetworkBoundResource - data from multiple APIs

Open qbait opened this issue 7 years ago • 1 comments

I have one model in my database called Country. To have all information, I need to call 4 APIs (to get general info, to get currency exchange, to get a flag and to get a photo URL). I'm thinking what's the best to modify NetworkBoundResource in this case? Shall I have one NetworkBoundResource for loadCountry() and modify createCall to do multiple calls. Or shall I create 4 different NetworkBoundResource's for every API?

Both approaches don't seem right to me though. What do you reckon?

qbait avatar Apr 17 '18 21:04 qbait

@qbait Hi, which approach did you finally use?

NapStudio avatar Feb 29 '20 19:02 NapStudio