Api Testing
HTTP API testing guide for Supertest and httpx/pytest covering REST, GraphQL, auth, and error handling.
- CCM score
- 50 of 100
- skills.sh installs
- 929
- GitHub stars
- 257
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers REST request methods, headers, query parameters, and file uploads in TypeScript and Python test suites
- Includes authentication fixtures, token-protected endpoint checks, and validation and not-found error patterns
- Adds GraphQL query testing and a response-time assertion example with a 100ms threshold
- Designed for teams testing HTTP services with Vitest or pytest alongside
vitest-testingandplaywright-testing
Install
$ npx -y skills add secondsky/claude-skills --skill api-testing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
API Testing
Expert knowledge for testing HTTP APIs with Supertest (TypeScript/JavaScript) and httpx/pytest (Python).
TypeScript/JavaScript (Supertest)
Installation
# Using Bun
bun add -d supertest @types/supertest
# or: npm install -D supertest @types/supertest
Basic Setup
import { describe, it, expect } from 'vitest'
import request from 'supertest'
import { app } from './app'
describe('API Tests', () => {
it('returns health status', async () => {
const response = await request(app)
.get('/api/health')
.expect(200)
expect(response.body).toEqual({ status: 'ok' })
})
it('creates a user', async () => {
const response = await request(app)
.post('/api/users')
.send({ name: 'John Doe', email: 'john@example.com' })
.expect(201)
expect(response.body).toMatchObject({
id: expect.any(Number),
name: 'John Doe',
})
})
it('validates required fields', async () => {
await request(app)
.post('/api/users')
.send({ name: 'John Doe' })
.expect(400)
})
})
Request Methods
// GET
await request(app).get('/api/users').expect(200)
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Testing & QA, Backend & APIs
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 116- Responsive Web Design731
- Zod677
- Nano Banana Prompts655
- Mobile First Design629
- Image Optimization622
- Rest Api Design614
- Web Performance Optimization600
- Inspira Ui589
- Web Performance Audit569
- Api Authentication563
- Progressive Web App562
- Code Review561
- Kpi Dashboard Design547
- Vulnerability Scanning547
- Bun Sqlite543
- Bun Sveltekit526
- Api Security Hardening525
- Tanstack Table525
- Architecture Patterns523
- Api Rate Limiting518
- Threejs518
- Design System Creation517
- React Composition Patterns505
- Api Contract Testing502
Similar to Api Testing
More Testing & QAapi-contract-testingsecondsky/claude-skills502 installsConsumer-driven contract testing with Pact and OpenAPI validation that catches breaking API changes between services.
api-test-suite-generatorpatricio0312rev/skills321 installsGenerates Vitest, Jest, or Supertest integration suites for Express, Next.js, and Fastify API routes.
api-security-testingsickn33/agentic-awesome-skills701 installsStructured workflow for testing REST and GraphQL API security across authentication, authorization, input validation, and rate limiting.
api-reference-documentationsecondsky/claude-skills476 installsStructured guide for writing REST API reference docs with an OpenAPI 3.0 specification, auth, and examples.
mswpproenca/dot-skills926 installsComprehensive MSW v2 mocking guide with 45 rules for handlers, setup, and test integration.
api-test-suite-builderalirezarezvani/claude-skills703 installsGenerates API, integration, and contract test suites from route definitions covering auth, validation, and errors.