Technolords / microservice-mock

A webservice to mock other web services, suitable for testing, for performance or regular. Optionally add delay or error codes. (latest release: 1.6.0)
MIT License
14 stars 7 forks source link

Add support for wildcards #28

Closed Technolords closed 8 years ago

Technolords commented 8 years ago

This issue is about wildcard * support. This improvement will lead to reduction of the configuration file as whole group of matches can be consolidated into a single wildcard pattern match.

If however there are multiple matches (during execution) and there is a static pattern match and a wild card match the static will win. Having said that, it should also be possible to supply an order attribute to the configuration which will overrule that behaviour.

Note that this also applies for POST requests (or any other type for that matter).

Technolords commented 8 years ago

Extensions such as order attribute, as well as supporting specific matches on request parameters are saved for later.

Technolords commented 8 years ago

See PR: https://github.com/Technolords/microservice-mock/pull/29