跳到正文
DEV Community· Soul key·· 1 小時前AI 評分38

如何擺脱 Postman 雲端綁定及 Thunder Client v3.0.0 限制,將 API 測試移至 Git 原生 .http 檔案

Escaping Postman Cloud Lock-In & Thunder Client v3.0.0 Limits: Moving API Tests to Git-Native .http Files

AI 導讀

文章指出,Postman 停用離線 Scratch Pad、轉向雲端同步工作區,而 Thunder Client v3.0.0 免費方案設有請求及執行次數上限,促使開發者考慮把 API 測試移至 Git 原生 .http 檔案。

正文

Soul key

Soul key

Posted on Nov 26 Edited on Nov 26

Over the past two years, many backend and full-stack developers ran into the exact same two walls when testing APIs inside VS Code:

  1. Postman retired its offline Scratch Pad and pushed teams toward cloud-synced workspaces ($9 Solo / $19 Team per user/month).
  2. Thunder Client v3.0.0 recently introduced a mandatory free account login, alongside the 50-request-per-collection and 50-monthly-runner-execution cap on the free plan (locking Data-Driven CSV runs, Git Sync, CLI/CI, and WSL behind paid plans).

If your main requirement is keeping API collections inside Git and running parameterized requests locally against localhost or staging, plain-text .http files cover almost everything cleanly.


Step 1: Plain-Text .http Files Diff Cleanly in Git

Instead of opaque cloud exports, a .http suite lives right next to your routes:

@baseUrl = http://localhost:3000
@token = {{$dotenv API_TOKEN}}

### Create Order Smoke Check
POST {{baseUrl}}/v2/orders
Authorization: Bearer {{token}}
Content-Type: application/json

{
  "sku": "PRO-19",
  "quantity": 1
}

Step 2: Three Silent Traps When Migrating Existing Collections

When teams move larger Postman v2.1 collections or Bruno .bru folders to .http or OpenAPI 3.1, three things usually break quietly:

  1. Inherited Folder Auth: Collection-level Bearer or API-Key headers vanish when exporting individual sub-folders.
  2. pm.test() Assertions: Scripts setting dynamic variables (pm.environment.set(...)) and status assertions need deterministic tracking and JUnit XML parity in CI.
  3. CSV / JSON Data-Driven Batches: Plain .http files handle single runs well, but iterating 100+ CSV rows and comparing staging vs prod response schemas usually pushes developers back toward subscription SaaS runners.

Try the Browser-Local Postman → .http / OpenAPI Converter (0 Bytes Uploaded)

I built a working client-side Postman v2.1 → .http & OpenAPI 3.1 converter right on our preview page (paste any collection JSON—it parses folder auth inheritance and assertions entirely inside your browser) as part of validating ReqBridge Local API, a local-first VS Code extension:

  • Lossless Postman v2.1 / Bruno (.bru) ↔ .http & OpenAPI 3.1 conversion
  • Unlimited local CSV / JSON parameterized batch runs with JUnit XML & Markdown output
  • Side-by-side staging vs prod JSON schema & latency diffing (optional BYOK only for translating complex JS pm.test() logic)

Before finishing the full extension release ($19 Early-Access Personal / $29 Team 5-Seat Pack—one-time purchase, zero cloud login), I'd love feedback from anyone actively migrating off Postman or Thunder Client:

Try the live converter & interactive sandbox here: https://reqbridge-local-api.pages.dev/#demo

Which Postman / .bru auth pattern or assertion script causes the most friction in your repo?

來源:DEV Community · dev.to