RESTful API
PronunciationREST-ful AY-pee-eye
Definition
An API style where each thing (a user, an order) has its own URL and you use standard HTTP methods (GET, POST, PUT, DELETE) to work with it.
Where you hear it
System design, backend interviews, and API documentation.
Examples
The mobile app talks to a RESTful API that returns JSON.
Use
POSTto create andDELETEto remove a resource.A RESTful API returns all orders at /orders and one order at /orders/15.
Common mistake
Calling every HTTP API "REST". Many APIs are just "HTTP APIs" and do not follow REST rules like using the right verbs.
Don't confuse with
RESTful API is often confused with GraphQL, but while REST uses multiple endpoints and standard HTTP methods, GraphQL uses a single endpoint and allows clients to request exactly the data they need.
Say it at work
- In a meeting or chat
Let's make sure our new RESTful API endpoints follow standard naming conventions before we publish the documentation.
- In an email or ticket
Please update the authentication headers in this RESTful API pull request so the frontend tests can pass successfully.