<?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: Anurag Gupta</title>
    <description>The latest articles on DEV Community by Anurag Gupta (@anurag5086).</description>
    <link>https://dev.to/anurag5086</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%2F699526%2F3932175c-4a0f-4086-a217-804c0d3d4c22.jpeg</url>
      <title>DEV Community: Anurag Gupta</title>
      <link>https://dev.to/anurag5086</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anurag5086"/>
    <language>en</language>
    <item>
      <title>API Documentation Made Easy</title>
      <dc:creator>Anurag Gupta</dc:creator>
      <pubDate>Wed, 08 Sep 2021 12:57:33 +0000</pubDate>
      <link>https://dev.to/anurag5086/api-documentation-made-easy-4hjp</link>
      <guid>https://dev.to/anurag5086/api-documentation-made-easy-4hjp</guid>
      <description>&lt;p&gt;As this is my first technical blog, so I'm pretty excited for this one.&lt;/p&gt;

&lt;h2&gt;
  
  
  How can you document your API without any hassle?
&lt;/h2&gt;

&lt;p&gt;We all know that its very easy for us developers to code things out but when it comes to documentation, it feels really uninteresting and a boring job, I don't know is it just me.&lt;/p&gt;

&lt;p&gt;I recently came across this NPM package and was mind blown.&lt;/p&gt;

&lt;p&gt;API Link -  &lt;a href="https://apidocjs.com/" rel="noopener noreferrer"&gt;apiDOC&lt;/a&gt; &lt;/p&gt;

&lt;h3&gt;
  
  
  Why to use this for documentation?
&lt;/h3&gt;

&lt;p&gt;The documentation of this package is really clear and concise, but ill just put out few points which I really liked about apiDOC.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Very easy to get started with.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Implementation is very simple, and it makes the code understandable. Look at the code snippet you'll get some idea how this can be implemented just by adding some lines as a comment. There are various &lt;a href="https://apidocjs.com/#params" rel="noopener noreferrer"&gt;params&lt;/a&gt; being used, do check them out in the documentation. This makes API documentation an easy and simple task.&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/**
 * @api {get} /user/:id Request User information
 * @apiName GetUser
 * @apiGroup User
 *
 * @apiParam {Number} id Users unique ID.
 *
 * @apiSuccess {String} firstname Firstname of the User.
 * @apiSuccess {String} lastname  Lastname of the User.
 *
 * @apiSuccessExample Success-Response:
 *     HTTP/1.1 200 OK
 *     {
 *       "firstname": "John",
 *       "lastname": "Doe"
 *     }
 *
 * @apiError UserNotFound The id of the User was not found.
 *
 * @apiErrorExample Error-Response:
 *     HTTP/1.1 404 Not Found
 *     {
 *       "error": "UserNotFound"
 *     }
 */
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;It automatically generates the API documentation with an amazing UI. You can refer the demo given below. Isn't it amazing?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://apidocjs.com/example/" rel="noopener noreferrer"&gt;Link to demo&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1631020324603%2FPMiEJQydd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1631020324603%2FPMiEJQydd.png" alt="image.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It supports various languages like Java, JavaScript, PHP, Perl, Python, Ruby, Lua, and many more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you gained some value from this blog, please share it with your fellow developers and help them grow as well. Peace!&lt;/p&gt;

&lt;p&gt;Let's connect, &lt;br&gt;
Follow me on Twitter - &lt;a href="https://twitter.com/anurag_gupta23" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; &lt;/p&gt;

</description>
      <category>react</category>
      <category>node</category>
      <category>python</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
