I have a mock API server. I’m trying to return dynamic data when a request is made (i.e. different data per request, generated by code).
Just like how the dynamic variables work, unfortunately those are preconfigured.
So I have written a Pre-request script to update an environment variable.
And then I return the value of this variable in the response body.
However, because the variable doesn’t persist between Current and Initial Value,
the response body always returns the Initial value which makes the behaviour static.
Is there a solution to this? I’m open to other ways of going about it, thanks.