What is an API ?

<aside> 💬

Think of an API like a waiter in a restaurant.


Request Type :

<aside> 💬

1. URL (Uniform Resource Locator)

This is the address of the resource you are trying to reach.

2. Method (Type)

The "Type" defines what action you want the server to take. The most common methods are:

3. Parameters (Params)

These are used to provide specific details or filters for the request. They are divided into three types:

4. Headers

Headers contain "metadata" or extra information about the request. They don't contain the primary data but provide context, such as:


How it works in a cycle:

  1. Request: You (the Client) send a request with a URL, Method, Headers, and sometimes a Body.
  2. Processing: The Server receives the request, identifies what you need, and processes it.
  3. Response: The Server sends back a Response, which usually includes a status code (like 200 OK or 404 Not Found) and the data you asked for. </aside>

Write Here …

<aside> 💬

</aside>