<?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: Yash Raj</title>
    <description>The latest articles on DEV Community by Yash Raj (@tigeryash).</description>
    <link>https://dev.to/tigeryash</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%2F714311%2F98ca277f-6a83-4284-895f-c5ed1067726c.jpeg</url>
      <title>DEV Community: Yash Raj</title>
      <link>https://dev.to/tigeryash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tigeryash"/>
    <language>en</language>
    <item>
      <title>COPS(IITBHU) APIS 101 WITH POSTMAN </title>
      <dc:creator>Yash Raj</dc:creator>
      <pubDate>Sat, 02 Oct 2021 13:42:07 +0000</pubDate>
      <link>https://dev.to/tigeryash/cops-iitbhu-apis-101-with-postman-1743</link>
      <guid>https://dev.to/tigeryash/cops-iitbhu-apis-101-with-postman-1743</guid>
      <description>&lt;p&gt;API stands for &lt;strong&gt;Application Programming Interface&lt;/strong&gt;.&lt;br&gt;
APIs are the little pieces of code that make it possible for digital devices, software applications, and data servers to talk with each other, and they’re the essential backbone of so many services we now rely on.&lt;/p&gt;

&lt;p&gt;Any Developer, regardless of the Tech Stack they use, should know at least the basic of this fascinating yet simple technology. &lt;br&gt;
To ensure this, COPS (IITBHU) organised a hands-on workshop, hosted by Postman Student Expert &lt;a href="https://dev.to/king11"&gt;Lakshya Singh&lt;/a&gt;! &lt;/p&gt;
&lt;h2&gt;
  
  
  The Initiation
&lt;/h2&gt;

&lt;p&gt;Lakshya Kicked-Off the Session by introducing himself to the participants and was quick to create a very interactive environment by asking everyone to mention the Engineering Branch they are enrolled in.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn33ig889ta0bnjdq5095.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn33ig889ta0bnjdq5095.png" alt="Engineer"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The Presentation
&lt;/h2&gt;

&lt;p&gt;The Workshop began with a Presentation meant to Familiarise everyone with the basics of APIs and Postman.&lt;/p&gt;
&lt;h4&gt;
  
  
  Agendas of the workshop
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Intro to APIs and Postman&lt;/li&gt;
&lt;li&gt;Requests and Responses&lt;/li&gt;
&lt;li&gt;Trying things out&lt;/li&gt;
&lt;li&gt;Follow-up resources&lt;/li&gt;
&lt;li&gt;Q&amp;amp;A&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  APIs
&lt;/h3&gt;

&lt;p&gt;Lakshya gave the non-technical explanation of an API using the example of a Restaurant where the waiter &lt;em&gt;(API)&lt;/em&gt; takes the Orders of the Customers &lt;em&gt;(Requests)&lt;/em&gt;, Passes it on to the Chef and then returns with the Dish &lt;em&gt;(Response)&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The Technical Definition followed, which in brief was :&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;API is a software intermediary that allows two applications to talk to each other by taking requests and returning responses&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A few more examples were explain what APIs are and what they are used for.&lt;/p&gt;
&lt;h3&gt;
  
  
  Postman Introduction
&lt;/h3&gt;

&lt;p&gt;Lakshya started-off this section by drawing a comparison between the Terminal (which uses &lt;em&gt;Curl&lt;/em&gt;) and Postman for using the API functionalities.&lt;br&gt;
Postman clearly turned out to be the Best choice for API related work since its UI makes it very simple for us to send or receive data and then to process/understand the responses.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdd3s1x9zr4m6snf877iv.jpg" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdd3s1x9zr4m6snf877iv.jpg" alt="Postman is Best"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Ingredients to make a Request
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Method&lt;/strong&gt; - Type of Request&lt;/p&gt;

&lt;p&gt;&lt;code&gt;GET&lt;/code&gt; &lt;code&gt;POST&lt;/code&gt; &lt;code&gt;PUT&lt;/code&gt; &lt;code&gt;PATCH&lt;/code&gt; &lt;code&gt;DELETE&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Endpoint&lt;/strong&gt; - Target URL&lt;/p&gt;

&lt;p&gt;&lt;code&gt;http://postman-student.herokuapp.com/&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Path&lt;/strong&gt; - The exact location of the desired API&lt;/p&gt;

&lt;p&gt;&lt;code&gt;jokes/1/&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;A complete API Request made using Axios:&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   axios({
         headers: {
             Authorization: "Token " + " "
         },
         url: http://postman-student.herokuapp.com/ + "jokes/1/",
         method: "GET",
         data: {}
     })
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Response
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Status Code&lt;/strong&gt; - Signify the Success of Failure of Requests/Responses&lt;/p&gt;

&lt;p&gt;&lt;code&gt;200 OK&lt;/code&gt; &lt;code&gt;201 Created&lt;/code&gt; &lt;code&gt;404 Not Found&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Response Data&lt;/strong&gt; - JSON&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "id": "1",
  "author": "User",
  "joke": "Bugs are features",
  "source": "jokes.dev"
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Hand-On Session
&lt;/h2&gt;

&lt;p&gt;This part of the Workshop Lakshya showed us practical use of APIs using Postman to Create request bodies, send Requests, and then to comprehend the Response received.&lt;br&gt;
We were asked to fork this &lt;a href="https://www.postman.com/postman/workspace/postman-student-api-101-workshop/collection/13935790-3246e804-99c9-444e-8248-59da3f9f6122?ctx=documentation" rel="noopener noreferrer"&gt;Basics of API&lt;/a&gt;, and then we were able to follow along.&lt;/p&gt;

&lt;p&gt;Lakshya like a true expert showed us all the Request Methods and resolved the issues and queries of the participants instantly.&lt;br&gt;
There were many funny instances also along the way, one of which is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Lakshya was unable to pick an ID for a new &lt;code&gt;POST&lt;/code&gt; request on the &lt;code&gt;jokes/&lt;/code&gt; API because the participants has already taken most of the IDs including 11 (his B'Day Date xD), 22, 101.... &lt;br&gt;
He finally chose the ID 111 suggested by me in the comments!&lt;/p&gt;
&lt;/blockquote&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbaly5riozx8inmjmx8ds.gif" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbaly5riozx8inmjmx8ds.gif" alt="Laughing Gif"&gt;&lt;/a&gt;&lt;br&gt;
We as the Participants were surely amused ;) ! &lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The workshop was wrapped-up with Lakshya sharing the information about being a Postman Student Expert, about Postman being an Organisation in GSOC and how we can contribute to this Splendid Technology as Developers.&lt;/p&gt;

&lt;p&gt;He then shared more Resources related to APIs and Postman and ended the workshop with a Q&amp;amp;A session.&lt;br&gt;
&lt;/p&gt;

&lt;br&gt;
&lt;em&gt;The Workshop was a Great Learning experience for me and I was able to make myself more familiar with APIs and how I can use Postman seamlessly to test the APIs I create.&lt;br&gt;
The Host was extremely Co-operative, Friendly and Knowledgeable which made the session even more Interesting and Interactive.&lt;/em&gt;

&lt;p&gt;&lt;strong&gt;Thank You : ) !&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>postmanstudent</category>
      <category>postman</category>
      <category>backend</category>
    </item>
  </channel>
</rss>
