8套API测试“在线工具生成型”Prompts:每条输出完整项目源码、文件树、运行/构建命令与QA清单,覆盖Mock服务、请求构造、响应断言、重放与Diff等。
在线 OpenAPI Request Builder
输入 OpenAPI 片段或手动字段,生成可执行的 curl、fetch、axios,并支持导出为 Postman。
英文 Prompt:
Build an online tool: "OpenAPI Request Builder". Inputs: OpenAPI YAML/JSON paste, pick endpoint, auto-generate request template, allow editing headers/query/body with validation. Outputs: curl, JS fetch, axios, and Postman collection export. Features: env variables, auth presets (Bearer/Basic/API key), copy buttons, localStorage autosave, dark/light theme. Tech: React+Type +Vite. Output: full project code + file tree + run/build + deploy guide + QA checklist with 12 test cases.
中文释义: 生成一个可部署的 OpenAPI 请求构造器,支持导出 Postman 与多语言代码,并给足可复测用例。
在线 API Mock Server Generator(本地启动)
根据 JSON schema / OpenAPI,生成可运行的 mock server 工程与示例数据。
英文 Prompt:
Create a prompt that generates a runnable mock server project. Input: OpenAPI 3.0 spec pasted by the user. Output must include: file tree, Fastify + Type server, routes, request/response validation, fixture data, run s, Dockerfile, and a small test suite. Provide at least 6 integration tests (curl) and a QA checklist for edge cases.
中文释义: 生成一个能跑起来的 Mock Server 项目,含 Docker 与接口级测试用例。
在线 Webhook Replayer + 签名工具
保存一次 webhook 的 headers/body,可配置签名并重放到目标环境,记录响应。
英文 Prompt:
Build an online tool: "Webhook Replayer". Inputs: target URL, method, headers editor, raw body, signature generator (HMAC SHA256) with selectable header name and canonicalization rules, retry policy, request timeline, response viewer, export/import events JSON. No backend. Tech: Svelte+TS+Vite. Output full code + run/build + deploy steps + QA checklist + 8 sample fixtures.
中文释义: 生成一个浏览器端 webhook 重放与签名工具,强调可追踪日志与可导入导出。
在线 Response Assertion Playground
输入响应 JSON 与断言规则,实时跑断言并输出失败路径,适合写测试前先验证规则。
英文 Prompt:
Build "Response Assertion Playground". Inputs: response JSON, assertion rules (JSONPath + operators), show pass/fail results, highlight failing paths, export rule set JSON, sample rules. Tech: Vanilla JS + small UI framework. Output: full code + run/build + QA checklist with 15 cases.
中文释义: 生成一个响应断言演练工具:突出失败定位与规则导入导出。
在线 JSON Diff + Patch 工具
对比两段 JSON 输出差异,并生成 JSON Patch;支持应用 patch 看最终结果。
英文 Prompt:
Build an online tool: "JSON Diff + JSON Patch". Features: input JSON A/B, validate, diff view, generate RFC6902 JSON Patch, apply patch, copy/download outputs, errors with line/column, localStorage autosave, dark/light theme. Tech: React+TS+Vite. Output full code + run/build + deploy + QA checklist with 12 tests.
中文释义: 生成一个 JSON diff/patch 工具,包含 patch 生成与应用验证。
在线 HTTP Header 规范化工具
把一段 headers 文本解析为结构化表格,支持大小写规范化与导出为多种格式。
英文 Prompt:
Build "HTTP Header Normalizer". Parse raw headers, render table, allow edits, normalize casing, detect duplicates, export as curl -H list, JSON, and .env. Tech: SolidJS+TS. Output full code + run/build + QA checklist with 10 header sets.
中文释义: 生成一个 header 解析与规范化工具,强调重复项检测与多格式导出。
在线 cURL Parser + 多语言代码生成
解析 curl 命令并生成多语言调用代码,支持编辑请求字段并即时更新结果。
英文 Prompt:
Build "cURL Parser & Code Generator". Parse curl with headers/method/data/form. Allow editing request fields and output code for JS fetch, axios, Python requests, Go net/http. Provide copy buttons, sample commands, and robust error handling. Tech: React+TS+Vite. Output full code + QA checklist with 20 curl examples.
中文释义: 生成 cURL 解析与代码生成工具,要求覆盖复杂 edge cases。
在线 API 测试用例生成器(基于输入示例)
输入 endpoint 描述与示例请求/响应,自动生成测试用例列表与 QA checklist。
英文 Prompt:
Build an online tool: "API Test Case Generator". Inputs: endpoint de ion, request example, response example, constraints. Output: structured test cases (happy path + boundary + error + security), plus a QA checklist. Include export to Markdown/JSON. No backend. Tech: Next.js+TS static export. Output full code + run/build + deploy guide + 10 example templates.
中文释义: 生成一个测试用例生成器:强调结构化输出、导出能力与覆盖面。