swagger-mock-generator

swagger mock generator

Swagger Mock Generator - Edge Add-on

"swagger-mock-generator" is a Chrome browser extension that automatically generates mock data based on the parameter definitions of a Swagger interface document. This add-on supports development, testing, and demonstration purposes.

Add-on stats

By: RiceNine
Users: 50
-3
Version: 1.0.3 (Last updated: 2023-07-05)
Creation date: 2023-06-26
Risk impact: Moderate risk impact
Risk likelihood:
Manifest version: 3
Permissions:
  • storage
  • tabs
Size: 1.40M
URLs: Website

Other platforms

Not available on Chrome
Not available on Android
Not available on Firefox
Want to check extension ranking and stats more quickly for other Edge add-ons? Install Chrome-Stats extension to view Edge-Stats data as you browse the Edge Add-on Store.

Add-on summary

简介: Swagger Mock Generator 是一个 Chrome 浏览器扩展,它可以读取 Swagger 接口文档,根据接口的参数定义自动生成 Mock 数据。通过使用这个扩展,您只需要提供一个标准的 Swagger 接口文档,就可以一键生成丰富的 Mock 数据来支持开发、测试及演示。

特性:

  • 解析 Swagger JSON 或 YAML 格式的接口文档
  • 根据接口参数类型(字符串、数值、布尔、对象、数组等)生成随机 Mock 数据
  • 支持 Swagger 基本类型(string、number、boolean 等)及复杂类型(object、array)
  • 生成的 Mock 数据可以写入到接口响应体、响应头或请求参数中
  • 支持全局及个性化的 Mock 配置,包括支持自定义正则表达式等
  • 简单易用,无需编写任何代码即可生成 Mock 数据

github:https://github.com/RiceNine/swagger-mock-webextension

Add-on safety

Risk impact

swagger-mock-generator requires a few sensitive permissions. Exercise caution before installing.

Risk likelihood

swagger-mock-generator has earned a fairly good reputation and likely can be trusted.

Upgrade to see risk analysis details