api-testing

Validate REST and GraphQL API contracts with schema validation and response assertions.

64|12|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/petrkindlmann/qa-skills --skill api-testing-petrkindlmann
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-testing
Source: https://github.com/petrkindlmann/qa-skills/tree/main/skills/api-testing
Command: npx skills add https://github.com/petrkindlmann/qa-skills --skill api-testing-petrkindlmann

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates API contracts, flows, and performance across REST and GraphQL endpoints, reducing regressions and drift between services.

Core Features & Use Cases

  • Schema validation using Zod/AJV to enforce response shapes.
  • Contract testing and authenticated API workflows, CRUD lifecycle coverage, and error handling checks.
  • CI/CD-ready test suites that support Playwright APITesting, Supertest, or standalone HTTP clients.

Quick Start

Run a simple API test against your /api/users endpoint to validate response shape and status.

Frequently Asked Questions about api-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate API contracts for REST and GraphQL services?

Validate API contracts by using Zod or AJV for schema validation to enforce response shapes, checking status codes, and verifying CRUD lifecycle behaviors across REST and GraphQL endpoints.

How do I automate API testing in a CI/CD pipeline to prevent schema drift?

Automate API testing in CI/CD pipelines by running contract tests that monitor schema drift, validate OpenAPI-directed contracts, and execute response assertions using Playwright APITesting, Supertest, or standalone HTTP clients.

What is the best way to test authenticated API workflows and error handling?

Test authenticated API workflows and error handling by configuring provider-auth flows within your test suites, validating CRUD lifecycles, and asserting error responses against defined schema contracts.

Can I use Playwright for API testing alongside schema validation tools?

Yes, you can use Playwright APITesting alongside Zod or AJV to execute HTTP requests and validate response shapes, supporting both standalone tests and integrated CI workflows.

When do I need contract testing for my APIs?

You need contract testing when you want to reduce regressions and prevent drift between services by verifying that REST and GraphQL endpoints meet OpenAPI-directed specifications and response assertions.

How do I perform schema validation for GraphQL endpoints?

Perform GraphQL schema validation by applying Zod or AJV to enforce response shapes, verifying query outputs, and running contract tests to ensure endpoint stability across modern stacks.