API for Product Managers
What Is a REST API? A Product Manager's Guide
In this lesson
You'll learn what REST is, how REST APIs are organised, and why it's the API style you'll come across most as a PM.
What is a REST API?
REST (Representational State Transfer) is a style for designing APIs. A REST API organises data into resources, such as users, orders or products, and uses standard HTTP methods to work with them.
Core ideas of REST
Resources: Each resource has its own URL, such as /users/42.
HTTP methods: GET, POST, PUT, PATCH and DELETE describe the action.
Stateless: Each request carries everything the server needs, and the server doesn't remember earlier requests.
JSON: Responses are usually sent in JSON format.
Example
Here's how a REST API for an online store could be organised:
Action | Method and endpoint |
|---|---|
List all products | GET /products |
View one product | GET /products/15 |
Add a product | POST /products |
Update a product | PATCH /products/15 |
Delete a product | DELETE /products/15 |
Why this matters for you as a PM
REST is the most widely used API style, so you'll see it in most products and third-party integrations.
Its predictable structure makes API documentation easier to read and integration work easier to estimate.
Common mistakes to avoid
Assuming every API is RESTful just because it uses HTTP.
Writing requirements around screens only, without thinking about the resources behind them.