What problem does it solve?
This Skill helps developers and architects design, review, and document robust and user-friendly HTTP REST API endpoints, ensuring consistency and adherence to best practices.
Core Features & Use Cases
- Resource-Oriented Design: Guides the creation of API endpoints using nouns and plural roots.
- HTTP Method Semantics: Clarifies the appropriate use of GET, POST, PUT, PATCH, and DELETE.
- Nesting and Relationships: Provides rules for structuring related resources.
- Naming Conventions: Defines standards for URLs, query parameters, and JSON payloads (camelCase).
- Versioning Strategies: Recommends URL-based versioning.
- Standard Formats: Includes examples for pagination and error responses (RFC 7807).
- Use Case: When designing a new
/users endpoint, this skill ensures you use GET /users for listing, POST /users for creation, and GET /users/{id} for retrieval, following all naming and formatting guidelines.
Quick Start
Use the rest-api-design skill to create a GET endpoint for retrieving a list of products, following all best practices.