Test REST API endpoints by writing requests in a .http file inside VS Code without opening Postman
Switch between local, staging, and production APIs using named environments and variable substitution
Generate a working Python or JavaScript code snippet from an HTTP request in one click
Store a collection of API calls in a single text file and replay any of them from VS Code
Install from the VS Code marketplace and create a .http file, no external configuration required to send your first request.
REST Client is an extension for Visual Studio Code that lets you send HTTP requests and see the responses without leaving your editor. Instead of switching to a separate app like Postman to test an API, you write your request directly in a text file inside VS Code, click a button (or press a keyboard shortcut), and the response appears in a side panel. It works with standard HTTP, GraphQL queries, cURL commands, and SOAP requests. You can store multiple requests in a single file by separating them with three or more hash symbols. Each block is treated as its own independent request, so you can build a whole collection of API calls in one place and run whichever one you need. The extension saves your request history automatically, and you can replay any past request with one click. The extension supports a variable system that lets you avoid repeating things like base URLs or authentication tokens. You define environments (for example, one for local development and one for production), set variables in each, and switch between them as needed. There is also support for dynamic values such as random numbers, timestamps, and generated IDs that the extension fills in at the moment you send a request. Authentication options are broad. The README lists support for Basic Auth, Digest Auth, SSL client certificates, Azure Active Directory, Microsoft Identity Platform, AWS Signature v4, and AWS Cognito. You can also generate code snippets from your request in languages like Python and JavaScript, which is useful when you want to copy a working call into your own code. The extension adds a dedicated file language for .http and .rest files, with syntax highlighting, auto-completion for headers and methods, and inline links that trigger requests directly from the file. The full README is longer than what was shown.
← huachao on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.