EwelinaLuiza
7 years agoNew Contributor
Swagger hub - auto mocking plugin doesn't work
Hi, I'm trying to generate auto mock for my API, but I have problem with that. The mock should be available at: https://virtserver.swaggerhub.com/{owner}/{api}/{version} I' m getting 404 for ...
- 7 years ago
The mock base URL is just the prefix for the operation paths. For example, to call GET /pet/1, you would use
https://virtserver.swaggerhub.com/ITT8/MOCK_TEST/1.0.0/pet/1
If you try out the operations in the UI, you will see their corresponding mock URLs in the curl examples.
The base URL itself will only return a response if you have an operation at the root path /, such as:
paths: /: get: ...
Hope this helps! We'll update the docs to clarify this.