api-design

Define REST API conventions for Node.js backend services with OpenAPI documentation.

3|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/mauriciodelrio/delriodev-skills --skill api-design-mauriciodelrio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design
Source: https://github.com/mauriciodelrio/delriodev-skills/tree/main/es-skills/software/backend/api-design
Command: npx skills add https://github.com/mauriciodelrio/delriodev-skills --skill api-design-mauriciodelrio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often struggle with inconsistent REST API designs, leading to confusing endpoints, improper status codes, and lack of documentation, which hampers collaboration and maintenance.

Core Features & Use Cases

  • Naming conventions: plural nouns, kebab‑case, limited nesting, action sub‑resources.
  • Method and status code guidance: proper use of GET, POST, PUT, PATCH, DELETE and appropriate HTTP codes.
  • Response envelope and pagination: standardized JSON structures, offset‑ and cursor‑based pagination.
  • Versioning and OpenAPI: URL version prefixes and automatic Swagger documentation.
  • Filtering, sorting, and ID strategies: clear query‑parameter patterns and secure identifier generation.
    These rules help build robust Node.js backend services, ensuring clear, versioned, and well‑documented APIs.

Quick Start

Use the api-design skill to generate a complete specification for a new REST resource, including endpoint paths, methods, and OpenAPI schema.

Frequently Asked Questions about api-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best REST API naming conventions for Node.js backend services?

REST API naming conventions for Node.js backends should use plural nouns, kebab-case formatting, limited nesting, and action sub-resources. Standardized endpoint naming ensures consistent API design, improving collaboration and reducing maintenance confusion across development teams.

How do I implement pagination and filtering in a REST API?

Implement REST API pagination and filtering using standardized query-parameter patterns. The approach supports both offset-based and cursor-based pagination, alongside clear filtering and sorting mechanisms, ensuring consistent JSON response envelopes for large data retrieval in backend services.

When should I use offset-based versus cursor-based pagination in REST APIs?

Offset-based pagination suits simple, static datasets in REST APIs, while cursor-based pagination handles frequently changing data more efficiently. Choosing the right method depends on data volatility, ensuring consistent response envelopes and proper data synchronization.

What HTTP status codes should I use for REST API error handling?

REST API error handling requires appropriate HTTP status codes mapped to GET, POST, PUT, PATCH, and DELETE methods. Using standardized status codes ensures proper error communication, allowing clients to understand response outcomes across versioned API endpoints.

How do I generate OpenAPI documentation for my REST API endpoints?

Generate OpenAPI documentation by applying URL version prefixes and standardized response schemas to your REST API. This approach produces automatic Swagger documentation, ensuring endpoints are clearly versioned and thoroughly described for frontend integration.

Can I use this REST API design guidance for existing Node.js projects?

Yes, you can apply these REST API design rules to existing Node.js backend services. The conventions cover versioning, response envelopes, and error handling, allowing incremental adoption to standardize endpoint structures and improve OpenAPI documentation.