<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>API on Artem Yegorov</title>
    <link>https://yegorov.github.io/tags/api/</link>
    <description>Recent content in API on Artem Yegorov</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 16 Mar 2026 13:19:24 +0000</lastBuildDate>
    <atom:link href="https://yegorov.github.io/tags/api/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>cURL</title>
      <link>https://yegorov.github.io/notes/curl/</link>
      <pubDate>Mon, 16 Mar 2026 13:19:24 +0000</pubDate>
      <guid>https://yegorov.github.io/notes/curl/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://curl.se/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;cURL&lt;/a&gt; is one of my favorite tools when working with REST APIs. The use of this tool is found in almost all scripts.&#xA;With it, you can test your HTTP handlers and even write example requests and responses in the service documentation. Of course, there are other tools, such as &lt;a href=&#34;https://httpie.org/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;HTTPie&lt;/a&gt;, &lt;a href=&#34;https://github.com/ducaale/xh&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;xh&lt;/a&gt; and others.&#xA;But its popularity is due to the fact that in most cases it will already be installed in your environment.&#xA;So when someone has problems with a request to a service I&amp;rsquo;m responsible for, I always ask them to send me the curl request and its output, like this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Webmock for test external HTTP API calls</title>
      <link>https://yegorov.github.io/notes/webmock-test-external-http-api-calls/</link>
      <pubDate>Wed, 07 Jan 2026 11:16:20 +0000</pubDate>
      <guid>https://yegorov.github.io/notes/webmock-test-external-http-api-calls/</guid>
      <description>&lt;p&gt;One of my favorite libraries for testing external HTTP requests in Ruby is &lt;a href=&#34;https://github.com/bblimke/webmock&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;Webmock&lt;/code&gt;&lt;/a&gt;.&#xA;To use it, you just need to specify what you want to get for which URL.&#xA;Of course, you can also stab the response from the HTTP client in tests (as is common in other languages) or even set up your own HTTP mock server, but in my opinion, for simple things, this seems too unreasonable.&#xA;How do you test requests to external resources?&#xA;Share your best practices for testing HTTP requests.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
