Back to projects
Featured Project
API Testing Collection
REST API coverage for authentication, validation and negative paths.
A focused collection of API tests validating authentication flows, request/response schema, and negative scenarios — because UI automation alone never catches everything a broken API can do.
Playwright API TestingTypeScriptJSONREST
Overview
Before or alongside UI automation, this collection validates the API layer directly — faster feedback, fewer flaky UI dependencies, and coverage for edge cases that are painful to trigger through the UI.
What's Covered
- Authentication (valid credentials, invalid credentials, expired/missing tokens)
- Response schema and status code validation for core endpoints
- Negative testing: malformed payloads, missing required fields, invalid types
- JSON body assertions using typed request/response models
Why API Testing Matters Here
API tests run in seconds, don't depend on UI rendering, and catch contract-breaking changes (a renamed field, a changed status code) before they ever reach a browser test — making them the fastest layer of the pyramid to keep green.
Lessons Learned
- — Negative tests reveal more about API robustness than happy-path tests ever do.
- — Typed request/response models catch schema drift at compile time, before a test even runs.