What is Restful API | Restful API example | Rest Api | Tutorial

 What is Restful API | Restful API example | Rest Api | Tutorial

-TechTalkBot

What is Restful API  Restful API example  Rest Api  Tutorial Techtalkbot

Restful Api full form :

A REST API which is also known as RESTful API stands for 'Application Programming Interface" (API/web API).
Here REST stands for REpresentational State Treansfer, is an architectural style which defines set of constraints to be used for creating web services. 



An API(Application Programming Interface) is set of definitions for building & application software, it enables different programs to communicate with each other smoothly.

In simple words, if we want to interact with computer or server to retrieve some information, an API helps in communicating to get what we want.

An API can be seen as a mediator between client & use. It also provides way for organizations to share resource and information.

 


REST is set of processes and not a protocol or standard. REST can be implemented by API developers in various ways.

For example: when a developer requests Facebook API to fetch some user's object, his API will return the state of user, name, friends, posts etc.

What is Restful API | Restful API example | Rest Api | Tutorial
State representation can be in JSON, XML, or HTML format Cred:seobility
 

RESTful web services are very popular because they are light weight, highly scalable and maintainable and are very commonly used to create APIs for web-based applications.



REST is set of processes and not a protocol or standard. REST can be implemented by API developers in various ways.

CLIENT:   
 
    The client is an equipment or programming that utilizes the API made open by a server. For example, when you visit Facebook's site, your program is the client that calls Facebook's API and uses information sent back to show data on your screen.


RESOURCE:

    A resource can be any object the API can offer info about. For instance, in the case of a Twitter API, a resource can be a user, hashtag, or any media type like a picture. Every resource has a distinct identifier that can be a name or number. 

The resource is the primary abstraction of information in REST. REST API uses a resource identifier to recognize the specific resource involved in the communication between different elements.


SERVER:

     A server is any framework that contains assets that the client needs. Whenever it gets client demands, it gives the substance to the client utilizing the API interface. The server will just concede a delegate condition of the source and not complete admittance to the client.


A brilliant illustration of this is the point at which a portable application shows YouTube recordings through its connection point. It utilizes a REST API to call the video content from YouTube without facilitating it on its framework.



CLIENT- SERVER: 

    This REST standard chips away at the idea that client and server ought to be disconnected from each other and allowed to autonomously create. Thusly, you can further develop sensibility across various stages and increment adaptability by smoothing out server parts as UI concerns are discrete from the information stockpiling concerns.


STATELESS:

    As per this REST principle, APIs are stateless, which means calls can be made independent of one another. Moreover, every call includes the data essential to complete itself effectively.

In other words, every request sent from the client to the server must include all the info needed to comprehend the request. 




So, this was the brief intro to RESTful API, REST API tutorial, RESTful API tutorial by TechTalkBot.

Hope You like it, similarly for intro to Microservices checkout below link:

Intro to Microservices


If you are also keen to learn Blogging and are new to Blogging world do check out these links also

Best Indian Blogs to Read

Common Blogging Mistakes to avoid


Keep reading!

Stay Connected!






Post a Comment

Previous Post Next Post