Dynamically changing domains in an API query

Hi all!
I'm trying to build an app, where the domain of the API query can change. I would like to select it from a list. All authentication parameters would still be the same, so they could be reused.

So for example, I would have a list of items like:

  • foo
  • bar
  • baz

And depending on what the user selected, the query would fire a REST API request to:

They would all share the same config for auth, etc

I can't seem to find a way to do that. Is it possible?

Hey Juan - welcome to the forum!

This is certainly doable!
You can reference the select value within the URL as shown in example below!

1 Like

Thanks, @stefancvrkotic! Agreed :blush:

In this example, the resource config (auth, etc) is defined on the resource set up page, and you would leave the base url empty so that you can define it on the query