What is API Testing?
API testing focuses on validating how systems communicate with each other.
On this page, I break down different types of API testing using simple examples and real testing scenarios.
API Testing Types

Endpoint Testing
Testing if an endpoint returns the correct response and status code

Data-driven Testing
Passes different sets and type of data inputs to an API to ensure it works correctly

Workflow Testing
Testing multiple API calls that depend on each other.

Performance Testing
Measuring response time and system behaviour under a variety of conditions.

Security Testing
Checking authentication, authorization, and vulnerabilities.

Contract Testing
Ensures the communication between a client and on API follows a specific “contract” or set of expectations