| name | api-validation |
| description | Comprehensive API endpoint validation including schema validation, authentication testing, and error handling |
API Validation Skill
Thorough validation of API endpoints including schema compliance, authentication, authorization, error handling, and performance.
When to Use
- Validating new API endpoints
- Testing API changes
- Schema compliance verification
- Authentication/authorization testing
- API contract validation
- Performance baseline checks
Capabilities
- Schema validation - Verify responses match expected structure
- Authentication testing - Test auth flows and token handling
- Authorization testing - Verify permission enforcement
- Error handling - Validate error responses and messages
- Performance testing - Check response times and limits
Workflow
Phase 1: Discovery
Understand the API:
- Review documentation (OpenAPI, Swagger, README)
- Identify endpoints to validate
- Note authentication requirements
- Document expected responses
Phase 2: Test Design
Create comprehensive test cases:
For Each Endpoint:
- Success scenarios (valid requests)
- Authentication tests (valid/invalid/missing token)
- Authorization tests (permitted/forbidden actions)
- Validation tests (required fields, formats, types)
- Error scenarios (not found, server errors)
Phase 3: Execution
Run tests systematically:
- Test authentication first
- Test each endpoint method