#395281
    Arpita Gumma (arpita.gumma)
    2025-01-23 23:21
    2025-01-23 22:45
    Details
    About API
    • What is an API

      An API (Application Programming Interface) is like a bridge that allows two software applications to talk to each other. For example, when you book a cab on an app, it uses an API to connect with the cab service system and fetch details.

    • Why do we need APIs

      APIs make it easier for apps to share data and functionality without exposing the internal workings. They save time, enable integration, and improve efficiency.

    • API standard, Response, Request, Content Types, Response HTTP and Status code

    1. Key API Concepts:
    API Standards: Rules for building APIs so they are easy to use (e.g., REST, SOAP).
    

    REST is the most popular, using URLs and HTTP methods like GET, POST, etc.

    1. Request: When an app sends data or asks for data from the API. Example: Get a user’s profile data.

    2. Response: What the API sends back after processing a request. Example: The user’s name, email, etc., in JSON format.

    3. Content Types:

      Specifies the format of the data being sent/received (e.g., JSON, XML, HTML). Example: application/json.

    4. HTTP Response and Status Codes:

      Tell whether the request was successful or not.

      200: Success

      404: Not Found

      500: Server Error

      In short, APIs connect apps, handle requests, send responses, and make development easier.

    Empty
    Empty
    State of Progress
    2025-01-23
    Empty
    2025-01-23
    Arpita Gumma (arpita.gumma)
    Ajit kumar (ajit)
    2025-01-23
    Empty
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    • Priority set to