<?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: Kavindu Chethani</title>
    <description>The latest articles on DEV Community by Kavindu Chethani (@kavinduchethani).</description>
    <link>https://dev.to/kavinduchethani</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%2F734543%2Fb926923b-08c4-4bf2-b5bc-4d78433c2a28.jpeg</url>
      <title>DEV Community: Kavindu Chethani</title>
      <link>https://dev.to/kavinduchethani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kavinduchethani"/>
    <language>en</language>
    <item>
      <title>API, REST API and RESTful API</title>
      <dc:creator>Kavindu Chethani</dc:creator>
      <pubDate>Thu, 02 Jun 2022 09:16:51 +0000</pubDate>
      <link>https://dev.to/kavinduchethani/api-rest-api-and-restful-api-5c4n</link>
      <guid>https://dev.to/kavinduchethani/api-rest-api-and-restful-api-5c4n</guid>
      <description>&lt;p&gt;REST API and RESTful API used in the modern state of client/server architecture in software development. In this article you will be introducing to APIs, Rest API and Restful APIs.&lt;/p&gt;

&lt;p&gt;Table of content&lt;/p&gt;

&lt;p&gt;● What is API?&lt;/p&gt;

&lt;p&gt;● Benefits of using APIs&lt;/p&gt;

&lt;p&gt;● What is a RESTful API and REST API?&lt;/p&gt;

&lt;p&gt;● Endpoints REST API and RESTful APIs.&lt;/p&gt;

&lt;p&gt;● Difference between REST API and RESTful API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Application Programme Interface abbreviated as API which is a software intermediary that allows two applications to talk to each other. Let’s look into an example to go through with this topic,If user wants to book train tickets, web application shows the departure time, stations like that all the informations, &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7wcG-1yp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w4vsy5j9qx0fjxc17noc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7wcG-1yp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w4vsy5j9qx0fjxc17noc.png" alt="How API works" width="880" height="656"&gt;&lt;/a&gt;&lt;br&gt;
when we look in this from the developer side, developer wants to display all the train schedule informations in the web application, then developer use the APIs to get these train informations from the web server where all the train details and informations are stored. Then developers can retrieve data from the web server using the APIs to display in the web application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Benefits of using API&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;APIs needed to make the connection between application functions to handle the data from predefined processes.&lt;/p&gt;

&lt;p&gt;● Ease of integration: APIs can be embedded with any type of software application, So it can easily integrate with the applications and functions between different websites.&lt;/p&gt;

&lt;p&gt;● Reduce software development effort: Using APIs reduce development efforts, developers can implement APIs of Google Maps to provide the exact store location to website visitors. In doing so, you are not going to develop a GPS-based location tracking application from the ground up. Instead, you are using the APIs of an existing application on your website or web application. This approach is a more efficient and cost-effective way to achieve the required functionality.&lt;/p&gt;

&lt;p&gt;● Security: APIs provide a secure communication gateway for different app components to interact and exchange data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is a RESTFUL API and REST API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is REST API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;REpresentational State Transfer abbreviated to REST. It is an API that follows a set of rules for an application and services to communicate with each other.&lt;/p&gt;

&lt;p&gt;REST APIs work by fielding requests for a resource and returning all relevant information about the resource, translated into a format that clients can easily interpret (this format is determined by the API receiving requests). Clients can also modify items on the server and even add new items to the server through a REST API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is a RESTful API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The RESTful API is an Application Programming Interface(API) that obeys the REST architecture constraints and interacts with RESTful web services. The RESTful API also follows the principles of REST API. RESTful APIs are more scalable and have a longer lifespan. The RESTful API uses HTTP requests to access and use data. There four basic HTTP requests a client can make are:&lt;/p&gt;

&lt;p&gt;● GET — To retrieve a resource.&lt;/p&gt;

&lt;p&gt;● POST — To create a new resource.&lt;/p&gt;

&lt;p&gt;● PUT — To edit or update an existing resource.&lt;/p&gt;

&lt;p&gt;● DELETE- To delete a resource.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Endpoints REST API and RESTful APIs.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When a user makes a response APIs send a ‘request’ information from a web application or web server, it will receive a ‘response.’ The location where APIs send requests or where resources live are endpoints. With REST APIs, an endpoint is one end of a communication channel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Difference between REST API and RESTful APIs.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Though the architecture of both REST and RESTful API is similar, they vary with a slight difference. The REST API follows all the rules of the REST Architecture. It has a client-server, stateless, cacheable, layer system with a uniform interface, whereas the RESTful web applications have all the features of the REST architecture with unique additional features .&lt;/p&gt;

&lt;p&gt;In REST The protocol is strong, and it inherits many security measures, which are built-in architecture layers. In RESTful APIs It is multi-layer and has a transport protocol which makes the system less secure when compared with REST.&lt;/p&gt;

&lt;p&gt;When using web services REST API working of the URL is based on request and response. The working of RESTful is completely based on REST applications.&lt;/p&gt;

&lt;p&gt;It is highly adaptable and user-friendly to all business enterprises and IT using REST APIs.RESTful APIs It is too flexible when compared to RESTLESS web services.&lt;/p&gt;

&lt;p&gt;In this article I’m go through some basics about APIs, REST API, RESTful API.If you guys find this article useful , share with your friends. Thank you.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>api</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>NoSQL database</title>
      <dc:creator>Kavindu Chethani</dc:creator>
      <pubDate>Sun, 12 Dec 2021 14:44:51 +0000</pubDate>
      <link>https://dev.to/kavinduchethani/nosql-database-bb</link>
      <guid>https://dev.to/kavinduchethani/nosql-database-bb</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is NoSQL database&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That the data is sorted in a document rather than relational tables(Not only SQL). Relational databases rely on tables, columns, rows, or schemas to organize and retrieve data. In contrast, NoSQL database do not rely on these structures and use more flexible data models.&lt;/p&gt;

&lt;p&gt;That the data is sorted in a document rather than relational tables. NoSQL databases have unique features. Flexible schemas, Horizontal scaling, Fast queries due to data model, Ease of use for developers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Most popular NoSQL Databases&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MongoDB, CouchDB, CouchBase, Cassandra, HBase, Redis, Riak, Neo4J.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NoSQL database types&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Document databases&lt;/li&gt;
&lt;li&gt;Key-Values stores&lt;/li&gt;
&lt;li&gt;Column oriented databases&lt;/li&gt;
&lt;li&gt;Graph database&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Document databases&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Real world example :&lt;br&gt;
Story book contains story in the pages, When we going to add this story book into a relational tables, story texts goes to a one table, authors goes to another table, publishers goes to another table, titles goes to another tables like that we need to handle separate tables. But in the document database we can sorted this into single entity.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GnPMmasK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xpnidkzjke9h39sso54q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GnPMmasK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xpnidkzjke9h39sso54q.png" alt="A chart showing" width="441" height="251"&gt;&lt;/a&gt;&lt;br&gt;
The document type databases are sorted in format like JSON.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key-Values stores&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A telephone directory is a good real example, where the key is the person, and the value is the phone number. Key-Value databases store data as a hash table where each key is unique, and the value can be a JSON, BLOB(Binary Large Objects), string, etc.&lt;/p&gt;

&lt;p&gt;ex:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J_QCXo-I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zy9ejeovutk6fysib4g3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J_QCXo-I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zy9ejeovutk6fysib4g3.png" alt="img2" width="441" height="171"&gt;&lt;/a&gt;Key-value stores store everything as a key and a value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Column oriented databases&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Column-oriented NoSQL databases are widely used to manage data warehouses, business intelligence, CRM, Library card catalogs. A column database is faster and more efficient than a traditional database because the data storage is by columns rather than by rows.&lt;/p&gt;

&lt;p&gt;ex:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Kf7HTxrr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zg1hcmkxdehw2adf1dd1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Kf7HTxrr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zg1hcmkxdehw2adf1dd1.png" alt="img3" width="561" height="241"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Graph database&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Graph base databases mostly used for social networks, logistics, spatial data. Graph database is a database that uses graph structures for semantic queries with nodes, edges, and properties to represent and store data. A key concept of the system is the graph.&lt;/p&gt;

&lt;p&gt;ex:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jx6OSOHC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/taulhki121u8i1b16vzz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jx6OSOHC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/taulhki121u8i1b16vzz.png" alt="img4" width="471" height="301"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why we use NoSQL databases?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;NoSQL provides high level of scalability.&lt;/li&gt;
&lt;li&gt;It is used in distributed computing environment.&lt;/li&gt;
&lt;li&gt;Implementation is less costly It provides storage for semi-structured data and it is also provide flexibility in schema.&lt;/li&gt;
&lt;li&gt;Relationships are less complicated.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>database</category>
      <category>nosql</category>
    </item>
  </channel>
</rss>
