If your API requests live inside a cloud-locked Postman workspace or behind a mandatory extension login (like Thunder Client's 50-request / 50-run caps), moving to plain Git-native .http files solves three problems at once:
-
Code reviewable diffs: Requests, headers, and
# @assertchecks live right next to your backend routes in Git. -
Zero vendor lock-in: Any team member can read or run
.httpblocks without creating an account. -
Zero runtime bloat: No JVM, no Postman Electron RAM tax, and no
.NET 8.0 SDKrequired just to scaffold requests from OpenAPI specs.
Below is a practical walkthrough using ReqBridge Local API (v0.1.0) — an open-source, 100% local VS Code extension (plus a zero-upload browser converter) I built to handle bi-directional migrations, RFC-4180 CSV batch runs, and Staging-vs-Prod schema diffs.
1. Install (VS Code Marketplace or Zero-Upload Web)
Install directly in VS Code or Cursor/Windsurf:
code --install-extension soulkey-tools.reqbridge-local-api
- VS Code Marketplace: ReqBridge: Postman & Thunder Client to .http / OpenAPI + CSV Batch Runner
-
GitHub Source &
.vsixRelease: soulkeey/reqbridge-local-api (v0.1.0) - Zero-Upload Browser Tool: reqbridge-local-api.pages.dev (runs 100% client-side in your browser — nothing leaves your machine)
2. Auto-Discover Thunder Client or Convert Postman / Bruno / cURL
Most migration scripts break on inherited folder auth or leak hardcoded Bearer tokens straight into your repo.
In VS Code, open the ReqBridge Activity Bar sidebar (or Command Palette Ctrl+Shift+P):
-
ReqBridge: Auto-Discover Local Thunder Client Collectionsscans.vscode/thunder-client,~/.thunder-client, and VS Code/CursorglobalStoragefor existingthunder-collection_*.jsonfiles on disk. -
ReqBridge: Import & Convert Collection to .http + .env.exampleconverts Postman v2.1 JSON, Thunder Client JSON, Bruno (.bru/ folder), OpenAPI 3.0/3.1 (YAML/JSON), or cURL commands.
Example Output (.http + .env.example)
Instead of committing tokens, ReqBridge extracts secrets into .env.example and emits clean, runnable .http blocks with inline assertions:
@baseUrl = {{BASE_URL}}
### Create Order
# @name createOrder
# @assert status == 201
# @assert body.currency == "USD"
POST {{baseUrl}}/v1/orders
Authorization: Bearer {{API_TOKEN}}
Content-Type: application/json
{
"sku": "{{SKU}}",
"qty": 2
}
And .env.example:
BASE_URL=https://staging.api.example.com
API_TOKEN=replace_with_your_token
SKU=pro-seat-01
You can also run ReqBridge: Import cURL Command to .http + OpenAPI on any copied terminal curl snippet, or ReqBridge: Copy Request as cURL in reverse.
3. Bi-Directional OpenAPI 3.0 / 3.1 <-> .http (Zero .NET SDK)
Many VS Code OpenAPI-to-.http generators shell out to httpgenerator, forcing you to install the .NET 8.0 SDK.
ReqBridge parses OpenAPI 3.0/3.1 YAML and JSON directly in TypeScript inside VS Code's Node.js extension host:
-
OpenAPI ->
.http: Synthesizes request paths, query params, auth headers, and JSON request bodies from schemaexample/default/ type definitions. -
.http/ Postman / Thunder / Bruno -> OpenAPI 3.1: RunReqBridge: Export to OpenAPI 3.1 YAMLto generate a cleanopenapi: 3.1.0spec from your working requests.
4. Data-Driven CSV / JSON Batch Runs + JUnit XML
Testing 20 edge-case payloads shouldn't require a paid cloud runner.
With a .http block and a standard RFC-4180 sample-data.csv:
SKU,EXPECTED_STATUS
pro-seat-01,201
invalid-sku,400
Click the inline CodeLens Run CSV Batch (or run ReqBridge: Run Local CSV/JSON Batch):
- Substitutes
{{variables}}per row from.env+ CSV/JSON rows. - Computes
p50/p95latencies and evaluates# @assertconditions locally. - Writes JUnit XML and Markdown summary reports ready for CI artifacts.
5. Staging vs. Prod Schema-Drift Diff (vscode.diff)
Before promoting a release, subtle contract drift (e.g., an integer turning into a string, or a dropped field in v1/orders) breaks frontend clients silently.
Run ReqBridge: Diff Staging vs Prod Schema to hit both environments locally and inspect:
- HTTP status mismatch & latency delta
- Missing keys, added keys, and JSON type shifts
- Both a structured HTML drift report and native VS Code side-by-side
vscode.diffJSON view.
Privacy, Free Core & Optional Pro
-
Zero Telemetry: All parsing, HTTP requests, and diffs execute locally. Optional keys live in VS Code
SecretStorage. -
Free Core ($0, MIT source): Unlimited Postman/Thunder/Bruno/OpenAPI/cURL <->
.httpconversions, unlimited single requests, unlimited single-endpoint Staging-vs-Prod diffs, and CSV batch runs up to 10 rows / 3 runs per UTC day. -
Optional Pro ($19 Personal / $29 Team 5-seat one-time): Unlocks unlimited CSV/JSON batch rows & runs, collection-wide schema diffs, and standalone zero-lock-in
reqbridge-ci.mjs+ GitHub Actions workflow export (plus optional BYOKpm.test()AI translation).
Try the zero-upload web converters right in your browser at reqbridge-local-api.pages.dev or install the extension from the VS Code Marketplace. Feedback and PRs on GitHub are very welcome!
Top comments (0)