What is REST API
A REST API (short for Representational State Transfer Application Programming Interface) is a set of rules for how two computer systems talk to each other over the internet. It’s not one specific API, but a style of building APIs; one that’s become the most common for web-based systems.
In plain terms, REST APIs let different software applications send and receive data using the same web technology your browser uses to load websites (HTTP). When you interact with a mobile app or website (like adding something to your shopping cart or checking delivery status) it’s probably using a REST API in the background to make that happen.
A brief history
APIs have existed for decades, originally to help different pieces of software talk inside the same computer. But as the internet grew in the 1990s, developers needed a better way for systems to communicate over the web.
In 2000, computer scientist Roy Fielding introduced REST as a simpler, more scalable way to build APIs using existing web technologies. Compared to earlier approaches (like SOAP, which was more rigid and complex), REST was lightweight and easier to adopt. It quickly became the go-to approach for building APIs that power web and mobile apps.
How it fits into your tech stack
REST APIs use web addresses (URLs) to access resources like products, users, or orders. To interact with those resources, they use standard HTTP methods:
- GET: Retrieve information
- POST: Add something new
- PUT: Update something
- DELETE: Remove something
The data being sent or received is usually in JSON format, which is easy for both humans and machines to understand.
Know more