What is REST API and How to Learn it ?

Hey Guys...
In this blog, I'm going to introduce some knowledge about API.  Lets first see, What API is ??

What REST API is ??

  • REST API or Representational State Transfer Application Programming Interface is used to send a request to the server and then the server will give us response as the feedback. We can say that whenever user needs anything then the request will come to the server then the server will give a response back.


It minimizes the work of the developer to develop different kinds of application. Example Websites, Android Apps and IOS Apps.



In the above image, you can see that there is a database, it may be MySQL, MongoDB database you use and then by using the REST API services we can access the same things in different applications like Android, Web, and iPhone etc.

If something changed in the website by using the REST API, it will make reflect to all applications ANDROID APP or IPHONE who use that API.

Companies are finding easy to manage the projects because the developers are not going to write the programs for every application.

Example

Let's look a small example, we know about AMAZON, let's say you made an order using the AMAZON ANDROID APP. When your purchase is completed, then after logging in AMAZON WEBSITE by using the same account where you have made that purchase also in my order section you will going to see the same order. 

This is made by using API, although the programmer can develop this by not using API also if they do without API then they have to write lots of coding, if you made changes in the app codes also you have to make changes in the web codes also, its make difficulties.


You can also understand by seeing the above video.

How to create REST API?

Now, the question came that how to make API. You can make REST API probably on every Programming language that you love. Example like PHP, NODE JS, JAVA, PYTHON etc.

Using PHP to make REST API?

To make REST API's using PHP, if you are new to PHP, then go start from scratch and do some small projects then you should move to the Object-Oriented Concept Of PHP, then finally the moment came to make API by learning one of the frameworks of PHP like Code Igniter, Symphony, Laravel etc. You can use any type of databases. Go and watch youtube videos and google about it and then start learning.

Using NODE JS to make REST API ?

My suggestion to make REST API's, if you have knowing some JAVASCRIPT stuff then it make you coding easy. NODEJS have EXPRESS JS framework which make the development of REST API's so easy. Using databases like MongoDB and MySQL.

You can learn NODEJS API, I will recommend to enroll course of BRAD TRAVERSY in UDEMY.

Click this to link foo this course -  https://www.udemy.com/course/nodejs-api-masterclass/

Using JAVA to make REST API ?

You can also make REST API's using java SPRING BOOT framework. Go and google about for more information.

Using Python to make REST API ?

There is a tool called FLASK in Python which allows you to make RESTful APIs go and google about it.

Format Of Restful API

REST API can be use formats lik JSON and XML. Datas will taken from user to server and server to user via these two formats. 

JSON or JavaScript Object Notation

JSON or JavaScript Object Notation is popular one, almost 85% of developer choose these format. Everything will come in objects.

Example

{
     "name": "Ajit Pradhan",
     "interests": "Android and Web",
      "dist":  "dhenkanal",
      "state":  "odisha",

}

You need to just parse into string formats then you are ready to implement in your web app and android app.

XML or Extensible Markup Languages

XML parsing make difficulties, although I will not suggest you, to use.

Example

<note>
  <to>Ajit</to>
  <from>Pradhan</from>
  <heading>Reminder</heading>
  <body>Don't forget to subscribe the email notification!</body>
</note>

Now its time to make close of this blog thank you for reading this blog, Next blog I will start blogging on "HOW TO MAKE API USING NODEJS ?" it will make your REST API development so easier. THANK YOU

2 Comments

  1. The function’s smoothness, the game’s soundtrack, and even 1xbet the eye to element are necessary to ensure it's a high-quality offering. Without such elements, the games appear novice at best and illegitimate at worst. That being stated, the Wild Casino claims to have customer service representatives obtainable 24/7, solely e mail correspondence is obtainable, and no live chat is out there. Moreover, all deposits made in Bitcoin are topic to a 5% bonus, though all winnings gained from this promotion are topic to a 5x rollover requirement earlier than a withdrawal can be made.

    ReplyDelete
  2. Some folks interact in periodic gambling binges rather than often, however the emotional and monetary consequences will be the identical. A vicious 바카라사이트 circle develops, and an elevated longing for the exercise. As the craving grows in depth and frequency, the flexibility to control the urge to gamble is weakened. Some discover themselves} affected by gambling may also have a problem with alcohol or medicine, possibly outcome of} a predisposition for dependancy.

    ReplyDelete
Post a Comment
Previous Post Next Post