Mock server and regular expression

You can do something like this via the URL, create your Mock example like this with an unresolved variable:

When you send a value in the path of the URL /user/1234 it will use that value in the example response.

So you would be able to use the same example for multiple requests.

1 Like