Quickstart
RestIO Quickstart
Section titled “RestIO Quickstart”Welcome to RestIO! In this guide, you will learn how to:
- Create a workspace and collection.
- Build and execute your first HTTP request.
- Use environment variables with real-time resolved URL previews.
- Inspect headers, response bodies, and timing.
- Add an automated test assertion.
Step 1: Launch RestIO and Explore the Interface
Section titled “Step 1: Launch RestIO and Explore the Interface”When you open RestIO, you will see the three primary zones of the Workbench:
+--------------------------------------------------------------------------+| [⚡ RestIO] [Search Requests or ⌘K] [Dev Environment ▾] |+--------------------------------------------------------------------------+| COLLECTIONS | REQUEST BUILDER | RESPONSE PANEL || | | || 📁 Quickstart API | GET https://httpbin.org/ | Status: 200 OK || └ ⚡ Get Status | get?user={{user_id}} | Time: 124 ms || └ ⚡ Create User | ------------------------- | Size: 452 B || | [Resolved URL Preview] | ----------------- || | https://httpbin.org/get... | [Body] [Headers] || | | [Tests (1/1)] |+--------------------------------------------------------------------------+- Left Sidebar: Manages collections, nested folders, saved requests, active workspaces, and past send history.
- Center Panel (Request Builder): Configure HTTP method, request URL, query parameters, headers, auth, body (JSON, form-data, urlencoded), and pre/post scripts.
- Right Panel (Response Viewer): Displays HTTP status codes, latency metrics, response sizes, formatted bodies (JSON/HTML/text), response headers, server timings, and test results.
Step 2: Create a Collection and Request
Section titled “Step 2: Create a Collection and Request”- In the sidebar, click the + button next to Collections.
- Name your collection
HTTP Testing. - Hover over your newly created collection and click + New Request.
- Name the request
Fetch JSON Data.
Step 3: Configure and Send a Request
Section titled “Step 3: Configure and Send a Request”- Set the HTTP method to GET using the dropdown.
- Enter the URL:
https://httpbin.org/json
- Click the Send button or press ⌘ + Enter (Mac) / Ctrl + Enter (Windows/Linux).
RestIO executes the request via its Rust backend. Within milliseconds, the Response Panel displays:
- Status code badge:
200 OK - Response time (e.g.
118 ms) - Response payload size (e.g.
429 B) - Formatted JSON body with syntax highlighting and copy buttons
Step 4: Add Environment Variables & Resolved URL Preview
Section titled “Step 4: Add Environment Variables & Resolved URL Preview”Instead of hardcoding domain names or IDs, use RestIO’s multi-environment variable interpolation:
- Click the Environment Selector in the top-right header and select Configure Environments.
- Click + Add Environment and call it
Production. - Add two key-value pairs:
base_url:https://httpbin.orgapi_version:v1
- Close the modal and ensure
Productionis selected as the active environment. - In your request URL, update the address to:
{{base_url}}/get?version={{api_version}}
Notice the Resolved URL Preview Bar directly under the input:
Resolved: https://httpbin.org/get?version=v1RestIO dynamically interpolates variables in real time. You can click the copy icon on the preview bar to copy the exact outgoing string.
Step 5: Write Your First Automated Test
Section titled “Step 5: Write Your First Automated Test”RestIO includes an integrated JavaScript test runtime accessible from the Tests tab in the request builder.
- Click the Tests tab in the request editor.
- Enter the following test script:
// Verify HTTP status coderio.test("Status is 200 OK", function () { rio.response.to.have.status(200);});
// Verify JSON payload structurerio.test("Returned correct version query", function () { const json = rio.response.json(); rio.expect(json.args.version).to.equal("v1");});
// Verify response performancerio.test("Latency is within threshold", function () { rio.expect(rio.response.responseTime).to.be.below(1000);});- Press Send again.
- In the response panel, click on the Tests tab. You will see a live breakdown:
Passed: 3 | Failed: 0✓ Status is 200 OK (2ms)✓ Returned correct version query (1ms)✓ Latency is within threshold (1ms)
Where to Go Next
Section titled “Where to Go Next”- Learn how Workspaces & Collections organize complex projects.
- Understand the unrestricted Rust HTTP Engine.
- Sync your team’s collections with Git-Backed Sharing.
- Explore advanced test automation and mock data with Scripting Runtime.
