api-testing

Solid

HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling.

Testing & QA 168 stars 27 forks Updated 4 weeks ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# API Testing Expert knowledge for testing HTTP APIs with Supertest (TypeScript/JavaScript) and httpx/pytest (Python). ## TypeScript/JavaScript (Supertest) ### Installation ```bash # Using Bun bun add -d supertest @types/supertest # or: npm install -D supertest @types/supertest ``` ### Basic Setup ```typescript 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 ```typescript // GET await request(app).get('/api/users').expect(200) // POST with body await request(app) .post('/api/users') .send({ name: 'John' }) .expect(201) // PUT await request(app) .put('/api/users/1') .send({ name: 'Jane' }) .expect(200) // DELETE await request(app).delete('/api/users/1').expect(204) ``` ### Headers and Query Parameters ```typescrip...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
7 months ago
Last Updated
4 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category