What is REST Architecture ?

CrazyNinja
Nov 2 · 1 min read
What is REST Architecture ?
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.
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade