Is it possible to setup a mock server which accepts requests by a given pattern?

Hi guys,

I’ve searched for the answer for some time now and I failed to find anything.

I’m testing out the mock servers and I can not figure out how to make the mock server to work with variable URLs.

I have an API endpoint of “/order/initalize/[orderID]”. The “[orderID]” part is variable and fits the ([A-Z0-9]{8}) regex;

It does not have to be such a specific pattern basically I would like the mock server to return the same example response for any call to “/order/initalize/[whatever_string]” or “/order/initalize/*” if you fancy.

Is it possible?


1 Like

Hey @jwwisniewski,

Welcome to the community :wave:

Are you able to provide an example of what you have tried so far, please?