API+Testing+introduction
API+Testing+introduction
Introduction
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan
Client/Server Architecture
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan
What is an API?
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan
API - MakeMyTrip Analogy
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan
Types Of API
APIs come in different types based on how and where they are used.
Open APIs (Public APIs):
• These are open for everyone to use. Developers can access them
without restrictions (or with minimal requirements).
• Example: Google Maps API lets any app show maps and directions.
Internal APIs (Private APIs):
• These are used only within a company or organization. They help
internal systems or teams communicate securely.
• Example: A company's HR system API to access employee data for
payroll processing.
Partner APIs:
• These are shared with specific partners or businesses. They require
special permissions or agreements to use.
• Example: A travel app using an airline’s API to show flight details.
Composite APIs:
• These combine multiple APIs into one call, allowing you to get data from
different sources in a single request.
• Example: An e-commerce app using a composite API to retrieve product
info, pricing, and customer reviews all at once.
3. Microservice
• What it is: A small, independent part of an application that does one
thing well. A large app is built by combining many microservices.
• How it works: Each microservice communicates with other
microservices via APIs. They are self-contained and can run
independently.
• Example: In an online shopping app, separate microservices might
handle user login, product catalogue, payments, and order tracking.
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan
http Vs https
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan
Terminologies
Payload
payload means body in the HTTP request and response message.
• Request Payload
• Response Payload
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan
HTTP Status Codes
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan
https://www.pavanonlinetrainings.com https://www.youtube.com/@sdetpavan