I am learning OpenAPI Specification. Are there any tools to mock an API based on an OpenAPI definition in YAML format?
I am learning OpenAPI Specification. Are there any tools to mock an API based on an OpenAPI definition in YAML format?
SwaggerHub includes a mock server for OpenAPI 3.0 and 2.0 specs. Mocking is available on both paid and free plans.
To use the mock server, import your spec into SwaggerHub and enable "API Auto Mocking". Mock responses can be JSON, YAML and XML, and are generated based on your response schemas and the example, default and enum values defined in the schemas.
Disclosure: I work for the company that develops SwaggerHub.