api-testing

Validate REST and GraphQL API responses against expected contracts and behavior.

2|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/rabbicse/go-projects --skill api-testing-rabbicse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-testing
Source: https://github.com/rabbicse/go-projects/tree/main/projects/movie-ticket-booking/.claude/skills/api-testing
Command: npx skills add https://github.com/rabbicse/go-projects --skill api-testing-rabbicse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

API regressions often slip past spot checks and break downstream consumers with missing fields, bad auth, incorrect headers, or slow responses. This Skill helps you verify real REST and GraphQL APIs as contracts before those issues reach production.

Core Features & Use Cases

  • Standalone API testing with Playwright APIRequestContext, Supertest, or direct HTTP clients.
  • Response validation for schemas, status codes, headers, auth flows, CRUD lifecycles, pagination, error handling, file transfers, webhooks, and performance budgets.
  • Use it when you need dependable CI coverage for an endpoint consumed by a frontend, a backend service, or an external integration.

Quick Start

Use this skill to generate a complete REST or GraphQL API test suite with schema checks, auth coverage, error cases, and cleanup-safe fixtures for your service.

Frequently Asked Questions about api-testing

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

FAQPage Schema
How do I automate API testing for REST and GraphQL endpoints?

Automated API testing for REST and GraphQL endpoints verifies real responses against expected contracts using Playwright APIRequestContext, Supertest, or direct HTTP clients to execute auth, CRUD, and pagination flows.

How do I validate API response schemas to prevent contract drift?

Validating API response schemas prevents contract drift by enforcing expected response shapes with Zod 4 or AJV, checking status codes, headers, and timing to catch missing fields before they reach production.

Does this API testing approach work with Playwright and Supertest?

Yes, this API testing approach works with Playwright APIRequestContext and Supertest, supporting standalone test flows for auth, CRUD, error handling, file transfers, webhooks, and performance checks.

What is the best way to test API auth flows and error handling in CI?

The best way to test API auth flows and error handling in CI is using cleanup-safe fixtures with Supertest or Playwright to verify status codes, response shapes, and contract behavior against real test environments.

How do I check API performance and timing during endpoint testing?

Checking API performance and timing during endpoint testing involves verifying response latency against performance budgets using HTTP clients, ensuring slow responses are caught before breaking downstream consumers.

What do I need to set up a real test environment for API contract validation?

Setting up a real test environment for API contract validation requires cleanup-safe fixtures, Zod 4 or AJV for schema validation, and HTTP clients to verify status codes, response shapes, and auth flows accurately.