Photo by Andrew Dunstan on Unsplash

Basics of a HTTP Request in a RESTful Architecture

Sriram Kumar Mannava
2 min readJul 4, 2024

--

If you are a full stack developer, or a front-end developer who develops client server interactions, it is highly important that you should know how a REST API works and what all components are there with it.

In simple words, a RESTful API is a server API that is built using REST architecture. REST stands for Representative State Tranfer, it is an architecture on which such APIs can be built and exposed for consumption.

Generally we expose such APIs over HTTP/S, where the requests are transmitted over the network via TCP/IP.

A client builds a HTTP Request and sends to the RESTful API, which returns a HTTP Response.

A simple HTTP Request contains the following parts -

A HTTP Verb, that describes what type of operation it is - GET, POST etc

URL of the API endpoint where you want to send the request.

HTTP Request Headers which describe the metadata information about the request. For example, a contentType application/json indicates that the request body contains JSON data

Finally the actual Request Body that has the content to be transmitted, or an empty body when there is nothing to send.

On the server side, the endpoint that is listening for such requests, receives this request, understands what is to be done based on the Verb and the Headers and processes it followed by response.

That's a simple introduction to the anatomy of a HTTP Request and the RESTful architecture.

Share it with your friends if you find it useful, it helps me reaching more people.

--------------------

Hello there 👋, I'm Sriram Kumar Mannava

I'm a full-stack developer, and I can help you jumpstart into software engineering by sharing various useful concepts in a simple way, based on my experience 😁🔥

--

--

Sriram Kumar Mannava

I make Full Stack Development Easy for You | Full Stack .NET Dev | 3× AWS Certified | Blogger