Skip to content

Code export

Every request tab has a Code Snippets sub-tab: it holds the equivalent call, written in the languages and libraries relevant to its protocol, ready to copy.

That is what you want in order to go from a trial in Restorm to production code, or to paste a reproducible example into a ticket.

An HTTP request's "Code snippets" sub-tab: the cURL target unfolded with its command, and the other languages folded below

ProtocolCountExamples
HTTP24cURL, Fetch, Axios, Requests, aiohttp, Go, reqwest, HttpClient (Java/C#), Guzzle, Net::HTTP, URLSession, OkHttp, Dart, httr, PowerShell, HTTPoison, clj-http
GraphQL13cURL, Fetch, Apollo Client, gql, graphql-go, graphql-client, GraphQL.Client, graphql-java, Apollo iOS, Apollo Kotlin
gRPC14grpcurl, grpc_cli, grpcurl gRPC-Web, curl Connect-RPC, @grpc/grpc-js, grpcio, grpc-java, Grpc.Net.Client, tonic, grpc-kotlin, grpc-swift
SOAP15cURL, soap npm, zeep, WCF, JAX-WS, SoapClient, savon — each ecosystem in a “SOAP client” and a “raw HTTP” flavour
WebSocket / Socket.IO / MQTT15The browser’s WebSocket, ws, Socket.IO Client, MQTT.js, paho-mqtt, websockets, gorilla/websocket, ClientWebSocket, tokio-tungstenite
AMQP8amqplib, pika, amqp-tools, rabbitmqadmin
Redis6ioredis, redis-cli, redis-py
Kafka5kafkajs, kcat
tRPC5cURL, Fetch, @trpc/client, requests, Go
SSE3cURL, EventSource, streaming requests
JSON-RPC2cURL, Fetch
STOMP2@stomp/stompjs, wscat

The variants take the request’s mode into account: an AMQP snippet for publishing is not the same as one for consuming, and Kafka distinguishes producing, consuming and inspecting.

The snippet reflects the request as it is configured: method, URL, headers, body, protocol options. {{variables}} are resolved against the active environment — so you get code that works as it is, not a template to fill in.

Restorm does not export a collection to another client’s format. The project is already a readable, version-controllable file (.restorm in YAML, JSON or JSON5): that is the exchange format.

To share with someone who does not have Restorm, the code snippet is usually the right answer.