Back to skills
SKILL.md
Api Testing Patterns
ASecurityTest REST APIs contracts auth pagination and errors
- 2 stars
- 0 votes
- 0 copies
- 3 views
- Added September 10, 2026
Works with
Security analysis
100/100npx -y skills add LoopyLuci/Skills --skill api-testing-patterns --agent claude-codeAre you the author of Api Testing Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-api-testing-patterns)---
name: api-testing-patterns
description: "Test REST APIs contracts auth pagination and errors"
---
# API Testing Patterns
## Basic Structure
```python
def test_create_user(client):
resp = client.post("/users", json={"name": "Alice"})
assert resp.status_code == 201
assert resp.json()["name"] == "Alice"
```
## What to Test
- 200/201 for success
- 400 for validation errors
- 401/403 for auth
- 404 for not found
- Pagination: page size, cursors
- Edge cases: empty body, wrong types
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.