<?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: Divyansh Srivastava</title>
    <description>The latest articles on DEV Community by Divyansh Srivastava (@srivas-divyansh).</description>
    <link>https://dev.to/srivas-divyansh</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%2F1395135%2F50c17ce4-cd4b-4a76-9dfc-da12d863f532.jpeg</url>
      <title>DEV Community: Divyansh Srivastava</title>
      <link>https://dev.to/srivas-divyansh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/srivas-divyansh"/>
    <language>en</language>
    <item>
      <title>My learnings from API 101 Postman Session</title>
      <dc:creator>Divyansh Srivastava</dc:creator>
      <pubDate>Fri, 29 Mar 2024 13:07:11 +0000</pubDate>
      <link>https://dev.to/srivas-divyansh/my-learnings-from-api-101-postman-session-3mke</link>
      <guid>https://dev.to/srivas-divyansh/my-learnings-from-api-101-postman-session-3mke</guid>
      <description>&lt;p&gt;Recently, I attended the API 101 Postman session conducted by hackslash, with Anushka Dubey ma'am as the speaker. In this session, she explained the following:&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding APIs
&lt;/h2&gt;

&lt;p&gt;Application Programming Interfaces (APIs) allow services to communicate with each other. Software has become more complex and collaborative over the years, and developers no longer need to create every service from scratch. APIs enable developers to access data from a service (like Google or Twitter) without any knowledge of how the codebase has been implemented.&lt;/p&gt;

&lt;h2&gt;
  
  
  Postman: An API Platform
&lt;/h2&gt;

&lt;p&gt;Postman is an API platform for building and using APIs. It simplifies each step of the API lifecycle and streamlines collaboration, allowing developers to create better APIs faster. Postman is designed for DESIGN, TEST, MOCK, MONITOR, DOCUMENT, and DISCOVER APIs. It is an industry-standard tool and a collaborative API development platform that simplifies creating, using, and testing APIs with a user interface.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making API Requests
&lt;/h2&gt;

&lt;p&gt;To make a simple API request, three ingredients are required:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Method&lt;/strong&gt;: The HTTP method (GET, POST, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Address/Endpoint&lt;/strong&gt;: The URL or endpoint&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Path&lt;/strong&gt;: The specific path within the endpoint&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Building API requests involves understanding parameters (included in the query), authorization, headers, and body data. Body data types can include form data, JSON, text, HTML, XML, files, GraphQL, and more. These data types are often supplied with POST and PUT requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Handling API Responses
&lt;/h2&gt;

&lt;p&gt;When receiving API responses, it's essential to understand the following elements:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Status Codes&lt;/strong&gt;: HTTP status codes (e.g., 200 OK, 201 Created, 404 Not Found)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Headers&lt;/strong&gt;: Response headers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Body Data&lt;/strong&gt;: Accessing and parsing the response body data&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Hands-On Experience
&lt;/h2&gt;

&lt;p&gt;During the session, we learned the essentials of retrieving and updating API data, including addresses, methods, parameters, body data, and response codes. Anushka Dubey ma'am also provided a hands-on session where we practiced making GET, POST, and DELETE API calls and testing the responses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;The key takeaways from this API 101 Postman session were:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Basic understanding of APIs and their role in modern software development&lt;/li&gt;
&lt;li&gt;Familiarity with API-related terminologies&lt;/li&gt;
&lt;li&gt;Practical experience in testing APIs using Postman&lt;/li&gt;
&lt;li&gt;Understanding API documentation and its importance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Overall, the session provided valuable insights into the world of APIs and practical hands-on experience with Postman, an industry-standard API development platform.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
