In: Computer Science
Do restful APIs supply the benefits of the relational data model - data independance and communicability?
What is Restful API ?
Full form of RESTFul API is, Representational State Transfer. It is
a means for two computers to communicate with each other over HTTP.
A Restful API is an architectural styled API that uses HTTP
connection to access and usw the data. We can perform various
operations on that data such as GET, PUT, POST and DELETE. We can
modify the resources using these operations.
Features of RESTFul API are -
1. Client-server architecture
2. Stateless
3. Cacheable
4. Uniform Interface
5. Layered system
6. Code on demand
Restful API proovides the benefits of relational data model - i.e, data independance and communicability.
Data independance in restful API -
Restful is stateless. Each HTTP connection contains all the needed
information to run iy, so that neither the client nor the server
needs to remember previous state for connection.
Restful API is implemented on client-server architecture. It has
layered architecture. Layered architecture means system is composd
of multiple hierarchicle layers. This provides great data
independance. Because of layers, various component's behaviour can
be constrained. These components cannot see beyond the immediate
layer with which they are interacting.
So restful API provides high data independance to it's users.
Communicability in restful API -
Restful API implements client server architecture. By means of
this, communication can be established between clients and servers.
Different layers in architecture can communicate with it's
immediate layer.In the layered architecture, you can deploy the API
on server A, and data can be stored on Server B. Whereas requests
from clients can be authenticated on server C.