Hello, i’m trying to design API with advance mock script. Is that possible to get variable from environment in mock script?
Hello, currently the mock script does not support retrieving the value of variables.
Can you describe your use case in detail? It would help us understand your needs better.
my use case is i want to create an endpoint to generate data but the data needs to be processed with some logic. Some variables for the logic are fixed
Emily any update on this?
Due to the nature of mock running independently from a specific environment, it is not possible to access environment variables in mock scripts. Could you provide more details about your use case? What kind of data are you trying to generate through the endpoint and what specific logic needs to be applied, when do you need to regenerate this value, and do you need to manually trigger the endpoint for regeneration? This will help us better understand your scenario and explore potential solutions.