api-test-generator
SolidГенерация полных Python pytest тестов для REST API эндпоинтов с валидацией схемы. Использовать при создании тестов для новых эндпоинтов, добавлении покрытия для CRUD операций или валидации соответствия API с OpenAPI схемами.
API & Backend 394 stars
52 forks Updated 4 days ago NOASSERTION
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# MikoPBX API Test Generating
Generate comprehensive Python pytest tests for MikoPBX REST API endpoints with full parameter coverage, schema validation, and edge case testing.
## What This Skill Does
Analyzes DataStructure.php files and generates complete pytest test suites including:
- ✅ CRUD operation tests (Create, Read, Update, Delete)
- ✅ Positive and negative test cases
- ✅ Parameter validation tests
- ✅ Edge cases and boundary conditions
- ✅ Schema validation tests
- ✅ Proper fixtures and authentication
- ✅ Detailed assertions with error messages
## When to Use This Skill
Use this skill when you need to:
- Create pytest tests for new REST API endpoints
- Add comprehensive test coverage for existing endpoints
- Generate tests covering all parameter combinations
- Add schema validation tests for API responses
- Create edge case and negative tests
- Ensure API compliance with OpenAPI specification
## Quick Start
### Basic Usage
When the user requests test generation:
1. **Identify the endpoint**
- API path (e.g., `/pbxcore/api/v3/extensions`)
- HTTP methods (GET, POST, PUT, DELETE, PATCH)
- Resource name (e.g., Extensions)
2. **Locate DataStructure.php**
```bash
find /Users/nb/PhpstormProjects/mikopbx/Core/src/PBXCoreREST/Lib -name "DataStructure.php" | grep -i "{resource}"
```
3. **Analyze parameter definitions**
Extract from `DataStructure.php`:
- Required vs optional parameters
- Data types and validation rules
- Default values
...
Details
- Author
- Microck
- Repository
- Microck/ordinary-claude-skills
- Created
- 9 months ago
- Last Updated
- 4 days ago
- Language
- Python
- License
- NOASSERTION
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
API & Backend Listed
api-test-generate
Auto-generate comprehensive API tests for REST and GraphQL endpoints with request/response validation
1 Updated 2 weeks ago
manastalukdar API & Backend Listed
api-tester
REST and GraphQL API testing — contract validation, load testing, regression suites, and endpoint verification
4 Updated 1 months ago
AreteDriver Testing & QA Solid
api-testing
Use when writing API endpoint tests — integration tests, contract validation, response assertions, mocked external services — even when the user says 'test this route' without naming API testing.
10 Updated today
event4u-app