Which protocol is used in REST?

The primary protocol used in REST (Representational State Transfer) APIs is HTTP (Hypertext Transfer Protocol). RESTful APIs leverage the standard HTTP methods to perform operations on resources identified by URLs. Here's a breakdown of the key HTTP methods commonly used in REST APIs:

Common HTTP Methods in REST

  1. GET: Retrieves data from the server. For example, GET /users retrieves a list of users.
  2. POST: Sends data to the server to create a new resource. For example, POST /users creates a new user.
  3. PUT: Updates an existing resource or creates it if it does not exist. For example, PUT /users/{id} updates the user with the specified ID.
  4. PATCH: Partially updates an existing resource. For example, PATCH /users/{id} may update specific fields of a user.
  5. DELETE: Removes a resource from the server. For example, DELETE /users/{id} deletes the user with the specified ID.

Additional Protocols

While HTTP is the main protocol, REST can also work over other protocols like:

  • HTTPS: For secure communication over HTTP, providing encryption and security.
  • WebSocket: Although not typical for REST, it can be used in some scenarios for real-time communication.

Conclusion

In summary, REST primarily relies on HTTP as its protocol, using various methods to manage data and resources. Its simplicity and effectiveness in leveraging existing web standards make it a popular choice for developing APIs.

For more information on REST and its use of HTTP, you can check out these sources:

TAGS
System Design Interview
CONTRIBUTOR
Design Gurus Team
-

GET YOUR FREE

Coding Questions Catalog

Design Gurus Newsletter - Latest from our Blog
Boost your coding skills with our essential coding questions catalog.
Take a step towards a better tech career now!
Explore Answers
Adopting architectural layering techniques in design responses
What is the salary of PayPal intern?
Does Netflix use REST API?
What is the standard system design interview?
How to prepare for a ByteDance interview?
What to expect in a Meta (Facebook) technical interview?
Related Courses
Course image
Grokking the Coding Interview: Patterns for Coding Questions
Grokking the Coding Interview Patterns in Java, Python, JS, C++, C#, and Go. The most comprehensive course with 476 Lessons.
4.6
Discounted price for Your Region

$197

Course image
Grokking Modern AI Fundamentals
Master the fundamentals of AI today to lead the tech revolution of tomorrow.
3.9
Discounted price for Your Region

$78

Course image
Grokking Data Structures & Algorithms for Coding Interviews
Unlock Coding Interview Success: Dive Deep into Data Structures and Algorithms.
4
Discounted price for Your Region

$78

Image
One-Stop Portal For Tech Interviews.
Copyright © 2026 Design Gurus, LLC. All rights reserved.