What is REST Architecture ?

In this article, we will be discussing REST Architecture. There is a lot of confusion among people what REST is what is a restful API what does it mean to create a restful API.
REST stands for Representational State Transfer
REST is a style, is a design, you can say that it’s something which is not a specification. It’s just there as a style you can follow but it’s not a formal specification. That means you don’t have a formal document that would validate whether you have created a back-end is a restful API or not.
REST consists of HTTP methods, status codes, response types.
HTTP methods
GET — Get something
POST — Create a resource
PUT — Replace a resource with the one being sent/create a resource.
PATCH — Update the resource/create resource
DELETE — Delete resource
Status Codes
1xx — Informational Responses
2xx — Successful Responses
3xx — Redirects
4xx — Client Errors
5xx — Server Errors
Problems with REST
- Not a formal specification.
- A lot of guesswork is required.
- The shape of incoming data is unknown.
