REST, RESTful, and Web API
REST, RESTful, and Web API
2019-0067
30-11-2021
Programming
Multiplatform
Rest, Restful and web API
What does REST mean?
REST is an interface for connecting various systems based on the HTTP protocol (one of the
older protocols) and it helps us to obtain and generate data and operations, returning
The most commonly used format today is JSON format, as it is lighter and more readable.
comparison to the XML format. Choosing one will be a matter of the logic and needs of each
project.
REST relies on HTTP, the verbs it uses are exactly the same, with them we
It can perform GET, POST, PUT, and DELETE. From this arises an alternative to SOAP.
When we talk about SOAP, we are talking about a level-divided architecture that is
I used to do a service, it is more complex to set up as well as to manage and I only worked
with XML.
Now, REST solves that complexity added by SOAP, making things much easier.
easy the development of a REST API, in this case of a service in which we are going to
store our business logic and we will serve the data with a series of URL resources and
a series of data that we will limit, that is, our BACKEND will be our logic
REST is not just a trend, and it is for the following reasons that this interface is gaining so much
A server has all the necessary information and is just waiting for a RESPONSE, meaning an answer.
in particular.
a protocol that has existed for many years and is already established, it does not need to be invented or
do new things.
To modify.
All objects are manipulated via URI, for example, if we have a user resource and
we would already have a USER service ready to obtain information about a user, given
an ID.
Advantages of REST
It allows us to separate the client from the server. This means that our server
You can develop in Node and Express, and our REST API with Vue for example, does not have
We can make our API public, allowing us to gain visibility if we make it public.
The two key concepts are necessary since a RESTful Web service is that service
web that is based on REST architecture. RESTful web services are based on resources.
A resource is an entity, which is mainly stored on a server and requested by the client.
It has five typical operations: list, create, read, update, and delete.
Each operation requires two things: the URI method and HTTP
determined software.
level or owners, detailing only how each routine should be carried out and the
functionality that it provides, without giving information about how the task is carried out. They are
program functions already made by others, reusing code that is known to be tested and that
it works correctly.
On the web, APIs are published by sites to provide the possibility to perform some
action or access to any feature or content that the site provides. Some of the most
Google Search
Flickr
Del.icio.us
Amazon
Google Maps
Bibliography
The provided text is a URL, and I cannot access or translate content from external links.