<?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: Sai Karthik</title>
    <description>The latest articles on DEV Community by Sai Karthik (@sai_karthik).</description>
    <link>https://dev.to/sai_karthik</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%2F541443%2F00644109-b3c0-40d1-ae2e-5b6f7f2e8bd3.png</url>
      <title>DEV Community: Sai Karthik</title>
      <link>https://dev.to/sai_karthik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sai_karthik"/>
    <language>en</language>
    <item>
      <title>HTTP Methods, Status Codes and their meaning</title>
      <dc:creator>Sai Karthik</dc:creator>
      <pubDate>Sun, 20 Dec 2020 16:43:10 +0000</pubDate>
      <link>https://dev.to/sai_karthik/http-methods-status-codes-and-their-meaning-1nfc</link>
      <guid>https://dev.to/sai_karthik/http-methods-status-codes-and-their-meaning-1nfc</guid>
      <description>&lt;p&gt;Have you ever wondered what's the difference between GET and POST requests, or what does 404 Not Found means? You're not alone. Having a basic understanding of the different HTTP Methods and HTTP Status Codes is important when you're &lt;strong&gt;exploring and testing APIs.&lt;/strong&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  HTTP Methods:
&lt;/h4&gt;

&lt;p&gt;Below are some common HTTP methods. Let's discuss what each of them means.&lt;/p&gt;

&lt;h5&gt;
  
  
  GET:
&lt;/h5&gt;

&lt;p&gt;GET method is used to retrieve data from a server at the specified resource.&lt;br&gt;
GET is often the default method in HTTP clients&lt;/p&gt;

&lt;h5&gt;
  
  
  POST:
&lt;/h5&gt;

&lt;p&gt;POST requests are used to send data to the API server to create or update a resource. The data sent to the server is stored in the request body of the HTTP request.&lt;br&gt;
The simplest example is a contact form on a website. When you fill out the inputs in a form and hit Send, that data is put in the response body of the request and sent to the server.&lt;/p&gt;

&lt;h5&gt;
  
  
  PUT:
&lt;/h5&gt;

&lt;p&gt;Similar to POST, PUT requests are used to send data to the API to update or create a resource. The difference is that PUT requests are idempotent. That is, calling the same PUT request multiple times will always produce the same result. In contrast, calling a POST request repeatedly make have side effects of creating the same resource multiple times.&lt;/p&gt;

&lt;h5&gt;
  
  
  PATCH:
&lt;/h5&gt;

&lt;p&gt;PATCH is used for modifying capabilities. The PATCH request only needs to contain the changes to the resource, not the complete resource.&lt;br&gt;
This resembles PUT, but the body contains a set of instructions describing how a resource currently residing on the server should be modified to produce a new version. This means that the PATCH body should not just be a modified part of the resource, but in some kind of patch languages like JSON Patch or XML Patch.&lt;/p&gt;

&lt;h5&gt;
  
  
  DELETE:
&lt;/h5&gt;

&lt;p&gt;DELETE is pretty easy to understand. It is used to delete a resource identified by a URI.&lt;/p&gt;

&lt;h4&gt;
  
  
  HTTP Response Status Codes:
&lt;/h4&gt;

&lt;p&gt;HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped into five classes. Let's touch upon some most common HTTP response status codes from all these classes in this blog.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Informational responses (100–199)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Successful responses (200–299)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;200 OK:&lt;/strong&gt; The request was completed successfully.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Redirects (300–399)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;301 Moved Permanently:&lt;/strong&gt; The resource is permanently located in a different URI. A new URI should be given in the response.&lt;br&gt;
&lt;strong&gt;302 Found:&lt;/strong&gt; The resource temporarily moved to a new location.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Client errors (400–499)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;400 Bad Request:&lt;/strong&gt; The request could not be understood by the server.&lt;br&gt;
&lt;strong&gt;401 Unauthorized:&lt;/strong&gt; The request has not been applied because it lacks valid authentication credentials for the target resource.&lt;br&gt;
&lt;strong&gt;403 Forbidden:&lt;/strong&gt; User not authorized to perform the requested operation.&lt;br&gt;
&lt;strong&gt;404 Not Found:&lt;/strong&gt; The requested resource could not be found at the given URI.&lt;br&gt;
&lt;strong&gt;405 Method Not Allowed:&lt;/strong&gt; The request method is not allowed on the specified resource.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Server errors (500–599)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;500 Internal Server Error:&lt;/strong&gt; The server encountered an unexpected condition, preventing it to fulfill the request.&lt;br&gt;
&lt;strong&gt;503 Service Unavailable:&lt;/strong&gt; The server is temporarily unavailable, usually due to overloading or maintenance.&lt;br&gt;
&lt;strong&gt;504 Gateway Timeout:&lt;/strong&gt; The server is a gateway or proxy server, and it is not receiving a response from the backend servers within the allowed time period.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Further References:
&lt;/h4&gt;

&lt;p&gt;Here are some resources where you can refer to more of these HTTP Methods and HTTP Response Status Codes.&lt;br&gt;
&lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods"&gt;MDN - HTTP Methods&lt;/a&gt;&lt;br&gt;
&lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status"&gt;MDN - HTTP Response Status Codes&lt;/a&gt;&lt;/p&gt;

</description>
      <category>httpmethods</category>
      <category>get</category>
      <category>post</category>
      <category>statuscodes</category>
    </item>
    <item>
      <title>What are Git and Github? Why are they used?</title>
      <dc:creator>Sai Karthik</dc:creator>
      <pubDate>Sat, 19 Dec 2020 19:15:22 +0000</pubDate>
      <link>https://dev.to/sai_karthik/what-are-git-and-github-why-are-they-used-4jpb</link>
      <guid>https://dev.to/sai_karthik/what-are-git-and-github-why-are-they-used-4jpb</guid>
      <description>&lt;p&gt;Have you ever wondered what Git &amp;amp; Github are, and why they are being used? Read on to know more about them!&lt;/p&gt;

&lt;h4&gt;
  
  
  Version Control System:
&lt;/h4&gt;

&lt;h5&gt;
  
  
  What is a Version Control System?
&lt;/h5&gt;

&lt;p&gt;A system that helps us to maintain the different versions of our work and retrieve back whichever version is needed later.&lt;br&gt;
Version Control Systems enable you to make periodic, manual “commits” to your project’s “repository” to save code as you go. Every time you commit, it goes down as a version of your project within the version control system. If you ever want to go back to an exact version of your project at a specific time, you’ll be able to do so just by using the commit you wish to revert to.&lt;br&gt;
This makes it very helpful to fix mistakes without spending much time. A version control system is a powerful tool for both teams and individual programmers.&lt;/p&gt;

&lt;h4&gt;
  
  
  Git
&lt;/h4&gt;

&lt;h5&gt;
  
  
  What is Git?
&lt;/h5&gt;

&lt;p&gt;Git is a type of version control system. It is widely adopted now by several projects.&lt;br&gt;
It is a software tool that enables the management of changes to source code.&lt;/p&gt;

&lt;h4&gt;
  
  
  GitHub
&lt;/h4&gt;

&lt;h5&gt;
  
  
  What is GitHub?
&lt;/h5&gt;

&lt;p&gt;GitHub is an online code hosting platform that integrates with Git to host your code online and helps in version control and collaboration.&lt;br&gt;
It lets you and others work together on projects from anywhere. &lt;br&gt;
Github lets you manage Git repositories.&lt;br&gt;
Many large companies have their open-source projects hosted on GitHub.&lt;/p&gt;

&lt;h5&gt;
  
  
  Repository:
&lt;/h5&gt;

&lt;p&gt;A repository contains all of your project's files and each file's revision history. You can own repositories individually, or you can share ownership of repositories with other people in an organization.&lt;br&gt;
Your repository is everything inside of the .git folder in your project. It holds all the metadata for your project, such as references to configuration, description of your repository, as well as all of the major logs made to the project as a whole. &lt;/p&gt;

&lt;h5&gt;
  
  
  Branch:
&lt;/h5&gt;

&lt;p&gt;Branching means you diverge from the main line of development and continue to do work without messing with that main line.&lt;br&gt;
A branch is used to isolate development work without affecting other branches in the repository. Each repository has one default branch, and can have multiple other branches. You can merge a branch into another branch using a pull request.&lt;br&gt;
Creating a separate branch that is either a working copy of the production branch or is completely different from it gives you the ability to leverage Git and work simultaneously with new features while one version of your software is in production.&lt;/p&gt;

&lt;h5&gt;
  
  
  Commit:
&lt;/h5&gt;

&lt;p&gt;Commit is like a snapshot of your repository. These commits are snapshots of your entire repository at specific times. You should make new commits often, based around logical units of change. Over time, commits should tell a story of the history of your repository and how it came to be the way that it currently is. Commits include lots of metadata in addition to the contents and message, like the author, timestamp, and more.&lt;/p&gt;

&lt;h5&gt;
  
  
  Pull Requests:
&lt;/h5&gt;

&lt;p&gt;Pull Requests are the heart of collaboration on GitHub. When you open a pull request, you’re proposing your changes and requesting that someone review and pull in your contribution and merge them into their branch. Pull requests show diffs, or differences, of the content from both branches. The changes, additions, and subtractions are shown in green and red.&lt;/p&gt;

&lt;h5&gt;
  
  
  Cheatsheets:
&lt;/h5&gt;

&lt;p&gt;Github has provided these cheatsheets which contain commands and a quick glossary. They come in handy while working with Git and Github.&lt;br&gt;
&lt;a href="https://education.github.com/git-cheat-sheet-education.pdf"&gt;Git Cheatsheet - 1&lt;/a&gt;&lt;br&gt;
&lt;a href="https://training.github.com/downloads/github-git-cheat-sheet.pdf"&gt;Git Cheatsheet - 2&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>repository</category>
      <category>commit</category>
    </item>
  </channel>
</rss>
