Requestary
Requestary is a VS Code extension for API testing and request management.
Importing Collections
Requestary supports importing collections from:
- Thunder Client
- Native Requestary format
Sample Collection
A sample collection is provided in sample-collection.json
. This file demonstrates the expected JSON structure for importing collections.
Collection JSON Structure
{
"name": "Collection Name",
"requests": [
{
"id": "unique_request_id",
"name": "Request Name",
"method": "GET|POST|PUT|DELETE|...",
"url": "https://api.example.com/endpoint",
"headers": {
"Header-Name": "Header Value"
},
"body": "Optional request body",
"auth": {
"type": "bearer|none",
"token": "Optional bearer token"
}
}
]
}
Importing Collections
Download Sample Collection
You can download the sample collection in two ways:
From the Side Panel:
- Open the Requestary view in the sidebar
- Click the "+" (download) icon in the panel header
- Choose a location to save the file
From Command Palette:
- Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
- Type "Requestary: Download Sample Collection"
- Choose a location to save the file
Use the downloaded file as a template or import reference for your API collections.
Importing a Collection
- Click on the "Import Collection" button in the Requestary sidebar
- Select your collection JSON file
- The collection will be imported and added to your Requestary workspace
Features
- Import API collections
- Send HTTP requests
- Manage request history
- Support for various authentication methods
Installation
Install from the VS Code Extensions marketplace.
Usage
- Open the Command Palette (Ctrl+Shift+P)
- Type "Requestary: Send REST Request"
- Select the HTTP method
- Enter the URL
- For methods like POST/PUT, enter the request body
Development
Prerequisites
- Node.js
- npm
- Visual Studio Code
Setup
- Clone the repository
- Run
npm install
- Press F5 to open a new VS Code window with the extension loaded
Building
npm run compile
: Compile the extension
npm run watch
: Watch and compile during development
Debugging
- Use the "Run Extension" configuration in the Debug view
- Set breakpoints in the source code
- Press F5 to start debugging
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.