API Testing Patterns

Discover and validate REST and GraphQL API endpoints with security checks.

4|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/tommymorgan/claude-plugins --skill api-testing-patterns-tommymorgan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: API Testing Patterns
Source: https://github.com/tommymorgan/claude-plugins/tree/main/tommymorgan/testing/skills/api-testing-patterns
Command: npx skills add https://github.com/tommymorgan/claude-plugins --skill api-testing-patterns-tommymorgan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a structured approach for autonomous API exploratory testing, guiding agents through endpoint discovery, request/response validation, authentication checks, and security assessments to uncover defects and vulnerabilities.

Core Features & Use Cases

  • OpenAPI/Swagger-driven endpoint discovery and parameter extraction
  • Comprehensive testing coverage across HTTP methods, status codes, input variations, and error handling
  • GraphQL introspection and query testing, including mutations and subscriptions where supported
  • Security-focused checks: authentication/authorization validation, rate limiting, and secure headers
  • Reproducible test data generation and standardized reporting for findings

Quick Start

Provide your API specification or endpoints and request an autonomous exploratory testing plan

Frequently Asked Questions about API Testing Patterns

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

FAQPage Schema
How do I automate exploratory API testing for undocumented endpoints?

Automated exploratory API testing discovers undocumented endpoints by parsing OpenAPI specifications or executing GraphQL introspection, then systematically validating HTTP status codes, schemas, and error handling to uncover hidden defects.

Can I generate automated tests directly from an OpenAPI 3.x specification?

Generating automated tests from OpenAPI 3.x specifications involves parsing the spec to extract endpoints and parameters, then creating structured requests that validate response schemas, authentication, and secure headers across defined HTTP methods.

What is the best way to test GraphQL introspection and mutations for security vulnerabilities?

Testing GraphQL introspection and mutations for security vulnerabilities requires executing authenticated query requests to validate authorization controls, rate limiting, and secure headers, ensuring mutations do not expose sensitive data or unauthorized actions.

Does this API testing approach work for both REST and GraphQL services?

This API testing approach works for both REST and GraphQL services by adapting endpoint discovery logic, using OpenAPI parsing for REST and introspection for queries, applying standardized request/response verification and security checks across both protocols.

How do I validate authentication and rate limiting during API endpoint discovery?

Validating authentication and rate limiting during API endpoint discovery involves sending authenticated requests with varied input parameters to verify access controls, test secure headers, and confirm rate limiting mechanisms correctly restrict excessive automated test traffic.

What are the limitations of automated test generation for API security checks?

Limitations of automated test generation for API security checks include the necessity of authenticated request capabilities to validate authorization, and dependency on accurate OpenAPI 3.x parsing or GraphQL introspection access to achieve comprehensive endpoint coverage and reproducible test data.