Test REST APIs contracts auth pagination and errors
Scanned 9/10/2026
Install to Claude Code
npx -y skills add LoopyLuci/Skills --skill api-testing-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Api Testing Patterns?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-api-testing-patterns)More formats (shields.io, HTML) on the badges page.
---
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
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!