SKILL

rest-api-best-practices

REST API design guidance. Use when designing or reviewing REST endpoints, choosing HTTP methods and status codes, defining URL structure and naming conventions, formatting error responses, implementing pagination or filtering, versioning an API, securing endpoints with authentication or rate limiting, or reviewing whether an API exposes domain capabilities rather than raw CRUD operations.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • REST API Best Practices
  • Working Style
  • Design Workflow
  • Heuristics
  • Resource Naming
  • HTTP Method Semantics
  • Status Code Choice
  • Error Format

Use this skill when the main question is how to design, review, or improve a REST API — from URL structure to error formats to security. 1. Start from what the consumer needs, not from what the database looks like. 2. Use HTTP as designed — methods, status codes, and headers carry meaning. 3. Express domain capabilities, not data operations. 4. Make errors as informative as successes. 5. Design for change: version early, break compatibility deliberately. 1. Define the resources. What are the concepts the consumer needs to interact with? Name them with nouns, in plural form. Avoid verbs in URLs — the HTTP method is the verb. 2. Choose the right HTTP method. GET for retrieval (safe, idempotent, cacheable) POST for creation or non-idempotent operations PUT for full replacement (idempotent) PATCH for partial update DELETE for removal (idempotent) 3. Design the URL. Keep paths flat where possible — at most two levels of nesting. Use query parameters for filtering, sorting, and pagination. Use task URLs (POST /orders/{id}/cancel) for domain operations that aren't simple CRUD. 4. Define response shapes. Choose a consistent field naming convention (camelCase or snakecase) and stick to it.

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
OKHP3/skillz
Source file
community/rest-api-best-practices/SKILL.md
Fixed revision
7b187777d42ab7bc7bab1e5f2c940cd3139ecebf
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: OKHP3/skillz · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T10:00:54.316Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.