How does strapi integrate with Rest API in general

In general to interact with external resources it usually requires a custom controller/service/model lifecyle to fetch, update, or interact with other resources.

It largely depends on how you want to interact with the resource.