DEV Community

Soul key
Soul key

Posted on

Migrating Postman, Thunder Client, Bruno & OpenAPI 3.1 to Git-Native .http in VS Code (Zero Logins, Zero .NET SDK)

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:

  1. Code reviewable diffs: Requests, headers, and # @assert checks live right next to your backend routes in Git.
  2. Zero vendor lock-in: Any team member can read or run .http blocks without creating an account.
  3. Zero runtime bloat: No JVM, no Postman Electron RAM tax, and no .NET 8.0 SDK required 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
Enter fullscreen mode Exit fullscreen mode

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 Collections scans .vscode/thunder-client, ~/.thunder-client, and VS Code/Cursor globalStorage for existing thunder-collection_*.json files on disk.
  • ReqBridge: Import & Convert Collection to .http + .env.example converts 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
}
Enter fullscreen mode Exit fullscreen mode

And .env.example:

BASE_URL=https://staging.api.example.com
API_TOKEN=replace_with_your_token
SKU=pro-seat-01
Enter fullscreen mode Exit fullscreen mode

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 schema example / default / type definitions.
  • .http / Postman / Thunder / Bruno -> OpenAPI 3.1: Run ReqBridge: Export to OpenAPI 3.1 YAML to generate a clean openapi: 3.1.0 spec 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
Enter fullscreen mode Exit fullscreen mode

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 / p95 latencies and evaluates # @assert conditions 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.diff JSON 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 <-> .http conversions, 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 BYOK pm.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)