Pattern matching
A YAML file has one or more rules. The stub evaluates each when
of all rules and returns the first matched response
.
Here is the example of manifest as follows:
The stub will return the following response on the request GET /numbers?order=asc
And on the request GET /numbers?order=desc
And on the request GET /numbers?order
And on the request GET /numbers
If the last entry is not defined, the stub will return a 404.
Last updated