<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Luis</title>
    <description>The latest articles on DEV Community by Luis (@usuario_rest).</description>
    <link>https://dev.to/usuario_rest</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4075611%2F072066bb-2b8f-4966-9399-fb2bc76d36f4.png</url>
      <title>DEV Community: Luis</title>
      <link>https://dev.to/usuario_rest</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/usuario_rest"/>
    <language>en</language>
    <item>
      <title>Testing APIs without a cloud account: a local-first workflow</title>
      <dc:creator>Luis</dc:creator>
      <pubDate>Thu, 13 Aug 2026 05:23:06 +0000</pubDate>
      <link>https://dev.to/usuario_rest/testing-apis-without-a-cloud-account-a-local-first-workflow-3bab</link>
      <guid>https://dev.to/usuario_rest/testing-apis-without-a-cloud-account-a-local-first-workflow-3bab</guid>
      <description>&lt;p&gt;If you've used Postman lately, you've probably noticed the pattern: sign in to sync, workspaces in the cloud, your collections living on someone else's servers. For a lot of day-to-day API work — especially in QA and backend development — that's more machinery than the job needs, and for some teams it's a compliance problem.&lt;/p&gt;

&lt;p&gt;Here's the workflow I've landed on: &lt;strong&gt;collections as plain JSON files on disk, versioned with git&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why local-first?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your requests are code.&lt;/strong&gt; If collections are plain, readable JSON files, they belong in the same repo as the API they test. Branch, diff, review, merge — the tools you already use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No account, no sync, no lock-in.&lt;/strong&gt; Nothing leaves your machine. If a tool disappears tomorrow, your files are still there and still readable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QA and dev share one source of truth.&lt;/strong&gt; The collection travels with the codebase, so "works on my machine" applies to test suites too.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the workflow looks like
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;A collection is just a folder. Each request is a small &lt;code&gt;*.rr.json&lt;/code&gt; file; subfolders are folders. &lt;code&gt;git init&lt;/code&gt; and you're done.&lt;/li&gt;
&lt;li&gt;Environments (dev/staging/prod) are JSON files too, with &lt;code&gt;{{variable}}&lt;/code&gt; interpolation everywhere.&lt;/li&gt;
&lt;li&gt;Pre/post-request JavaScript handles auth chaining and assertions:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Post Response&lt;/span&gt;
&lt;span class="nx"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;status is 200&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;status&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="nx"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;variables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;token&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;token&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// flows to the next request&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;For data-driven testing, a runner takes a CSV/JSON file and repeats the sequence once per row — each column becomes a &lt;code&gt;{{variable}}&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Tools
&lt;/h2&gt;

&lt;p&gt;I build &lt;a href="https://restruno.com" rel="noopener noreferrer"&gt;RestRuno&lt;/a&gt; (Windows/macOS/Linux), which is designed around exactly this workflow — plus Postman/Bruno/cURL import so you don't start from zero. &lt;a href="https://www.usebruno.com" rel="noopener noreferrer"&gt;Bruno&lt;/a&gt; shares the same local-first philosophy with a different file format. Whichever you pick, the point is the same: &lt;strong&gt;your API tests deserve version control, not a cloud account&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm the author of RestRuno. The core app is free; a couple of power features (AI assistant, data-driven runner) are a one-time purchase.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>testing</category>
      <category>productivity</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
