Starter prompts
4 ways to start with APITest.
Contract
→ Vs OpenAPI
▸ Preview prompt
Generate contract tests for this OpenAPI endpoint. Write the tests in Jest + supertest format. Cover: happy path, missing required field, wrong type, auth missing, 5xx retry.
```yaml
paths:
/v1/users/{userId}/orders:
get:
summary: List a user's orders
parameters:
- name: userId
in: path
required: true
schema: { type: string, format: uuid }
- name: status
in: query
schema: { type: string, enum: [pending, shipped, delivered, cancelled] }
responses:
'200':
content:
application/json:
schema:
type: array
items:
type: object
required: [id, status, total_cents]
properties:
id: { type: string, format: uuid }
status: { type: string }
total_cents: { type: integer, minimum: 0 }
'401': { description: Unauthorized }
'404': { description: User not found }
```
Load
→ Hit the limit
▸ Preview prompt
Run a 30-min load test plan for our /search endpoint — target 200 RPS, p95 under 250ms, and report breakpoints.
Security
→ Auth abuse
▸ Preview prompt
Test our REST API for IDOR, broken auth, mass assignment, and rate-limit bypass. Reproducible cases only.
Suite
→ Postman setup
▸ Preview prompt
Scaffold a Postman + Newman suite for our 40 endpoints with CI integration and per-env variables.
What it does
Tasks APITest ships every week.
Validation
- Contract tests vs OpenAPI
- Auth + scope abuse
- Pagination + filter cases
- Error envelope checks
Quality
- Load + soak runs
- Schema drift detection
- Chaos injection
- Postman/Newman suites
Worked sample
A real APITest chat.
Pairs well with