freeskillv2.0.0✓ verified
rest-api-design
Conventions for designing clean, consistent, evolvable REST APIs — resource modeling, HTTP semantics, status codes, pagination, filtering, error envelopes, versioning, idempotency, and security. A deep reference with worked examples and runnable checks.
$npx vanara install rest-api-design
Free & open source (Apache-2.0) — view the source on GitHub.
Overview
A good REST API is guessable: once a consumer learns one endpoint, they can predict the rest. This skill is the deep reference for designing one — the principles, the decisions, the trade-offs, and the mistakes to avoid. Heavy detail lives in references/; copy-paste material in examples/; a runnable contract check in scripts/.
What it covers
- Resource modeling
- HTTP method semantics
- Status codes
- The response envelope
- Pagination, filtering, sorting
- Error model
- Versioning & evolution
- Idempotency, concurrency, security