rest-api-expert

Design REST APIs with versioning, error handling, and OpenAPI specs.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI --skill rest-api-expert-botphu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rest-api-expert
Source: https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI/tree/main/.agent/skills/rest-api-expert
Command: npx skills add https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI --skill rest-api-expert-botphu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps API teams design robust REST APIs with clear semantics, versioning, and thorough OpenAPI documentation, reducing miscommunication and rework.

Core Features & Use Cases

  • Endpoint design guidance: Convert business requirements into clean, resource-based URLs and proper HTTP methods.
  • Error handling & standards: Define consistent error payloads and status codes to improve client resilience.
  • API documentation: Propose OpenAPI-driven docs and examples for endpoints, schemas, and responses.
  • Use Case: When starting a new API project, consult this Skill to establish a versioned endpoint strategy and validation rules.

Quick Start

Design an /api/v1/users resource with GET and POST, using proper HTTP status codes and a minimal OpenAPI sketch.

Frequently Asked Questions about rest-api-expert

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

FAQPage Schema
How do I design a REST API with proper HTTP semantics and resource-based URLs?

To design a REST API with proper HTTP semantics, convert business requirements into clean, resource-based URLs and apply correct HTTP methods for operations. This establishes clear endpoint semantics and consistent API structure.

What's the best way to structure standardized error payloads and status codes for REST APIs?

Standardized error payloads and status codes for REST APIs are structured by defining consistent error response formats and applying proper HTTP status guidance. This improves client resilience and reduces miscommunication during API integration.

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

You generate OpenAPI documentation for REST API endpoints by creating OpenAPI-driven docs and examples that detail endpoints, schemas, and responses. This provides thorough, structured API documentation for consumers.

What versioning strategy should I use for my REST API endpoints?

A REST API versioning strategy should establish versioned endpoints, such as using /api/v1/ patterns, to manage changes without breaking existing clients. This satisfies requirements for rigorous endpoint design and governance.

Can I use this for API-first projects and microservice catalogs requiring structured validation rules?

Yes, this applies to API-first projects and microservice catalogs requiring versioned endpoints, structured error handling, and validation rules. It establishes governance for robust REST APIs with clear semantics and consistent documentation.

How do I sketch a minimal OpenAPI spec for an /api/v1/users resource with GET and POST methods?

To sketch a minimal OpenAPI spec for an /api/v1/users resource, define the GET and POST endpoints, proper HTTP status codes, and response schemas. This provides a baseline OpenAPI documentation template for the resource.