http://localhost:8080/user?id=585a449928ea381be8d881b5
in your local environment and http://alpha.test.xyz.com/user?id=585a449928ea381be8d881b5
in your test environment. With environments you will have a URL like http://{{url}}/user?id={{userId}}
. Now you can create environments and define value for the used variables.{{variable_name}}
. Now based on the environment you select, while running your request the variable will be replaced with its defined value.{{variable_name}}
to use a variable.
you can use variables while sending (JSON) data also.