What problem does it solve?
This skill provides comprehensive guidance for designing REST and GraphQL APIs, helping teams create intuitive, scalable, and maintainable interfaces.
Core Features & Use Cases
- REST-first guidance: resource-oriented URLs, correct HTTP methods, and consistent status handling to ensure predictable APIs.
- GraphQL-first design: schema-first approach with strong typing, clear relationships, and efficient query patterns.
- Cross-cutting patterns: pagination, versioning, error payloads, input validation, and data loading strategies to support robust, developer-friendly APIs.
- Use Case: When starting a new API project, use this skill to establish design standards, review specifications, and standardize documentation.
Quick Start
Define your API resources (for example, users and orders) and draft REST endpoints with proper HTTP methods and status codes. Then design a GraphQL schema with types, queries, mutations, and pagination; compare both approaches against the guidelines and templates in the references. Finally, adapt the templates to your tech stack and generate a consistent OpenAPI/GraphQL contract.