PawelSwaggerHub
5 years agoNew Contributor
How to mock multiple examples with swaggerhub API Mocking tool - OpenAPI 3
Hi all, As per OpenAPI 3 we can have multiple examples. Swaggerhub provides auto-mocking which by default returns the first example (Jessica). I can't find a way to return the second example so in t...
- 5 years ago
Hi Pawel,
As you've correctly noted, SwaggerHub always returns the first example if multiple examples are provided. SwaggerHub mock server does not support looping through responses or examples, but this is supported in our service virtualization product ServiceV.
https://smartbear.com/product/ready-api/servicev/overview/
https://support.smartbear.com/readyapi/docs/servicev/configure/dispatch/index.html