The architecture for a REST API .?

sanju saini
1 min readFeb 2, 2023

--

The architecture for a REST API typically consists of the following components:

  1. Client — A client application that makes API requests to a server.
  2. Server — A server application that accepts API requests from a client and returns API responses.
  3. Endpoints — A URL endpoint that represents a specific resource or collection of resources in the API.
  4. HTTP Methods — Used to interact with the API endpoints, such as GET, POST, PUT, DELETE, etc.
  5. Request/Response — An API request is made by the client to the server and an API response is returned by the server to the client.
  6. Data Format — The format in which data is sent and received between the client and server, such as JSON or XML.
  7. API Router — Handles incoming API requests, performs authentication and authorization, and routes the request to the appropriate endpoint.
  8. Database — Stores the data for the API and is usually accessed by the server for reading and writing data.

This is a basic architecture for a REST API. Depending on the specific requirements and use case, additional components such as caching, rate limiting, or security measures may also be included.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

sanju saini
sanju saini

Written by sanju saini

Senior Software Engineer with 4.5+ years of experience in full-stack development, specializing in Python, Golang, PHP, Django, FastAPI, React, and RESTful APIs.

No responses yet

Write a response