<?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>Forem: Akinbayo Okanmiyosioluwa Clinton</title>
    <description>The latest articles on Forem by Akinbayo Okanmiyosioluwa Clinton (@devkanmi).</description>
    <link>https://forem.com/devkanmi</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3572430%2F1491231d-c5fa-46b4-8433-a10581dc7219.jpeg</url>
      <title>Forem: Akinbayo Okanmiyosioluwa Clinton</title>
      <link>https://forem.com/devkanmi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/devkanmi"/>
    <language>en</language>
    <item>
      <title>HNG 13 STAGE-0, MY REDEMPTION ARC!!</title>
      <dc:creator>Akinbayo Okanmiyosioluwa Clinton</dc:creator>
      <pubDate>Sat, 18 Oct 2025 11:15:59 +0000</pubDate>
      <link>https://forem.com/devkanmi/hng-13-stage-0-my-redemption-arc-2cd3</link>
      <guid>https://forem.com/devkanmi/hng-13-stage-0-my-redemption-arc-2cd3</guid>
      <description>&lt;p&gt;MY HNG 13 Experience in the Backend track started with a stage 0 task to work on the logic on a profile endpoint when a call is made to the following endpoint below:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;myendpoint/me&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We return the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "status": "success",
  "user": {
    "email": "&amp;lt;your email&amp;gt;",
    "name": "&amp;lt;your full name&amp;gt;",
    "stack": "&amp;lt;your backend stack&amp;gt;"
  },
  "timestamp": "&amp;lt;current UTC time in ISO 8601 format&amp;gt;",
  "fact": "&amp;lt;random cat fact from Cat Facts API&amp;gt;"
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to achieve this, we needed to call an external API for the cats fact, I used Axios to call the API and also gracefully handled a scenario whereby if the API was down it does not bring down our server, a simple Alt text is returned as a fact stating that the server is down&lt;/p&gt;

&lt;p&gt;This task taught me how to go about handling scenarios whereby we might have to call external API's that are down and how to gracefully handle them.&lt;/p&gt;

&lt;p&gt;A Final Snippet is below of the response:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  "status": "success",
  "user": {
    "email": "myexample@gmail.com",
    "name": "Clinton Akinbayo",
    "stack": "Node.js/Express"
  },
  "timestamp": "2025-10-18T10:48:48.012Z",
  "fact": "Cat paws act as temperature regulators, shock absorbers, hunting and grooming tools, sensors, and more"
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Looking forward to learning more and growing in HNG 13, let's go!!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>hng</category>
    </item>
  </channel>
</rss>
