Appearance
Importing
Bring what you already have. Import in the sidebar, or the command line.
cURL
Paste a cURL command and get a request — method, URL, headers, body, and the flags that change semantics. Copying a call out of somebody's terminal or a browser's "Copy as cURL" is the fastest way to reproduce a problem.
sh
sendwire add-curl 'curl -X POST https://api.example.com/v1/orders \
-H "Content-Type: application/json" -d "{\"sku\":\"ABC-1\"}"'Postman collections
Collections import with their folder structure, environments and variables intact — and their scripts translated, not discarded. pm is rewritten to sw on the way in, so pre-request and post-response scripts keep working.
If a script still contains pm afterwards, the editor underlines it and offers to convert it.
OpenAPI
An OpenAPI 3 document, as a file or a URL. Operations arrive grouped by tag, with paths, methods, parameters and request body examples filled in.
sh
sendwire add-openapi https://api.example.com/openapi.json
sendwire add-openapi ./spec.yaml --only listOrders,createOrder --dry-runBoth JSON and YAML.
WSDL
See SOAP. Every operation becomes a request with its envelope scaffolded.
What is not supported yet
Swagger 2.0. OpenAPI 3 only for now — convert with swagger2openapi if you have a 2.0 document.
HAR. A browser's network export is the most honest record there is of what a working client really sent, and it is the import I most want. The parser is written; the browsing UI is not, so it is not wired up yet.