REST Client for VS Code
We use the REST Client VS Code extension to test API endpoints.
Setup
- Install the extension:
humao.rest-client - HTTP request files are in the
http/folder - Environments are configured in
.vscode/settings.json
Each endpoint should have a corresponding .http file to simplify local testing.
Usage
- Open any
.httpfile - Select environment:
Cmd+Alt+E(macOS) /Ctrl+Alt+E(Windows/Linux) - Click "Send Request" above any request
The {{baseUrl}} variable resolves to the selected environment's URL.