api-testing

Validate REST and GraphQL API endpoints with contract and schema testing.

Updated Nov 22, 2025
One-click install
npx skills add https://github.com/tom-xs/nixos-dotfiles --skill api-testing-tom-xs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-testing
Source: https://github.com/tom-xs/nixos-dotfiles/tree/main/ai/kimi-skills/skills/api-testing
Command: npx skills add https://github.com/tom-xs/nixos-dotfiles --skill api-testing-tom-xs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill addresses the challenge of maintaining reliable API integrations by automating contract verification, schema validation, and status code checks, ensuring that services remain consistent and bug-free.

Core Features & Use Cases

  • Multi-Stack Support: Provides testing patterns for both TypeScript (Playwright) and Java (REST Assured).
  • Contract & Schema Validation: Enforces strict request/response shapes using Zod or JSON Schema to prevent integration failures.
  • Use Case: Use this skill to verify that a new deployment of a user-management service correctly handles authentication, pagination, and error states without breaking existing client contracts.

Quick Start

Use the api-testing skill to run a health check against the local development server at http://localhost:3000/api.

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 contract testing and schema validation?

Automate API contract testing by enforcing strict request and response shapes using Zod or JSON Schema. This validates REST and GraphQL endpoints to prevent integration failures and ensure services remain bug-free.

Can I test authentication flows and pagination using Playwright and REST Assured?

Yes, you can test authentication flows, pagination, idempotency, and error handling using Playwright for TypeScript and REST Assured for Java. These frameworks support functional scenarios and data-driven testing patterns.

What is the best way to verify REST API status codes and response shapes?

The best way to verify REST API status codes and response shapes is through automated contract testing and schema enforcement. This approach satisfies strict response validation requirements across TypeScript and Java environments.

Does API testing support GraphQL endpoints and data-driven testing patterns?

Yes, API testing supports GraphQL endpoints and data-driven testing patterns. It validates endpoints through automated contract testing, handling functional scenarios including authentication, pagination, and error states.

Do I need curl to run API health checks against a local development server?

Yes, curl is required as a dependency to run API health checks. You can use it to verify deployments against a local development server, such as checking endpoints at http://localhost:3000/api.

Why should I use schema enforcement for API integration testing?

Schema enforcement prevents integration failures by ensuring services remain consistent. It addresses the challenge of maintaining reliable API integrations by automating contract verification, schema validation, and status code checks.