What runtime is required?
Node.js and npm are required for installation (`npm i swagger-faker -g`).
@Pingtouges
Generate mocker services automatically through Swagger or OpenAPI.
工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
Swagger Faker generates fake data from a swagger.json file and automatically starts a mock server with that generated fake data. It is designed for developers who need quick mock APIs based on OpenAPI specifications.
Install it globally via npm i swagger-faker -g. Run swagger-faker init to create a configuration file, update it with your swagger source paths, then run swagger-faker gen to generate mock data and swagger-faker run to start the mock server.
Node.js and npm are required for installation (`npm i swagger-faker -g`).
After running `swagger-faker gen`, the mock data files are placed in the `mock-server/data` folder. You can edit these JSON files directly to customize the responses.
The default port is `8081`, but you can change it by setting the `port` field in the `swagger-faker.config.json` file.
In the configuration file, set the `sourcePaths` array to the path of your swagger or OpenAPI file (e.g., `"./source/openapi.json"`).
YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
不止于 CSS
Painless E2E Automation for Mobile and Web
A curated list of references for MLOps
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
评论