← ClaudeAtlas

api-test-generatelisted

Auto-generate comprehensive API tests for REST and GraphQL endpoints with request/response validation
manastalukdar/ai-devstudio · ★ 1 · API & Backend · score 75
Install: claude install-skill manastalukdar/ai-devstudio
# API Test Generation I'll generate comprehensive API tests for your REST or GraphQL endpoints with proper validation and assertions. **Features:** - Auto-detect API framework (Express, FastAPI, Next.js API routes) - Generate request/response tests - Schema validation - Error handling tests - Authentication tests ## Phase 1: API Framework Detection ```bash # Detect API framework efficiently detect_api_framework() { if [ -f "package.json" ]; then if grep -q "\"express\"" package.json; then echo "express" elif grep -q "\"fastify\"" package.json; then echo "fastify" elif grep -q "\"next\"" package.json; then echo "nextjs" elif grep -q "\"@apollo/server\"" package.json; then echo "apollo" fi elif [ -f "requirements.txt" ]; then if grep -q "fastapi" requirements.txt; then echo "fastapi" elif grep -q "flask" requirements.txt; then echo "flask" elif grep -q "django" requirements.txt; then echo "django" fi elif [ -f "go.mod" ]; then if grep -q "gin-gonic" go.mod; then echo "gin" elif grep -q "fiber" go.mod; then echo "fiber" fi fi } FRAMEWORK=$(detect_api_framework) if [ -z "$FRAMEWORK" ]; then echo "❌ No API framework detected" echo "Supported frameworks:" echo " Node: Express, Fastify, Next.js API routes, Apollo" echo " Python: FastAPI, Flas