Swagger Mock Generator: Automatically Generate Mock Data from Swagger API Docs
Swagger Mock Generator is a Chrome browser extension developed by mazaoyong.youzan. It allows users to read Swagger API documentation and automatically generate mock data based on the interface parameters. With this extension, all you need to provide is a standard Swagger API document, and you can generate rich mock data to support development, testing, and demonstrations.
The main features of Swagger Mock Generator include:
- Parsing Swagger JSON or YAML format interface documents
- Generating random mock data based on parameter types (string, number, boolean, object, array, etc.)
- Supporting both basic types (string, number, boolean, etc.) and complex types (object, array) in Swagger
- Writing generated mock data to interface response body, response headers, or request parameters
- Supporting global and personalized mock configurations, including custom regular expressions
- Easy to use, no coding required to generate mock data.