Saved Response Examples
Saved Response Examples
Section titled “Saved Response Examples”In RestIO, you can capture any real HTTP response and save it as an Example attached directly to the request.
Examples serve as living documentation and mock blueprints: teammates can inspect expected payloads, status codes, and headers without needing access to a live backend or database.
+-------------------------------------------------------------------+| [⚡ GET] /api/v2/orders/101 [Viewing: 200 OK ▾]|+-------------------------------------------------------------------+| Active Example: "200 OK - Standard Order Response" || [ Switch to Live Request ] [ Rename Example ] [ Delete ] |+-------------------------------------------------------------------+| Status: 200 OK Size: 842 B Saved: 2 mins ago |+-------------------------------------------------------------------+| { || "id": 101, || "status": "COMPLETED", || "items": [{ "sku": "WIDGET-1", "price": 49.99 }] || } |+-------------------------------------------------------------------+Why Use Saved Examples?
Section titled “Why Use Saved Examples?”- Frontend & Backend Handoff: Backend developers can execute an endpoint once and save typical responses (
200 OK,400 Bad Request,401 Unauthorized) for frontend developers to build against. - Offline Development: View complete payloads, response structures, and headers on a plane or when backend microservices are offline.
- Git Versioning: Saved examples are serialized cleanly into the collection’s JSON file and version controlled via Git alongside your requests.
How to Save and Manage Examples
Section titled “How to Save and Manage Examples”1. Save an Example
Section titled “1. Save an Example”- Configure and send any HTTP request.
- In the top-right corner of the Response Panel, click Save Response (or click the chevron next to Send and choose Save as Example).
- Name your example (e.g.,
200 OK - Active Subscriptionor404 - User Not Found). - The example is immediately saved to disk.
2. Browse and Inspect Examples
Section titled “2. Browse and Inspect Examples”- When viewing a request that has saved examples, an Examples Dropdown appears in the request header bar.
- Click the dropdown to switch between saved snapshots.
- The response viewer switches into Example Mode (indicated by an amber banner), displaying the saved status, body, headers, and timestamp.
3. Return to Live Mode
Section titled “3. Return to Live Mode”Click Exit Example or Live Request in the header banner to return to sending real network requests.
