Skip to content
Back to skills

Api Testing Patterns

ASecurity

Test REST APIs contracts auth pagination and errors

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
ai-agentspythontestingapi

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill api-testing-patterns --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Api Testing Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-api-testing-patterns/badge)](https://www.skillsdirectory.com/skills/loopyluci-api-testing-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.