Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
4 views6 pages

REST, RESTful, and Web API

This document explains the concepts of REST, RESTful, and Web API. REST is an interface that uses HTTP to retrieve and generate data in formats such as JSON and XML. RESTful refers to web services based on the REST architecture that utilize resources and CRUD operations. A Web API is a set of routines that provides access to software functions through protocols such as HTTP.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views6 pages

REST, RESTful, and Web API

This document explains the concepts of REST, RESTful, and Web API. REST is an interface that uses HTTP to retrieve and generate data in formats such as JSON and XML. RESTful refers to web services based on the REST architecture that utilize resources and CRUD operations. A Web API is a set of routines that provides access to software functions through protocols such as HTTP.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Tomás Alejandro Almánzar Espinal

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

those data in very specific formats, like XML and JSON.

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

pure business that we are going to use.

Why should we use REST?

REST is not just a trend, and it is for the following reasons that this interface is gaining so much

protagonism in recent years:


Create an HTTP request that contains all the necessary information, that is, a REQUEST to

A server has all the necessary information and is just waiting for a RESPONSE, meaning an answer.

in particular.

It is based on a protocol that is used for web pages, which is HTTP, it is a

a protocol that has existed for many years and is already established, it does not need to be invented or

do new things.

It relies on basic HTTP methods, such as:

To create new resources.

To obtain a lichado or a specific resource.

To modify.

Patch: To modify a resource that is not a data resource, for example.

To delete a resource, a piece of data for example from our database.

All objects are manipulated via URI, for example, if we have a user resource and

we want to access a specific user our URI would be /user/objectidentifier, with

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

why be all inside the same.

It currently has a large community as a project on Github.


We can create a design of a domain-driven microservice (DDD)

It is completely platform-independent, so we can make use of REST both

on Windows, Linux, Mac, or any operating system we want.

We can make our API public, allowing us to gain visibility if we make it public.

It gives us scalability because we have the separation of concepts of CLIENT and

SERVER, therefore, we can dedicate ourselves exclusively to the server part.

RESTful Web Services

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.

the resource using RESTful Web services.

Main characteristics of a RESTful Web service

It has five typical operations: list, create, read, update, and delete.

Each operation requires two things: the URI method and HTTP

The URI is a noun that contains the name of the resource.

The HTTP method is a verb


Web API

An API is an application programming interface (from English API: Application

Programming Interface). It is a set of routines that provides access to functions of a

determined software.

They are published by software builders to allow access to low-level features.

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

used by programmers to build their applications without the need to redo

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

the APIs of:

Google Search

Flickr

Del.icio.us

Amazon

Google Maps
Bibliography

Unable to access external content such as URLs.

The provided text is a URL, and I cannot access or translate content from external links.

Invalid input. Please provide a text document for translation.

You might also like