Representational State Transfer Application Programming Interface
Architectural style that allows different software applications to communicate with each other over the internet using HTTP protocol
Treats data as resources (user, product. image)
| HTTP Method | CRUD Action | Purpose | Example Endpoint |
|---|---|---|---|
GET |
Read | Retrieves data from the server. | GET /users/123 |
POST |
Create | Submits new data to create a resource. | POST /users |
PUT |
Update | Replaces an entire existing resource. | PUT /users/123 |
PATCH |
Update | Partially updates a specific resource field. | PATCH /users/123 |
DELETE |
Delete | Removes a specific resource from the server. | DELETE /users/123 |
To be true “RESTful” API, must follow core constraints