REST API
Overview
A REST API is a web API style that uses resource-oriented URLs, HTTP verbs, and stateless request-response interactions.
It matters because REST has shaped how many modern APIs are designed, documented, and consumed.
What a REST API Usually Involves
REST is often associated with:
- resource-oriented endpoints
- HTTP methods
- stateless requests
- predictable URL structures
- standard response patterns
That makes it both a practical design style and a shared vocabulary for web API work.
Why REST APIs Matter
REST APIs matter because a large portion of application integration still depends on HTTP-based service interfaces.
Teams use them for:
- backend integrations
- frontend data access
- SaaS interoperability
- internal service communication
Even when newer styles exist, REST remains one of the most common reference points.
REST vs RPC or GraphQL
REST is often contrasted with other API styles.
- REST emphasizes resources and HTTP semantics.
- RPC-style APIs emphasize actions or procedures.
- GraphQL emphasizes flexible querying through one schema endpoint.
That difference matters because API shape changes client expectations, documentation, and operational behavior.
Practical Caveats
REST is useful, but many so-called REST APIs only follow the style loosely.
- Naming alone does not make an API RESTful.
- Versioning and consistency still matter.
- HTTP semantics are often underused.
- Good docs matter as much as endpoint design.
REST is most useful as a coherent design discipline rather than a label.
Frequently Asked Questions
Is every HTTP API a REST API?
No. Many HTTP APIs use the transport without following REST-style resource patterns closely.
Is REST outdated?
No. It is still one of the most common API styles, even if it is not the only one.
Why do people still choose REST?
Because it is familiar, broadly supported, and fits many integration use cases well.
Resources
- Roy Fielding: Architectural Styles and the Design of Network-based Software Architectures
- Microsoft: REST API Guidelines
- Mozilla: Introduction to APIs