Export to cURL
Export API definitions as cURL commands.
Usage
Method 1: Right-Click Export
- Open a file containing APIs in your project, or select files/folders in the IDEA project panel
- Right-click on the file content or folder
- Select
ExportCurlto export all APIs in the file or folder
Method 2: Shortcut Export
- Open a file containing APIs in your project, or select files/folders in the IDEA project panel
- Use shortcut
Alt + Shift + E(Windows/Linux) orCtrl + E(macOS) - Select the APIs to export, choose
cURLas the export channel - Click the ✔ button or press Enter to complete the export
Output
The export generates a .sh file containing cURL commands for each API endpoint:
bash
curl -X GET "http://localhost:8080/api/users" \
-H "Content-Type: application/json"
curl -X POST "http://localhost:8080/api/users" \
-H "Content-Type: application/json" \
-d '{"name": "test"}'