Flashpost VS Code extension enables you to develop and test your REST APIs directly from Visual Studio Code.
Features
Lightweight REST API Client for VS Code.
Simple and Easy to use User Interface.
Supports Collections and Environment variables.
Import collections and environment from Postman, Thunder Client. If you want to migrate from Postman or Thunder Client, you have the option to select multiple collection and environment files to import.
Import and run curl requests.
Easily setup your Environment variables from the response.
Scriptless Testing: Test API response easily with GUI based interface and without any scripts.
Local Storage: All collections and request data are stored locally on your device. You can also customize the location from Flashpost extension settings. The default path is $HOME/Documents/ folder.
Save to workspace: If you like to save requests data in your current workspace, you have options to do from Flashpost extension settings.
Use .env file variables from your workspace: If you like to use your .env file varaibles from your workspace you have options to do from Flashpost extension settings.
💡 How to use ?
Click the Flashpost icon on the Activity Bar.
On the Flashpost Quick Access side bar, click the New Request button to test the any API.
Importing / Creating New Collections
Click on the icon next to filter collection to show collection related operations.
Run Collection
Right click on folder or collection level and select "Run All" to test multiple requests.
The collection runner will execute all requests and test cases and display the result.
Scriptless Testing
No need for boilerplate code like in Postman and other api clients to do basic testing. Flashpost has an easy GUI to implement the same kind of testing.
Code Snippet
Code snippet generation is available for the following languages
C# - Http Client, Rest Sharp
Go - Native
Java - AsyncHttp, Unirest, OkHttp, NetHttp
JavaScript - Axios, Fetch, jQuery, XMLHttpRequest
PHP
Python
Shell
Open request view and click the [</>] icon to see the Code Tab
Set Environment Variables
Easily Set Environment Variables from response, Headers and Cookies in Set Variables tab.
Flashpost Extension Settings
Click on the icon on top right corner of side bar to open Flashpost extension settings.
Customize your data storage path by changing "Custom Data Location" setting.
If you like to save requests data in your current workspace use "Save Data to Workspace" setting. You can also select a relative path by using "Workspace Data Relative Path" setting.
History View
New requests will be save in History tab. Number of history items to display can be controlled by modifying "History Limit" extension setting.
Environments View
Select the active environment by selecting "Set Active" menu option.
Use predefined variables to return values
Flashpost uses the faker library to generate sample data, including random names, addresses, email addresses, and much more. You can use these pre-defined variables multiple times to return different values per request.
You can use these variables like any other variable in Flashpost. Their values are generated at the time of execution and their names start with a $ symbol, for example $guid or $timestamp.