Exploring REST API Architecture
When building APIs to handle HTTP messages we often set up URL structures, request methods, headers, payloads, response status codes, safe and idempotent behavior, and more. These HTTP features implement a set of interfaces for one of the most prominent API architectures, called Representational State Transfer. In Postman’s latest State of the API survey, REST is the dominant architectural style used by 93.4% of respondents. So what makes APIs RESTful?
In this post we’ll look at the initial REST architecture introduced in Roy Fielding in his dissertation. We’ll cover REST constraints, resources, and representations, then HTTP examples, and a REST API checklist.
Fielding outlines REST as an architectural style for distributed applications with 6 constraints.
- Client-server architecture - The most straightforward constraint, the client-server model makes...
Continue reading →