The goal of this is to present the list of referred channels in a table.
I'm not sure how to implement it in an optimal way. I'd say we can either:
add an extra param for channels/:id endpoint with an array of channel ids that were referred and then for every single row fetch info about the given channel,
similar to the first approach, but add some kind of endpoint that would allow fetching an array of channels, so instead of multiple req, we would only fire one.
just return an array of objects as referred channels with all data we need
Edit:
Now when I think of it, approaches 1 and 2 don't make much sense if the reward is calc on the BE.
The goal of this is to present the list of referred channels in a table.
I'm not sure how to implement it in an optimal way. I'd say we can either:
channels/:id
endpoint with an array of channel ids that were referred and then for every single row fetch info about the given channel,Edit: Now when I think of it, approaches 1 and 2 don't make much sense if the reward is calc on the BE.