Hi all
I need some guide in using datasource variables with infinity datasource.
I created 3 datasources with different url endpoints (e.g api-example-dev com/). I already created the variable but need help on how to use them in the url or query (json).
example of the url
https://api-example-dev.com/products
https://api-example-stage.com/products
Goal: to select each env from a dropdown and display the products panels. Thanks for in advance
you can configure your environment as follows
the __text column is what will be displayed when using ${envs:text}
the __value column is what will be displayed when using ${envs:value}
Then you use the variable as follows
thanks for the respone @yosiasz
regarding the envs/value? Do I have to define that as a variable? If yea, which variable type?
thanks
you can do it many different ways as long as the data looks like I laid out
sql query,static data, csv data (as show above) etc @kcwitch
thanks @yosiasz
I actually got it by adding a new ds connection and then created a datasource variable. thanks for the support
1 Like