How can a mock example return something from the request

Here is what I want to do: the request is something like:

https://www.google.ca/search?q=test

The response would be:
{
“data”:“something”,
“query_string_param_q_was”:“test”
}

and I need “query_string_param_q_was” to be what the query string parameter was on the request.

So my question is: Do I have access to the request in an example response and if yes how ?

Thanks

1 Like

The response body returned after an endpoint is run comes from the server.

I could be wrong in interpreting what your asking, but I would not want POSTMAN inserting anything into the response body.

@mickaelbeaudry Nope - for now, Postman will only return the example responses that you’ve saved. There’s no way to have the mock server return dynamic responses yet.