---
name: api-testing-12bdfc01647c
description: Comprehensive API testing for REST and GraphQL endpoints with contract validation
allowed-tools:
  - Bash
  - Read
  - Write
  - Edit
  - Glob
  - Grep
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:qa-testing-automation]
  skillAreas: [skill-area:api-contract-testing, skill-area:integration-testing]
  roles: [role:qa-engineer, role:backend-engineer]
  workflows: [workflow:feature-development]
  topics: [topic:test-driven-development]

---

# API Testing Skill

## Overview

This skill provides expert-level capabilities for API testing, covering REST, GraphQL, authentication flows, schema validation, and contract testing integration.

## Capabilities

### REST API Testing
- Execute API tests with Supertest/REST Assured
- HTTP method testing (GET, POST, PUT, PATCH, DELETE)
- Header and cookie manipulation
- File upload/download testing

### GraphQL Testing
- Query and mutation testing
- Subscription testing
- Schema introspection validation
- Variable and fragment handling

### Schema Validation
- Validate OpenAPI/Swagger schemas
- Response schema validation with Ajv/Joi
- Generate test cases from API specifications
- Contract validation

### Authentication Testing
- OAuth 2.0 flow testing
- JWT token validation
- API key authentication
- Session-based authentication

### Performance Assertions
- Response time validation
- Throughput measurements
- Rate limiting verification

### Contract Testing
- Consumer contract generation
- Provider verification
- Pact integration

## Target Processes

- `api-testing.js` - API test implementation
- `contract-testing.js` - Contract testing workflows
- `security-testing.js` - API security testing
- `performance-testing.js` - API performance validation

## Dependencies

- `supertest` - HTTP assertions (Node.js)
- `axios` - HTTP client
- `ajv` - JSON schema validation
- `graphql-request` - GraphQL client

## Usage Example

```javascript
{
  kind: 'skill',
  skill: {
    name: 'api-testing',
    context: {
      action: 'execute-tests',
      baseUrl: 'https://api.example.com',
      specPath: 'openapi.yaml',
      authType: 'bearer',
      validateSchema: true
    }
  }
}
```

## Configuration

The skill can auto-discover API specifications from OpenAPI/Swagger files and generate comprehensive test suites.


---
Source attribution: a5c-ai
Original project: https://github.com/a5c-ai/babysitter
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: a5c-ai
Original project: https://github.com/a5c-ai/babysitter
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Development & Engineering
Roles: Backend Developer, DevOps / SRE, QA / Test Engineer
Specialties: API, Backend, Testing
Tools: Ajv, Axios, Graphql Request, Supertest
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: d46bc736d67bb86110229f918d10f214dbccd6bbbb0a4fd2923ff75b55230082
