API Bapu
API Bapu is a lightweight and intuitive API client for Visual Studio Code, designed to streamline your API development and testing workflow directly within your editor.

Features
- Full-Featured API Client: Send GET, POST, PUT, and DELETE requests with support for custom headers, request bodies, and various authentication methods.
- Organized Workspace: Manage your requests with groups in the "Saved Requests" view.
- Request History: Automatically keeps a history of your sent requests for easy re-execution and reference.
- Syntax Highlighting: Enjoy syntax highlighting for JSON and GraphQL in request and response bodies.
- Efficient Workflow:
- Save & Update: Save new requests or update existing ones with a single click.
- Duplicate Requests: Quickly create copies of existing requests from the context menu.
- Cancel In-Flight Requests: Abort long-running requests with a "Cancel" button.
- Environment & Variables: Manage different environments (e.g., dev, staging, prod) and use variables (
{{variable}}) in your requests.
- Authentication Support: Built-in support for Basic Auth, Bearer Token, and API Key authentication.
- Code Generation: Generate code snippets for your requests in cURL and Python.
- Import/Export: Easily share your collections with teammates by importing and exporting them as JSON. Also supports importing collections from Postman.
Getting Started
- Install the extension from the VS Code Marketplace.
- Click the API Bapu icon in the activity bar to open the sidebar.
- Use the "New API Request" command (file icon in the sidebar) or the command palette (
Ctrl+Shift+P) to open a new request tab.
Usage
- Sending a Request: Fill in the method, URL, and any other details in the request tab and click "Send".
- Saving a Request: Click the "Save" button. If it's a new request, you'll be prompted for a name and group. If it's an existing request, it will be updated automatically.
- Using Environments: Use the "Environment" tab to define variables for different environments. You can switch between them using the dropdown in the same tab. Reference variables in your URL, headers, or body using
{{variable_name}}.
Contributing
Contributions are welcome! Please feel free to open an issue or submit a pull request on the GitHub repository.
Release Notes
For detailed release notes, please see the CHANGELOG.md file.
1.0.5
- Fixes:
- Resolved a critical data loss issue on macOS where saved requests and environments would disappear after restarting VS Code.
1.0.4
- Fixes:
- Fixed an issue when importing Postman collections with requests at the root level.
1.0.3
- Fixes:
- Fixed an error when importing some Postman collections, especially those with empty folders.
1.0.2
- Features: Added request duplication, syntax highlighting for GraphQL, response copying, request cancellation, and collection import/export (including Postman collections).
- Fixes: Improved "Save" logic, fixed UI layout issues for auth and headers, and resolved compilation errors.
1.0.0
- Initial release of API Bapu.
- Core features including sending requests, history, saved requests, and environment variables.
| |