API Track
Comprehensive API quality path from REST contracts and GraphQL safety to security and backward compatibility.
Learning Objectives
- Protect API contracts during evolution
- Validate reliability and async behavior
- Enforce API-level security and compatibility
Prerequisites
- REST basics
- HTTP status code familiarity
Prompts in this Collection
- 1
REST API Tests with Supertest & Jest
Generate a maintainable API test suite using Supertest and Jest covering happy paths, validation errors, auth, RBAC, and DB isolation with Zod response shape validation.
Start with practical API behavior testing patterns.
intermediatejest - 2
Generate API Contract Tests from OpenAPI Spec
Create a reviewable API contract test suite that validates response schemas, status codes, headers, and error payloads against an OpenAPI 3.0 spec.
Lock implementation to explicit contract schemas.
advancedplaywright - 3
GraphQL API Test Suite
Generate typed GraphQL tests covering queries, mutations, pagination, error handling, auth, depth limits, and N+1 detection — using graphql-request with Jest and codegen types.
Cover GraphQL-specific risk and correctness patterns.
advancedjest - 4
OWASP API Security Top 10 Test Suite
Generate security tests covering OWASP API Security Top 10: broken auth, excessive data exposure, injection, and more.
Harden API posture using OWASP-aligned checks.
advancedjest - 5
Postman Versioned API Backward Compatibility
Validate old clients remain supported during API version evolution.
Guard old clients during version transitions.
intermediatepostman