Networking term | Description | Restaurant analogy |
---|---|---|
Client | The requester. Ex: browser, web app, mobile app | Customer |
API | Simplified interface for interacting with the backend | Waiter |
Server | The backend where the processing happens | Kitchen |
For the development purpose we can use Local APIs to demonstrate the working of the Application.
Local APIs are not useful for production, but to temporarily test and debug the application we use it.
The basic operations are called CRUD operations
Method name | Operation |
---|---|
GET |
Retrieve data (Read) |
POST |
Send data (Create) |
PUT/PATCH |
Update data (Update)* PUT usually replaces an entire resource, whereas PATCH usually is for partial updates |
DELETE |
Delete data (Delete) |