One Swagger for VS Code 🚀
Universal 1-Tap API Documentation Explorer & Interactive Request Runner inside VS Code
One Swagger brings the full power of Swagger UI, OpenAPI exploration, and API testing directly into Visual Studio Code — with zero CORS restrictions, full $ref resolution, request history, and client code snippet generation.
Features ✨
- Universal OpenAPI Explorer: Seamlessly parses OpenAPI 2.0 / 3.0 / 3.1 specifications from live URLs or workspace files (
openapi.json, swagger.yaml).
- Interactive Request Playground: Live execution with parameter tables, schema-derived sample request bodies, and custom headers.
- Method-Tinted Accordions: Authentic Swagger UI styling (
GET Blue, POST Green, PUT Orange, DELETE Red, PATCH Teal).
- Dark Code Response Inspector: Live status badges, response latency, formatted dark JSON viewers, headers inspection, and 1-click copy/download.
- Universal Authentication: OAuth2 password flow, Bearer JWT, and API Key support with 1-click interactive lock icons on route headers.
- Request History: Local logging, search filter, date grouping, JSON export, and 1-click replay.
- Client Code Generator: Generate instant snippets for cURL, Fetch, Axios, Python
requests, and Go.
- Zero-CORS: Uses VS Code's Extension Host Node.js runtime to execute requests without browser CORS limitations.
- Activity Bar & Full Editor Tab: Open One Swagger as an editor tab or dock it in your Activity Bar sidebar.
Usage 💡
1. Command Palette
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) and run:
One Swagger: Open API Explorer — Opens the full API explorer tab.
One Swagger: Focus Sidebar — Focuses the One Swagger sidebar in the Activity Bar.
2. Open Local Spec Files
Right-click any openapi.json, swagger.json, openapi.yaml, or swagger.yaml file in your VS Code workspace and choose "Reopen Editor With... -> One Swagger API Explorer".
100% Local & Private 🔒
- No telemetry, no external accounts, no cloud database.
- Runs 100% locally on your machine.
| |