API

Why Local API?

  1. Development and Testing
  2. Not Suitable for Production
  3. Limited Accessibility
  4. Depends on Local Environment

Untitled

Untitled

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

HTTP Requests

Untitled

Untitled

Request Methods

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)