Best practices to consume external REST API from within jmix

Are there any recommended best practices to consume external REST API from within jmix platform?

For example, lets say I want to open a connection to an external site and make an http request and persist the resuls.

Is there any suggested design pattern for this by the jmix team? I know there are a lot of librarys already built into the platform.

Thanks in advance.

For example look at the IDEA => Code => Generate => Jmix Code Snippets => Web

i’m sorry, can’t find it. is that within the Menu of Intellij IDEA?

Now I see it! thanks.

For real code example look at External data sample