skills/rest-api-design/SKILL.md
Design RESTful APIs following best practices for resource modeling, HTTP methods, status codes, versioning, and documentation. Use when creating new APIs, designing endpoints, or improving existing API architecture.
npx skillsauth add aj-geddes/useful-ai-prompts rest-api-designInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Design REST APIs that are intuitive, consistent, and follow industry best practices for resource-oriented architecture.
Minimal working example:
✅ Good Resource Names (Nouns, Plural)
GET /api/users
GET /api/users/123
GET /api/users/123/orders
POST /api/products
DELETE /api/products/456
❌ Bad Resource Names (Verbs, Inconsistent)
GET /api/getUsers
POST /api/createProduct
GET /api/user/123 (inconsistent singular/plural)
Detailed implementations in the references/ directory:
| Guide | Contents | |---|---| | Resource Naming | Resource Naming, HTTP Methods & Operations | | Request Examples | Request Examples | | Query Parameters | Query Parameters | | Response Formats | Response Formats | | HTTP Status Codes | HTTP Status Codes, API Versioning, Authentication & Security, Rate Limiting Headers | | OpenAPI Documentation | OpenAPI Documentation | | Complete Example: Express.js | const express = require("express"); |
development
Implement Zero Trust security model with identity verification, microsegmentation, least privilege access, and continuous monitoring. Use when building secure cloud-native applications.
development
Prevent Cross-Site Scripting (XSS) attacks through input sanitization, output encoding, and Content Security Policy. Use when handling user-generated content in web applications.
tools
Create wireframes and interactive prototypes to visualize user interfaces and gather feedback early. Use tools and techniques to communicate design ideas before development.
development
Implement real-time bidirectional communication with WebSockets including connection management, message routing, and scaling. Use when building real-time features, chat systems, live notifications, or collaborative applications.