REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs. Use when designing or reviewing REST endpoints, resource names, status codes, pagination, or versioning.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# API Design Patterns
Conventions and best practices for designing consistent, developer-friendly REST APIs.
## When to Activate
- Designing new API endpoints
- Reviewing existing API contracts
- Adding pagination, filtering, or sorting
- Implementing error handling for APIs
- Planning API versioning strategy
- Building public or partner-facing APIs
## Resource Design
### URL Structure
```
# Resources are nouns, plural, lowercase, kebab-case
GET /api/v1/users
GET /api/v1/users/:id
POST /api/v1/users
PUT /api/v1/users/:id
PATCH /api/v1/users/:id
DELETE /api/v1/users/:id
# Sub-resources for relationships
GET /api/v1/users/:id/orders
POST /api/v1/users/:id/orders
# Actions that don't map to CRUD (use verbs sparingly)
POST /api/v1/orders/:id/cancel
POST /api/v1/auth/login
POST /api/v1/auth/refresh
```
### Naming Rules
```
# GOOD
/api/v1/team-members # kebab-case for multi-word resources
/api/v1/orders?status=active # query params for filtering
/api/v1/users/123/orders # nested resources for ownership
# BAD
/api/v1/getUsers # verb in URL
/api/v1/user # singular (use plural)
…
The line at the top of this page pins the label git:20260927.806f3e1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_cbnbriipw2fzyrjx
GET https://markdownregistry.com/api/v1/resolve?ref=aicodedecode/awesome-muse-skills/api-design
GET https://markdownregistry.com/api/v1/blob/bfae53167acc91caff0ff9ab73a80ee3fd92caccdfa445c88302c3bf95255156
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
aicodedecode/awesome-muse-skills · skills-imported/3d-web-experience/SKILL.md · Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes…
aicodedecode/awesome-muse-skills · skills-imported/a-b-test-design/SKILL.md · Design an A/B experiment — hypothesis, variants, primary metric, and sample size. Use when a change can be measured…
aicodedecode/awesome-muse-skills · skills-imported/a11y-audit-uxui/SKILL.md · Audit a UI or design against WCAG 2.2 AA/AAA and ARIA patterns, returning criterion-referenced findings with severity…
aicodedecode/awesome-muse-skills · skills-imported/ab-test-setup/SKILL.md · When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B…
aicodedecode/awesome-muse-skills · skills-imported/abc-xyz-segmentation/SKILL.md · Segment a SKU portfolio on value (ABC) and demand variability (XYZ), produce the 9-box with a planning policy per cell…
aicodedecode/awesome-muse-skills · skills-imported/academic-cv-builder/SKILL.md · Format CVs for academic positions, including publications, grants, teaching, and research experience. Use when the user…
aicodedecode/awesome-muse-skills · skills-imported/academy-guide/SKILL.md · Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it…
aicodedecode/awesome-muse-skills · skills-imported/accessibility-audit/SKILL.md · Audit an existing interface against WCAG, producing findings with severity ratings and remediation steps. Use when you…
aicodedecode/awesome-muse-skills · skills-imported/accessibility-auditor/SKILL.md · Web accessibility specialist for WCAG compliance, ARIA implementation, and inclusive design. Use when auditing websites…
affaan-m/ecc · docs/es/skills/api-design/SKILL.md · Patrones de diseño REST API incluyendo nomenclatura de recursos, códigos de estado, paginación, filtrado, respuestas de…
yonatangross/orchestkit · plugins/ork/skills/api-design/SKILL.md · API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows…
yonatangross/orchestkit · src/skills/api-design/SKILL.md · API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows…