So, this is a two parted question but both pertaining to REST APIs. I am developing a component for Joomla in which I have a few database fields (ie. teamid and platform) that are stored in the local db. These two fields correlate to a rest API from an external source.
If table #__nhlleague_team table has the three fields:
ID, teamid, platform
The API I am pulling from in general is
https://proclubs.ea.com/api/nhl/clubs/info?clubIds=*teamid*&platform=*platform*
for example
https://proclubs.ea.com/api/nhl/clubs/info?clubIds=196556&platform=xboxone
So, the question is - how do I insert the GET request in the Joomla Component? Would it be its own function in the Model? I just need the data to be displayed based on those parameters, and have no idea how to implement in the component.