<?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: KwikirizaDan</title>
    <description>The latest articles on DEV Community by KwikirizaDan (@kwikirizadan).</description>
    <link>https://dev.to/kwikirizadan</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%2F1169998%2F9bd3c966-49b8-489e-b99a-7600d49c971c.jpg</url>
      <title>DEV Community: KwikirizaDan</title>
      <link>https://dev.to/kwikirizadan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kwikirizadan"/>
    <language>en</language>
    <item>
      <title>The ultimate guide to Postman with crud API for Beginners</title>
      <dc:creator>KwikirizaDan</dc:creator>
      <pubDate>Mon, 13 Nov 2023 12:25:38 +0000</pubDate>
      <link>https://dev.to/kwikirizadan/the-ultimate-guide-to-postman-with-crud-api-1oh2</link>
      <guid>https://dev.to/kwikirizadan/the-ultimate-guide-to-postman-with-crud-api-1oh2</guid>
      <description>&lt;p&gt;In this post we are going to perform a crud operation using a simple items Api's. CRUD represents Create, Read update/Edit and Delete Data which are fundamental operations of any information system, However for Api's this is achieved by use of the following HTTP methods which are GET,POST,PUT,DELETE etc as they are explained as below:&lt;/p&gt;

&lt;p&gt;GET/ READ&lt;br&gt;
API end point &lt;a href="https://items-api.kwikirizadan.repl.co/items"&gt;https://items-api.kwikirizadan.repl.co/items&lt;/a&gt;&lt;br&gt;
For a Get request you just need an API end point like the one listed above. However some times the API end points may have parameters&lt;br&gt;
open postman and generate a new GET request then paste the end point and hint send and the data will be shown in json format in the body Tab&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JuzXK538--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fy96pjj61k9usriqf1pg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JuzXK538--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fy96pjj61k9usriqf1pg.jpg" alt="GET request in postman" width="800" height="494"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;POST /CREAT&lt;br&gt;
API end point &lt;a href="https://items-api.kwikirizadan.repl.co/item"&gt;https://items-api.kwikirizadan.repl.co/item&lt;/a&gt;&lt;br&gt;
in postman past the link alongside the the http method and make sure the Method is POST.&lt;br&gt;
Choose body tab and select raw then click from text to json&lt;br&gt;
The write information in a json form like the lype below, remember The item has id but don't bother they are auto increased&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
{
    "name":"New Item",
    "desc":"New Item describtion"
}

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

&lt;/div&gt;



&lt;p&gt;hint send &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bL_QBK5---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2s6u3fgp2osxgmvflygi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bL_QBK5---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2s6u3fgp2osxgmvflygi.png" alt="POST request in postman" width="800" height="466"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PUT /UPDATE &lt;br&gt;
API END POINT &lt;br&gt;
&lt;a href="https://items-api.kwikirizadan.repl.co/item/10"&gt;https://items-api.kwikirizadan.repl.co/item/10&lt;/a&gt;&lt;br&gt;
(&lt;em&gt;10 presents the Id of the Item to be edited feel free to use any number&lt;/em&gt;)&lt;br&gt;
For the put method we need an item id which should be edited then in the body section we select the the data to be changed on a specific ID&lt;br&gt;
Just like the POST Method you need to insert the data in the body Tab then Raw and should be in json format&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
{
    "name":"New Item edited",
    "desc":"New Item describtion edited"
}

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

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_vQn7dG8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y6evdenm4mbw2gnmlb4i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_vQn7dG8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y6evdenm4mbw2gnmlb4i.png" alt="PUT request in postman" width="800" height="405"&gt;&lt;/a&gt;&lt;br&gt;
DELETE &lt;br&gt;
API END POINT&lt;br&gt;
&lt;a href="https://items-api.kwikirizadan.repl.co/item/10"&gt;https://items-api.kwikirizadan.repl.co/item/10&lt;/a&gt;&lt;br&gt;
(&lt;em&gt;10 presents the Id of the Item to be deleted feel free to use any number&lt;/em&gt;)&lt;br&gt;
For the Delete method we need an item id which should be Deleted passed in the API endpoint then the Method to be Delete and click send&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qv43pQ2W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pddbxny7m8f0j0vl1esd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qv43pQ2W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pddbxny7m8f0j0vl1esd.png" alt="GET request in postman" width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GET SINGLE ITEM&lt;br&gt;
API END POINT&lt;br&gt;
&lt;a href="https://items-api.kwikirizadan.repl.co/item/10"&gt;https://items-api.kwikirizadan.repl.co/item/10&lt;/a&gt;&lt;br&gt;
(&lt;em&gt;10 presents the Id of the Item to be retrieve feel free to use any number&lt;/em&gt;)&lt;br&gt;
For the GET method we need an item id which should be retrieved passed in the API endpoint then the Method to be GET and click send&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qv43pQ2W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pddbxny7m8f0j0vl1esd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qv43pQ2W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pddbxny7m8f0j0vl1esd.png" alt="GET request in postman" width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

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