>_ RESTERM
v1.18.2

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

shell
resterm --from-curl "curl -G https://api.example.com/search -d q=hello -H 'X-Flag: yes'" --http-out curl.http

Run this from the root of a clone of the Resterm repository.

Editor
# 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"}

_examples/curl-import.http on GitHub

Import curl and OpenAPI docs
Search

↑↓ moveEnter openEsc close

Help

These keys work like the ones in the TUI.

/
Search the docs (also Ctrl K)
j k
Scroll down and up
g g G
Jump to the top or the bottom
[ ]
Previous and next page
g d
Docs index
g h
Home page
t
Switch between dark and light
?
Show this help
Esc
Close a dialog