examples Import and customize
curl-import.http
Sample output from the CLI curl importer. The Run command imports the first of the two curl commands it was made from.
runs as-is
resterm --from-curl "curl -G https://api.example.com/search -d q=hello -H 'X-Flag: yes'" --http-out curl.httpRun this from the root of a clone of the Resterm repository.
Editor
Import curl and OpenAPI docs# Source:
# curl -G https://api.example.com/search -d q=hello -H 'X-Flag: yes'
# curl https://api.example.com/login --json '{"user":"demo","password":"pass"}'
### GET https://api.example.com/search?q=hello
GET https://api.example.com/search?q=hello
X-Flag: yes
### POST https://api.example.com/login
POST https://api.example.com/login
Content-Type: application/json
{"user":"demo","password":"pass"}